![]() |
![]() |
![]() |
telepathy-logger Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define TPL_LOG_MANAGER_ERROR GQuark tpl_log_manager_errors_quark (void
); enum TplLogManagerError; gboolean (*TplLogMessageFilter) (TplEntry *message
,gpointer user_data
); TplLogManager * tpl_log_manager_dup_singleton (void
); gboolean tpl_log_manager_exists (TplLogManager *manager
,TpAccount *account
,const gchar *chat_id
,gboolean chatroom
); gboolean tpl_log_manager_get_dates_finish (TplLogManager *self
,GAsyncResult *result
,GList **dates
,GError **error
); void tpl_log_manager_get_dates_async (TplLogManager *manager
,TpAccount *account
,const gchar *chat_id
,gboolean is_chatroom
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean tpl_log_manager_get_messages_for_date_finish (TplLogManager *self
,GAsyncResult *result
,GList **messages
,GError **error
); void tpl_log_manager_get_messages_for_date_async (TplLogManager *manager
,TpAccount *account
,const gchar *chat_id
,gboolean is_chatroom
,const GDate *date
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean tpl_log_manager_get_filtered_messages_finish (TplLogManager *self
,GAsyncResult *result
,GList **messages
,GError **error
); void tpl_log_manager_get_filtered_messages_async (TplLogManager *manager
,TpAccount *account
,const gchar *chat_id
,gboolean is_chatroom
,guint num_messages
,TplLogMessageFilter filter
,gpointer filter_user_data
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean tpl_log_manager_get_chats_finish (TplLogManager *self
,GAsyncResult *result
,GList **chats
,GError **error
); void tpl_log_manager_get_chats_async (TplLogManager *self
,TpAccount *account
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean tpl_log_manager_search_finish (TplLogManager *self
,GAsyncResult *result
,GList **chats
,GError **error
); void tpl_log_manager_search_async (TplLogManager *manager
,const gchar *text
,GAsyncReadyCallback callback
,gpointer user_data
); void tpl_log_manager_search_free (GList *hits
);
#define TPL_LOG_MANAGER_ERROR tpl_log_manager_errors_quark()
The error domain for the TplLogManager.
GQuark tpl_log_manager_errors_quark (void
);
Returns : |
the GQuark associated with the error domain of TplLogManager |
TplLogManager * tpl_log_manager_dup_singleton (void
);
Returns : |
a new reference on the log manager |
gboolean tpl_log_manager_exists (TplLogManager *manager
,TpAccount *account
,const gchar *chat_id
,gboolean chatroom
);
Checks if chat_id
does exist for account
and
- is a chatroom, if chatroom
is TRUE
- is not a chatroom, if chatroom
is FALSE
It applies for any registered TplLogStore with the "readable"
property TRUE
.
gboolean tpl_log_manager_get_dates_finish (TplLogManager *self
,GAsyncResult *result
,GList **dates
,GError **error
);
void tpl_log_manager_get_dates_async (TplLogManager *manager
,TpAccount *account
,const gchar *chat_id
,gboolean is_chatroom
,GAsyncReadyCallback callback
,gpointer user_data
);
Retrieves a list of GDate corresponding to each day
at least a message was sent to or received from chat_id
.
chat_id
may be the id of a buddy or a chatroom, depending on the value of
is_chatroom
.
It applies for any registered TplLogStore with the "readable"
property TRUE
.
gboolean tpl_log_manager_get_messages_for_date_finish (TplLogManager *self
,GAsyncResult *result
,GList **messages
,GError **error
);
void tpl_log_manager_get_messages_for_date_async (TplLogManager *manager
,TpAccount *account
,const gchar *chat_id
,gboolean is_chatroom
,const GDate *date
,GAsyncReadyCallback callback
,gpointer user_data
);
Retrieve a list of TplEntry exchanged at date
with chat_id
.
gboolean tpl_log_manager_get_filtered_messages_finish (TplLogManager *self
,GAsyncResult *result
,GList **messages
,GError **error
);
void tpl_log_manager_get_filtered_messages_async (TplLogManager *manager
,TpAccount *account
,const gchar *chat_id
,gboolean is_chatroom
,guint num_messages
,TplLogMessageFilter filter
,gpointer filter_user_data
,GAsyncReadyCallback callback
,gpointer user_data
);
Retrieve the num_messages
most recent messages exchanged with chat_id
.
|
a TplLogManager |
|
a TpAccount |
|
the chat identifier (can't be NULL )
|
|
TRUE if the request is related to a chatroom
|
|
number of maximum messages to fetch |
|
an optionnal filter function |
|
user data to pass to filter
|
|
a callback to call when the request is satisfied |
|
data to pass to callback
|
gboolean tpl_log_manager_get_chats_finish (TplLogManager *self
,GAsyncResult *result
,GList **chats
,GError **error
);
|
a TplLogManager |
|
a GAsyncResult |
|
a pointer to a GList used to return the list of chats |
|
a GError to fill |
Returns : |
TRUE if the operation was successful, otherwise FALSE |
void tpl_log_manager_get_chats_async (TplLogManager *self
,TpAccount *account
,GAsyncReadyCallback callback
,gpointer user_data
);
Start a query looking for all the conversations on account
.
|
a TplLogManager |
|
a TpAccount |
|
a callback to call when the request is satisfied |
|
data to pass to callback
|
gboolean tpl_log_manager_search_finish (TplLogManager *self
,GAsyncResult *result
,GList **chats
,GError **error
);
|
a TplLogManager |
|
a GAsyncResult |
|
a pointer to a GList used to return the list of TplLogSearchHit |
|
a GError to fill |
Returns : |
TRUE if the operation was successful, otherwise FALSE |
void tpl_log_manager_search_async (TplLogManager *manager
,const gchar *text
,GAsyncReadyCallback callback
,gpointer user_data
);
Search for all the conversations containing text
.
|
a TplLogManager |
|
the pattern to search |
|
a callback to call when the request is satisfied |
|
data to pass to callback
|