Top |
TpLogger *
tp_logger_dup (void
);
Returns the default TpClientFactory's TpLogger. It will use
tp_client_factory_dup()
, print a warning and return NULL
if it fails.
Since 0.99.8
TpProxyPendingCall * tp_cli_logger_call_add_favourite_contact (TpLogger *proxy
,gint timeout_ms
,const gchar *in_Account
,const gchar *in_Identifier
,tp_cli_logger_callback_for_add_favourite_contact callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
);
Start a AddFavouriteContact method call.
Add a contact's designation as a favourite.
proxy |
the TpProxy |
|
timeout_ms |
the timeout in milliseconds, or -1 to use the default |
|
in_Account |
Used to pass an 'in' argument: The object path for the TpAccount to which the contact belongs |
|
in_Identifier |
Used to pass an 'in' argument: The favourite contact's identifier |
|
callback |
called when the method call succeeds or fails;
may be |
|
user_data |
user-supplied data passed to the callback;
must be |
|
destroy |
called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be |
|
weak_object |
If not |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.
TpProxyPendingCall * tp_cli_logger_call_clear (TpLogger *proxy
,gint timeout_ms
,tp_cli_logger_callback_for_clear callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
);
Start a Clear method call.
Clear all the logs. This will not erase the favourite contacts.
proxy |
the TpProxy |
|
timeout_ms |
the timeout in milliseconds, or -1 to use the default |
|
callback |
called when the method call succeeds or fails;
may be |
|
user_data |
user-supplied data passed to the callback;
must be |
|
destroy |
called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be |
|
weak_object |
If not |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.
TpProxyPendingCall * tp_cli_logger_call_clear_account (TpLogger *proxy
,gint timeout_ms
,const gchar *in_Account
,tp_cli_logger_callback_for_clear_account callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
);
Start a ClearAccount method call.
Clear all logs stored for specified account.
proxy |
the TpProxy |
|
timeout_ms |
the timeout in milliseconds, or -1 to use the default |
|
in_Account |
Used to pass an 'in' argument: The object path for the TpAccount in which logs will be cleared. |
|
callback |
called when the method call succeeds or fails;
may be |
|
user_data |
user-supplied data passed to the callback;
must be |
|
destroy |
called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be |
|
weak_object |
If not |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.
TpProxyPendingCall * tp_cli_logger_call_clear_entity (TpLogger *proxy
,gint timeout_ms
,const gchar *in_Account
,const gchar *in_Identifier
,gint in_Type
,tp_cli_logger_callback_for_clear_entity callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
);
Start a ClearEntity method call.
Clear all logs stored for discussions with entity in account.
proxy |
the TpProxy |
|
timeout_ms |
the timeout in milliseconds, or -1 to use the default |
|
in_Account |
Used to pass an 'in' argument: The object path for the TpAccount in which logs will be cleared. |
|
in_Identifier |
Used to pass an 'in' argument: The entity identifier. |
|
in_Type |
Used to pass an 'in' argument: The entity type, should be one of TP_ENTITY_TYPE_CONTACT (1) or TP_ENTITY_TYPE_ROOM (2). |
|
callback |
called when the method call succeeds or fails;
may be |
|
user_data |
user-supplied data passed to the callback;
must be |
|
destroy |
called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be |
|
weak_object |
If not |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.
TpProxyPendingCall * tp_cli_logger_call_get_favourite_contacts (TpLogger *proxy
,gint timeout_ms
,tp_cli_logger_callback_for_get_favourite_contacts callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
);
Start a GetFavouriteContacts method call.
Returns the favourite contacts.
proxy |
the TpProxy |
|
timeout_ms |
the timeout in milliseconds, or -1 to use the default |
|
callback |
called when the method call succeeds or fails;
may be |
|
user_data |
user-supplied data passed to the callback;
must be |
|
destroy |
called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be |
|
weak_object |
If not |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.
TpProxyPendingCall * tp_cli_logger_call_remove_favourite_contact (TpLogger *proxy
,gint timeout_ms
,const gchar *in_Account
,const gchar *in_Identifier
,tp_cli_logger_callback_for_remove_favourite_contact callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
);
Start a RemoveFavouriteContact method call.
Remove a contact's designation as a favourite.
proxy |
the TpProxy |
|
timeout_ms |
the timeout in milliseconds, or -1 to use the default |
|
in_Account |
Used to pass an 'in' argument: The object path for the TpAccount to which the contact belongs |
|
in_Identifier |
Used to pass an 'in' argument: The favourite contact's identifier |
|
callback |
called when the method call succeeds or fails;
may be |
|
user_data |
user-supplied data passed to the callback;
must be |
|
destroy |
called with the user_data as argument, after the
call has succeeded, failed or been cancelled;
must be |
|
weak_object |
If not |
a TpProxyPendingCall representing the call in progress. It is borrowed from the object, and will become invalid when the callback is called, the call is cancelled or the TpProxy becomes invalid.
void (*tp_cli_logger_callback_for_add_favourite_contact) (TpLogger *proxy
,const GError *error
,gpointer user_data
,GObject *weak_object
);
Signature of the callback called when a AddFavouriteContact method call succeeds or fails.
proxy |
the proxy on which the call was made |
|
error |
|
|
user_data |
user-supplied data |
|
weak_object |
user-supplied object |
void (*tp_cli_logger_callback_for_clear) (TpLogger *proxy
,const GError *error
,gpointer user_data
,GObject *weak_object
);
Signature of the callback called when a Clear method call succeeds or fails.
proxy |
the proxy on which the call was made |
|
error |
|
|
user_data |
user-supplied data |
|
weak_object |
user-supplied object |
void (*tp_cli_logger_callback_for_clear_account) (TpLogger *proxy
,const GError *error
,gpointer user_data
,GObject *weak_object
);
Signature of the callback called when a ClearAccount method call succeeds or fails.
proxy |
the proxy on which the call was made |
|
error |
|
|
user_data |
user-supplied data |
|
weak_object |
user-supplied object |
void (*tp_cli_logger_callback_for_clear_entity) (TpLogger *proxy
,const GError *error
,gpointer user_data
,GObject *weak_object
);
Signature of the callback called when a ClearEntity method call succeeds or fails.
proxy |
the proxy on which the call was made |
|
error |
|
|
user_data |
user-supplied data |
|
weak_object |
user-supplied object |
void (*tp_cli_logger_callback_for_get_favourite_contacts) (TpLogger *proxy
,const GPtrArray *out_Favourite_Contacts
,const GError *error
,gpointer user_data
,GObject *weak_object
);
Signature of the callback called when a GetFavouriteContacts method call succeeds or fails.
proxy |
the proxy on which the call was made |
|
out_Favourite_Contacts |
Used to return an 'out' argument if |
|
error |
|
|
user_data |
user-supplied data |
|
weak_object |
user-supplied object |
void (*tp_cli_logger_callback_for_remove_favourite_contact) (TpLogger *proxy
,const GError *error
,gpointer user_data
,GObject *weak_object
);
Signature of the callback called when a RemoveFavouriteContact method call succeeds or fails.
proxy |
the proxy on which the call was made |
|
error |
|
|
user_data |
user-supplied data |
|
weak_object |
user-supplied object |
TpProxySignalConnection * tp_cli_logger_connect_to_favourite_contacts_changed (TpLogger *proxy
,tp_cli_logger_signal_callback_favourite_contacts_changed callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
,GError **error
);
Connect a handler to the signal FavouriteContactsChanged.
The set of favourite contacts has changed.
proxy |
A TpLogger or subclass |
|
callback |
Callback to be called when the signal is received |
|
user_data |
User-supplied data for the callback |
|
destroy |
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns |
|
weak_object |
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
error |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL
if the proxy does not have the desired interface
or has become invalid.
void (*tp_cli_logger_signal_callback_favourite_contacts_changed) (TpLogger *proxy
,const gchar *arg_Account
,const gchar **arg_Added
,const gchar **arg_Removed
,gpointer user_data
,GObject *weak_object
);
Represents the signature of a callback for the signal FavouriteContactsChanged.
proxy |
The proxy on which |
|
arg_Account |
An account associated with the contact. |
|
arg_Added |
List of contact identifiers of contacts which are now favourites. |
|
arg_Removed |
List of contact identifiers of contacts which are no longer favourites. |
|
user_data |
User-supplied data |
|
weak_object |
User-supplied weakly referenced object |