76
76
G_STRUCT_OFFSET (IndicatorSessionUsersClass, user_added),
78
g_cclosure_marshal_VOID__STRING,
79
G_TYPE_NONE, 1, G_TYPE_STRING);
78
g_cclosure_marshal_VOID__UINT,
79
G_TYPE_NONE, 1, G_TYPE_UINT);
81
81
signals[USER_REMOVED] = g_signal_new (INDICATOR_SESSION_USERS_SIGNAL_USER_REMOVED,
82
82
G_TYPE_FROM_CLASS(klass),
84
84
G_STRUCT_OFFSET (IndicatorSessionUsersClass, user_removed),
86
g_cclosure_marshal_VOID__STRING,
87
G_TYPE_NONE, 1, G_TYPE_STRING);
86
g_cclosure_marshal_VOID__UINT,
87
G_TYPE_NONE, 1, G_TYPE_UINT);
89
89
signals[USER_CHANGED] = g_signal_new (INDICATOR_SESSION_USERS_SIGNAL_USER_CHANGED,
90
90
G_TYPE_FROM_CLASS(klass),
92
92
G_STRUCT_OFFSET (IndicatorSessionUsersClass, user_changed),
94
g_cclosure_marshal_VOID__STRING,
95
G_TYPE_NONE, 1, G_TYPE_STRING);
94
g_cclosure_marshal_VOID__UINT,
95
G_TYPE_NONE, 1, G_TYPE_UINT);
98
98
properties[PROP_IS_LIVE_SESSION] =
115
115
**** Virtual Functions
119
indicator_session_users_get_keys (IndicatorSessionUsers * self)
119
indicator_session_users_get_uids (IndicatorSessionUsers * self)
121
121
g_return_val_if_fail (INDICATOR_IS_SESSION_USERS (self), NULL);
123
return INDICATOR_SESSION_USERS_GET_CLASS (self)->get_keys (self);
123
return INDICATOR_SESSION_USERS_GET_CLASS (self)->get_uids (self);
126
126
IndicatorSessionUser *
127
127
indicator_session_users_get_user (IndicatorSessionUsers * self,
130
130
g_return_val_if_fail (INDICATOR_IS_SESSION_USERS (self), NULL);
132
return INDICATOR_SESSION_USERS_GET_CLASS (self)->get_user (self, key);
132
return INDICATOR_SESSION_USERS_GET_CLASS (self)->get_user (self, uid);
136
136
indicator_session_users_activate_user (IndicatorSessionUsers * self,
139
139
g_return_if_fail (INDICATOR_IS_SESSION_USERS (self));
141
INDICATOR_SESSION_USERS_GET_CLASS (self)->activate_user (self, key);
141
INDICATOR_SESSION_USERS_GET_CLASS (self)->activate_user (self, uid);
168
indicator_session_users_added (IndicatorSessionUsers * self, const char * key)
170
g_return_if_fail (INDICATOR_IS_SESSION_USERS (self));
172
g_signal_emit (self, signals[USER_ADDED], 0, key);
176
indicator_session_users_removed (IndicatorSessionUsers * self, const char * key)
178
g_return_if_fail (INDICATOR_IS_SESSION_USERS (self));
180
g_signal_emit (self, signals[USER_REMOVED], 0, key);
184
indicator_session_users_changed (IndicatorSessionUsers * self, const char * key)
186
g_return_if_fail (INDICATOR_IS_SESSION_USERS (self));
188
g_signal_emit (self, signals[USER_CHANGED], 0, key);
168
indicator_session_users_added (IndicatorSessionUsers * self, guint uid)
170
g_return_if_fail (INDICATOR_IS_SESSION_USERS (self));
172
g_signal_emit (self, signals[USER_ADDED], 0, uid);
176
indicator_session_users_removed (IndicatorSessionUsers * self, guint uid)
178
g_return_if_fail (INDICATOR_IS_SESSION_USERS (self));
180
g_signal_emit (self, signals[USER_REMOVED], 0, uid);
184
indicator_session_users_changed (IndicatorSessionUsers * self, guint uid)
186
g_return_if_fail (INDICATOR_IS_SESSION_USERS (self));
188
g_signal_emit (self, signals[USER_CHANGED], 0, uid);