TelepathyLogger.LogManager¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class TelepathyLogger.LogManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An object used to access logs
- classmethod dup_singleton()¶
- Returns:
a new reference on the log manager
- Return type:
- classmethod errors_quark()¶
- Returns:
the #GQuark associated with the error domain of
TelepathyLogger.LogManager- Return type:
- exists(account, target, type_mask)¶
- Parameters:
account (
TelepathyGLib.Account) –TelepathyGLib.Accounttarget (
TelepathyLogger.Entity) – a non-NoneTelepathyLogger.Entitytype_mask (
int) – event type filter seeTelepathyLogger.EventTypeMask
- Returns:
- Return type:
Checks if logs exist for target.
It applies for any registered TplLogStore with the TplLogStore:readable property
True.
- get_dates_async(account, target, type_mask, callback, *user_data)¶
- Parameters:
account (
TelepathyGLib.Account) – aTelepathyGLib.Accounttarget (
TelepathyLogger.Entity) – a non-NoneTelepathyLogger.Entitytype_mask (
int) – event type filter seeTelepathyLogger.EventTypeMaskcallback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the request is satisfied
Retrieves a list of
GLib.Datecorresponding to each day where at least one event exist for target.It applies for any registered TplLogStore with the TplLogStore:readable property
True.
- get_dates_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
- Returns:
- Return type:
- get_entities_async(account, callback, *user_data)¶
- Parameters:
account (
TelepathyGLib.Account) – aTelepathyGLib.Accountcallback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the request is satisfied
Start a query looking for all entities for which you have logs in the account.
- get_entities_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
- Returns:
Trueif the operation was successful, otherwiseFalse- entities:
a pointer to a
GLib.Listused to return the list ofTelepathyLogger.Entity, to be freed using something like g_list_free_full (lst,GObject.Object.unref)
- Return type:
(
bool, entities: [TelepathyLogger.Entity])
- get_events_for_date_async(account, target, type_mask, date, callback, *user_data)¶
- Parameters:
account (
TelepathyGLib.Account) – aTelepathyGLib.Accounttarget (
TelepathyLogger.Entity) – a non-NoneTelepathyLogger.Entitytype_mask (
int) – event type filter seeTelepathyLogger.EventTypeMaskcallback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the request is satisfied
Retrieve a list of
TelepathyLogger.Eventat date with target.
- get_events_for_date_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
- Returns:
Trueif the operation was successful, otherwiseFalse- events:
a pointer to a
GLib.Listused to return the list ofTelepathyLogger.Event
- Return type:
(
bool, events: [TelepathyLogger.Event])
- get_filtered_events_async(account, target, type_mask, num_events, filter, filter_user_data, callback, *user_data)¶
- Parameters:
account (
TelepathyGLib.Account) – aTelepathyGLib.Accounttarget (
TelepathyLogger.Entity) – a non-NoneTelepathyLogger.Entitytype_mask (
int) – event type filter seeTelepathyLogger.EventTypeMasknum_events (
int) – number of maximum events to fetchfilter (
TelepathyLogger.LogEventFilterorNone) – an optional filter functionfilter_user_data (
objectorNone) – user data to pass to filtercallback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the request is satisfied
Retrieve the most recent num_event events exchanged with target.
- get_filtered_events_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
- Returns:
Trueif the operation was successful, otherwiseFalse.- events:
a pointer to a
GLib.Listused to return the listTelepathyLogger.Event
- Return type:
(
bool, events: [TelepathyLogger.Event])
- search_async(text, type_mask, callback, *user_data)¶
- Parameters:
text (
str) – the pattern to searchtype_mask (
int) – event type filter seeTelepathyLogger.EventTypeMaskcallback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the request is satisfied
Search for all the conversations containing text.
- walk_filtered_events(account, target, type_mask, filter, *filter_data)¶
- Parameters:
account (
TelepathyGLib.Account) – aTelepathyGLib.Accounttarget (
TelepathyLogger.Entity) – a non-NoneTelepathyLogger.Entitytype_mask (
int) – event type filter seeTelepathyLogger.EventTypeMaskfilter (
TelepathyLogger.LogEventFilterorNone) – an optional filter function
- Returns:
- Return type:
Create a
TelepathyLogger.LogWalkerto traverse all the events exchanged with target.