TelepathyLogger.LogWalker¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
An optional filter function |
||
r/w/co |
User data to pass to the filter function |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
||
priv |
r |
Class Details¶
- class TelepathyLogger.LogWalker(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An object used to iterate over the logs
New in version 0.8.0.
- get_events_async(num_events, callback, *user_data)¶
- Parameters:
num_events (
int
) – number of maximum events to fetchcallback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the request is satisfied
Walk the logs to retrieve the next most recent num_event events.
New in version 0.8.0.
- get_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
])
New in version 0.8.0.
- is_end()¶
-
Determines whether self has run out of events. This is the case when self has returned all the events from the logs.
New in version 0.8.0.
- is_start()¶
-
Determines whether self is pointing at the most recent event in the logs. This is the case when self has not yet returned any events or has been rewound completely.
New in version 0.8.0.
- rewind_async(num_events, callback, *user_data)¶
- Parameters:
num_events (
int
) – number of events to move backcallback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the request is satisfied
Move the self back by the last num_event events that were returned by
TelepathyLogger.LogWalker.get_events_async
().New in version 0.8.0.
- rewind_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
- Return type:
New in version 0.8.0.
Property Details¶
- TelepathyLogger.LogWalker.props.filter¶
- Name:
filter
- Type:
- Default Value:
- Flags:
An optional filter function