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.Account
target (
TelepathyLogger.Entity
) – a non-None
TelepathyLogger.Entity
type_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.Account
target (
TelepathyLogger.Entity
) – a non-None
TelepathyLogger.Entity
type_mask (
int
) – event type filter seeTelepathyLogger.EventTypeMask
callback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the request is satisfied
Retrieves a list of
GLib.Date
corresponding 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.Account
callback (
Gio.AsyncReadyCallback
orNone
) – 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:
True
if the operation was successful, otherwiseFalse
- entities:
a pointer to a
GLib.List
used 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.Account
target (
TelepathyLogger.Entity
) – a non-None
TelepathyLogger.Entity
type_mask (
int
) – event type filter seeTelepathyLogger.EventTypeMask
callback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the request is satisfied
Retrieve a list of
TelepathyLogger.Event
at date with target.
- get_events_for_date_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
True
if the operation was successful, otherwiseFalse
- events:
a pointer to a
GLib.List
used 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.Account
target (
TelepathyLogger.Entity
) – a non-None
TelepathyLogger.Entity
type_mask (
int
) – event type filter seeTelepathyLogger.EventTypeMask
num_events (
int
) – number of maximum events to fetchfilter (
TelepathyLogger.LogEventFilter
orNone
) – an optional filter functionfilter_user_data (
object
orNone
) – user data to pass to filtercallback (
Gio.AsyncReadyCallback
orNone
) – 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:
True
if the operation was successful, otherwiseFalse
.- events:
a pointer to a
GLib.List
used 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.EventTypeMask
callback (
Gio.AsyncReadyCallback
orNone
) – 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.Account
target (
TelepathyLogger.Entity
) – a non-None
TelepathyLogger.Entity
type_mask (
int
) – event type filter seeTelepathyLogger.EventTypeMask
filter (
TelepathyLogger.LogEventFilter
orNone
) – an optional filter function
- Returns:
- Return type:
Create a
TelepathyLogger.LogWalker
to traverse all the events exchanged with target.