![]() |
![]() |
![]() |
Shell Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
void (*ShellGetSelfContactFeaturesCb) (TpConnection *connection
,TpContact *contact
); void (*ShellGetTpContactCb) (TpConnection *connection
,GList *contacts
,TpHandle *failed
); void (*ShellTpClientApproveChannelsImpl) (ShellTpClient *client
,TpAccount *account
,TpConnection *connection
,GList *channels
,TpChannelDispatchOperation *dispatch_operation
,TpAddDispatchOperationContext *context
,gpointer user_data
); struct ShellTpClientClass; void (*ShellTpClientContactListChangedImpl) (TpConnection *connection
,GPtrArray *added
,GPtrArray *removed
,gpointer user_data
); void (*ShellTpClientHandleChannelsImpl) (ShellTpClient *client
,TpAccount *account
,TpConnection *connection
,GList *channels
,GList *requests_satisfied
,gint64 user_action_time
,TpHandleChannelsContext *context
,gpointer user_data
); void (*ShellTpClientObserveChannelsImpl) (ShellTpClient *client
,TpAccount *account
,TpConnection *connection
,GList *channels
,TpChannelDispatchOperation *dispatch_operation
,GList *requests
,TpObserveChannelsContext *context
,gpointer user_data
); void shell_decline_dispatch_op (TpAddDispatchOperationContext *context
,const gchar *message
); void shell_get_contact_events (TplLogManager *log_manager
,TpAccount *account
,TplEntity *entity
,guint num_events
,GAsyncReadyCallback callback
); void shell_get_self_contact_features (TpConnection *self
,guint n_features
,const TpContactFeature *features
,ShellGetSelfContactFeaturesCb callback
); void shell_get_tp_contacts (TpConnection *self
,guint n_handles
,const TpHandle *handles
,guint n_features
,const TpContactFeature *features
,ShellGetTpContactCb callback
); void shell_tp_client_grab_contact_list_changed (ShellTpClient *self
,TpConnection *conn
); void shell_tp_client_set_approve_channels_func (ShellTpClient *self
,ShellTpClientApproveChannelsImpl approve_impl
,gpointer user_data
,GDestroyNotify destroy
); void shell_tp_client_set_contact_list_changed_func (ShellTpClient *self
,ShellTpClientContactListChangedImpl contact_list_changed_impl
,gpointer user_data
,GDestroyNotify destroy
); void shell_tp_client_set_handle_channels_func (ShellTpClient *self
,ShellTpClientHandleChannelsImpl handle_channels_impl
,gpointer user_data
,GDestroyNotify destroy
); void shell_tp_client_set_observe_channels_func (ShellTpClient *self
,ShellTpClientObserveChannelsImpl observe_impl
,gpointer user_data
,GDestroyNotify destroy
);
void (*ShellGetSelfContactFeaturesCb) (TpConnection *connection
,TpContact *contact
);
void (*ShellGetTpContactCb) (TpConnection *connection
,GList *contacts
,TpHandle *failed
);
|
The connection |
|
List of contacts. [element-type TelepathyGLib.Contact] |
|
Array of failed contacts |
void (*ShellTpClientApproveChannelsImpl) (ShellTpClient *client
,TpAccount *account
,TpConnection *connection
,GList *channels
,TpChannelDispatchOperation *dispatch_operation
,TpAddDispatchOperationContext *context
,gpointer user_data
);
Signature of the implementation of the AddDispatchOperation method.
|
a ShellTpClient instance |
|
a TpAccount having TP_ACCOUNT_FEATURE_CORE prepared if possible |
|
a TpConnection having TP_CONNECTION_FEATURE_CORE prepared
if possible |
|
a GList of TpChannel,
all having TP_CHANNEL_FEATURE_CORE prepared if possible. [element-type TelepathyGLib.Channel]
|
|
a TpChannelDispatchOperation or NULL ;
the dispatch_operation is not guaranteed to be prepared. [allow-none]
|
|
a TpAddDispatchOperationContext representing the context of this D-Bus call |
void (*ShellTpClientContactListChangedImpl) (TpConnection *connection
,GPtrArray *added
,GPtrArray *removed
,gpointer user_data
);
Signature of the implementation of the ContactListChanged method.
|
a TpConnection having TP_CONNECTION_FEATURE_CORE prepared
if possible |
|
a GPtrArray of added TpContact. [element-type TelepathyGLib.Contact] |
|
a GPtrArray of removed TpContact. [element-type TelepathyGLib.Contact] |
void (*ShellTpClientHandleChannelsImpl) (ShellTpClient *client
,TpAccount *account
,TpConnection *connection
,GList *channels
,GList *requests_satisfied
,gint64 user_action_time
,TpHandleChannelsContext *context
,gpointer user_data
);
Signature of the implementation of the HandleChannels method.
|
a ShellTpClient instance |
|
a TpAccount having TP_ACCOUNT_FEATURE_CORE prepared if possible |
|
a TpConnection having TP_CONNECTION_FEATURE_CORE prepared
if possible |
|
a GList of TpChannel,
all having TP_CHANNEL_FEATURE_CORE prepared if possible. [element-type TelepathyGLib.Channel]
|
|
a GList of TpChannelRequest having their object-path defined but are not guaranteed to be prepared. [element-type TelepathyGLib.ChannelRequest] |
|
the time at which user action occurred, or one of the
special values TP_USER_ACTION_TIME_NOT_USER_ACTION or
TP_USER_ACTION_TIME_CURRENT_TIME
(see "user-action-time" for details) |
|
a TpHandleChannelsContext representing the context of this D-Bus call |
void (*ShellTpClientObserveChannelsImpl) (ShellTpClient *client
,TpAccount *account
,TpConnection *connection
,GList *channels
,TpChannelDispatchOperation *dispatch_operation
,GList *requests
,TpObserveChannelsContext *context
,gpointer user_data
);
Signature of the implementation of the ObserveChannels method.
|
a ShellTpClient instance |
|
a TpAccount having TP_ACCOUNT_FEATURE_CORE prepared if possible |
|
a TpConnection having TP_CONNECTION_FEATURE_CORE prepared
if possible |
|
a GList of TpChannel,
all having TP_CHANNEL_FEATURE_CORE prepared if possible. [element-type TelepathyGLib.Channel]
|
|
a TpChannelDispatchOperation or NULL ;
the dispatch_operation is not guaranteed to be prepared. [allow-none]
|
|
a GList of TpChannelRequest, all having their object-path defined but are not guaranteed to be prepared. [element-type TelepathyGLib.ChannelRequest] |
|
a TpObserveChannelsContext representing the context of this D-Bus call |
void shell_decline_dispatch_op (TpAddDispatchOperationContext *context
,const gchar *message
);
void shell_get_contact_events (TplLogManager *log_manager
,TpAccount *account
,TplEntity *entity
,guint num_events
,GAsyncReadyCallback callback
);
Wrap tpl_log_manager_get_filtered_events_async because gjs cannot support multiple callbacks in the same function call.
|
A TplLogManager |
|
A TpAccount |
|
A TplEntity |
|
The number of events to retrieve |
|
User callback to run when the contact is ready. [scope async] |
void shell_get_self_contact_features (TpConnection *self
,guint n_features
,const TpContactFeature *features
,ShellGetSelfContactFeaturesCb callback
);
Wrap tp_connection_upgrade_contacts due to the lack of support for proper arrays arguments in GJS.
|
A connection, which must be ready |
|
Number of features in features |
|
Array of features. [array length=n_features][allow-none][element-type uint] |
|
User callback to run when the contact is ready. [scope async] |
void shell_get_tp_contacts (TpConnection *self
,guint n_handles
,const TpHandle *handles
,guint n_features
,const TpContactFeature *features
,ShellGetTpContactCb callback
);
Wrap tp_connection_get_contacts_by_handle so we can transform the array into a null-terminated one, which gjs can handle. We send the original callback to tp_connection_get_contacts_by_handle as user_data, and we have our own function as callback, which does the transforming.
|
A connection, which must be ready |
|
Number of handles in handles |
|
Array of handles. [array length=n_handles][element-type uint] |
|
Number of features in features |
|
Array of features. [array length=n_features][allow-none][element-type uint] |
|
User callback to run when the contacts are ready. [scope async] |
void shell_tp_client_grab_contact_list_changed (ShellTpClient *self
,TpConnection *conn
);
void shell_tp_client_set_approve_channels_func (ShellTpClient *self
,ShellTpClientApproveChannelsImpl approve_impl
,gpointer user_data
,GDestroyNotify destroy
);
void shell_tp_client_set_contact_list_changed_func (ShellTpClient *self
,ShellTpClientContactListChangedImpl contact_list_changed_impl
,gpointer user_data
,GDestroyNotify destroy
);
void shell_tp_client_set_handle_channels_func (ShellTpClient *self
,ShellTpClientHandleChannelsImpl handle_channels_impl
,gpointer user_data
,GDestroyNotify destroy
);
void shell_tp_client_set_observe_channels_func (ShellTpClient *self
,ShellTpClientObserveChannelsImpl observe_impl
,gpointer user_data
,GDestroyNotify destroy
);