Top |
#define | TPL_LOG_MANAGER_ERROR |
enum | TplLogManagerError |
enum | TplEventTypeMask |
struct | TplLogSearchHit |
gboolean tpl_log_manager_exists (TplLogManager *manager
,TpAccount *account
,TplEntity *target
,gint type_mask
);
Checks if logs exist for target
.
It applies for any registered TplLogStore with the TplLogStore:readable
property TRUE
.
manager |
TplLogManager |
|
account |
TpAccount |
|
target |
a non-NULL TplEntity |
|
type_mask |
event type filter see TplEventTypeMask |
void tpl_log_manager_get_dates_async (TplLogManager *manager
,TpAccount *account
,TplEntity *target
,gint type_mask
,GAsyncReadyCallback callback
,gpointer user_data
);
Retrieves a list of GDate corresponding to each day where
at least one event exist for target
.
It applies for any registered TplLogStore with the TplLogStore:readable
property TRUE
.
manager |
||
account |
||
target |
a non-NULL TplEntity |
|
type_mask |
event type filter see TplEventTypeMask |
|
callback |
a callback to call when the request is satisfied |
|
user_data |
data to pass to |
gboolean tpl_log_manager_get_dates_finish (TplLogManager *self
,GAsyncResult *result
,GList **dates
,GError **error
);
void tpl_log_manager_get_events_for_date_async (TplLogManager *manager
,TpAccount *account
,TplEntity *target
,gint type_mask
,const GDate *date
,GAsyncReadyCallback callback
,gpointer user_data
);
Retrieve a list of TplEvent at date
with target
.
manager |
||
account |
||
target |
a non-NULL TplEntity |
|
type_mask |
event type filter see TplEventTypeMask |
|
date |
a GDate |
|
callback |
a callback to call when the request is satisfied |
|
user_data |
data to pass to |
gboolean tpl_log_manager_get_events_for_date_finish (TplLogManager *self
,GAsyncResult *result
,GList **events
,GError **error
);
self |
||
result |
||
events |
[out][transfer full][element-type TelepathyLogger.Event] | |
error |
a GError to fill |
void tpl_log_manager_get_filtered_events_async (TplLogManager *manager
,TpAccount *account
,TplEntity *target
,gint type_mask
,guint num_events
,TplLogEventFilter filter
,gpointer filter_user_data
,GAsyncReadyCallback callback
,gpointer user_data
);
Retrieve the most recent num_event
events exchanged with target
.
manager |
||
account |
||
target |
a non-NULL TplEntity |
|
type_mask |
event type filter see TplEventTypeMask |
|
num_events |
number of maximum events to fetch |
|
filter |
an optional filter function. |
[scope call][allow-none] |
filter_user_data |
user data to pass to |
|
callback |
a callback to call when the request is satisfied. |
[scope async][allow-none] |
user_data |
data to pass to |
gboolean tpl_log_manager_get_filtered_events_finish (TplLogManager *self
,GAsyncResult *result
,GList **events
,GError **error
);
self |
||
result |
||
events |
[out][transfer full][element-type TelepathyLogger.Event] | |
error |
a GError to fill |
TplLogWalker * tpl_log_manager_walk_filtered_events (TplLogManager *manager
,TpAccount *account
,TplEntity *target
,gint type_mask
,TplLogEventFilter filter
,gpointer filter_data
);
Create a TplLogWalker to traverse all the events exchanged with target
.
manager |
||
account |
||
target |
a non-NULL TplEntity |
|
type_mask |
event type filter see TplEventTypeMask |
|
filter |
an optional filter function. |
[scope call][allow-none] |
filter_data |
user data to pass to |
void tpl_log_manager_get_entities_async (TplLogManager *self
,TpAccount *account
,GAsyncReadyCallback callback
,gpointer user_data
);
Start a query looking for all entities for which you have logs in the account
.
gboolean tpl_log_manager_get_entities_finish (TplLogManager *self
,GAsyncResult *result
,GList **entities
,GError **error
);
void tpl_log_manager_search_async (TplLogManager *manager
,const gchar *text
,gint type_mask
,GAsyncReadyCallback callback
,gpointer user_data
);
Search for all the conversations containing text
.
manager |
||
text |
the pattern to search |
|
type_mask |
event type filter see TplEventTypeMask |
|
callback |
a callback to call when the request is satisfied |
|
user_data |
data to pass to |
gboolean tpl_log_manager_search_finish (TplLogManager *self
,GAsyncResult *result
,GList **hits
,GError **error
);
self |
||
result |
||
hits |
a pointer to a GList used to return the list of TplLogSearchHit. |
[out][transfer full][element-type TelepathyLogger.LogSearchHit] |
error |
a GError to fill |
void tpl_log_manager_disable_for_entity (TplLogManager *self
,TpAccount *account
,TplEntity *entity
);
Disables logging of events for given entity. By default logging is enabled for all entities.
void tpl_log_manager_enable_for_entity (TplLogManager *self
,TpAccount *account
,TplEntity *entity
);
Re-enables logging of events for entity previously disabled by
tpl_log_manager_disable_for_entity()
. By default logging is enabled for all
entities.
gboolean tpl_log_manager_is_disabled_for_entity (TplLogManager *self
,TpAccount *account
,TplEntity *entity
);
Checks, whether logging is disabled for given entity. By default, logging is enabled for all entities.
void
tpl_log_manager_search_free (GList *hits
);
Free hits
and its content.
#define TPL_LOG_MANAGER_ERROR tpl_log_manager_errors_quark()
The error domain for the TplLogManager.
Mask used to filter type of TplEvent returned.