Snapd.NoticesMonitor¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w/co |
|
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Class Details¶
- class Snapd.NoticesMonitor(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
- classmethod new_with_client(client)¶
- Parameters:
client (
Snapd.Client
) –- Return type:
- start()¶
- Raises:
- Returns:
False
if there was an error,True
if everything worked fine and the object is listening for events.- Return type:
Starts the asynchronous listening proccess, that will wait for new notices and emit a “notice-event” signal with the new notice as parameter.
- stop()¶
-
Stops the asynchronous listening proccess started with
Snapd.NoticesMonitor.start
.
Signal Details¶
- Snapd.NoticesMonitor.signals.error_event(notices_monitor, object)¶
- Signal Name:
error-event
- Flags:
- Parameters:
notices_monitor (
Snapd.NoticesMonitor
) – The object which received the signalobject (
GLib.Error
) –
- Snapd.NoticesMonitor.signals.notice_event(notices_monitor, object, p0)¶
- Signal Name:
notice-event
- Flags:
- Parameters:
notices_monitor (
Snapd.NoticesMonitor
) – The object which received the signalobject (
Snapd.Notice
) –p0 (
bool
) –
Property Details¶
- Snapd.NoticesMonitor.props.client¶
- Name:
client
- Type:
- Default Value:
- Flags:
Snapd.Client
to use to communicate