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
Added in version 0.8.0.
- get_events_async(num_events, callback, *user_data)¶
- Parameters:
num_events (
int) – number of maximum events to fetchcallback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the request is satisfied
Walk the logs to retrieve the next most recent num_event events.
Added in version 0.8.0.
- get_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])
Added 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.
Added 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.
Added in version 0.8.0.
- rewind_async(num_events, callback, *user_data)¶
- Parameters:
num_events (
int) – number of events to move backcallback (
Gio.AsyncReadyCallbackorNone) – 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().Added in version 0.8.0.
- rewind_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
- Returns:
- Return type:
Added in version 0.8.0.
Property Details¶
- TelepathyLogger.LogWalker.props.filter¶
- Name:
filter- Type:
- Default Value:
- Flags:
An optional filter function