~unity8-desktop-session-team/indicator-session/indicator-session-using-upstart

« back to all changes in this revision

Viewing changes to src/users.h

  • Committer: Charles Kerr
  • Date: 2013-06-25 16:16:34 UTC
  • mto: This revision was merged to the branch mainline in revision 399.
  • Revision ID: charles.kerr@canonical.com-20130625161634-ht9ef3n5s63rnmmr
in IndicatorSessionUsers, use the uid as the user's key. Users.ActivateUser is now green.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
  /* signals */
73
73
 
74
74
  void (* user_added)    (IndicatorSessionUsers * self,
75
 
                          const gchar           * key);
 
75
                          guint                   uid);
76
76
 
77
77
  void (* user_removed)   (IndicatorSessionUsers * self,
78
 
                           const gchar           * key);
 
78
                           guint                   uid);
79
79
 
80
80
  void (* user_changed)   (IndicatorSessionUsers * self,
81
 
                           const gchar           * key);
 
81
                           guint                   uid);
82
82
 
83
83
 
84
84
  /* pure virtual functions */
86
86
  gboolean               (* is_live_session) (IndicatorSessionUsers * self);
87
87
 
88
88
 
89
 
  GStrv                  (* get_keys)        (IndicatorSessionUsers * self);
 
89
  GList*                 (* get_uids)        (IndicatorSessionUsers * self);
90
90
 
91
91
  IndicatorSessionUser * (* get_user)        (IndicatorSessionUsers * self,
92
 
                                              const gchar           * key);
 
92
                                              guint                   uid);
93
93
 
94
94
  void                   ( * activate_user)  (IndicatorSessionUsers * self,
95
 
                                              const gchar           * key);
 
95
                                              guint                   uid);
96
96
};
97
97
 
98
98
/***
103
103
 
104
104
/* emits the "user-added" signal */
105
105
void indicator_session_users_added   (IndicatorSessionUsers * self,
106
 
                                      const gchar           * key);
 
106
                                      guint                   uid);
107
107
 
108
108
/* emits the "user-removed" signal */
109
109
void indicator_session_users_removed (IndicatorSessionUsers * self,
110
 
                                      const gchar           * key);
 
110
                                      guint                   uid);
111
111
 
112
112
/* emits the "user-changed" signal */
113
113
void indicator_session_users_changed (IndicatorSessionUsers * self,
114
 
                                      const gchar           * key);
 
114
                                      guint                   uid);
115
115
 
116
116
/* notify listeners of a change to the 'is-live-session' property */
117
117
void indicator_session_users_notify_is_live_session (IndicatorSessionUsers * self);
125
125
gboolean indicator_session_users_is_live_session (IndicatorSessionUsers * users);
126
126
 
127
127
/**
128
 
 * Get a list of user keys.
 
128
 * Get a list of the users to show in the indicator
129
129
 *
130
 
 * Return value: (transfer full): a NULL-terminated array of user keys.
131
 
 * Free with g_strfreev() when done.
 
130
 * Return value: (transfer container): a GList of guint user ids.
 
131
 * Free with g_slist_free() when done.
132
132
 */
133
 
GStrv indicator_session_users_get_keys (IndicatorSessionUsers * users);
 
133
GList * indicator_session_users_get_uids (IndicatorSessionUsers * users);
134
134
 
135
135
/**
136
136
 * Get information about a particular user.
141
141
 */
142
142
IndicatorSessionUser *
143
143
indicator_session_users_get_user (IndicatorSessionUsers * users,
144
 
                                  const gchar           * key);
 
144
                                  guint                   uid);
145
145
 
146
146
/* frees a IndicatorSessionUser struct */
147
147
void indicator_session_user_free (IndicatorSessionUser * user);
148
148
 
149
149
/* activate to a different session */
150
150
void indicator_session_users_activate_user (IndicatorSessionUsers * self,
151
 
                                            const char            * key);
 
151
                                            guint                   uid);
152
152
 
153
153
 
154
154
G_END_DECLS