Snapd.NoticesMonitor

g GObject.Object GObject.Object Snapd.NoticesMonitor Snapd.NoticesMonitor GObject.Object->Snapd.NoticesMonitor

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_with_client (client)

start ()

stop ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

client

Snapd.Client

w/co

Snapd.Client to use to communicate

Signals

Inherited:

GObject.Object (1)

Name

Short Description

error-event

notice-event

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.NoticesMonitor(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.NoticesMonitorClass

classmethod new()
Return type:

Snapd.NoticesMonitor

classmethod new_with_client(client)
Parameters:

client (Snapd.Client) –

Return type:

Snapd.NoticesMonitor

start()
Raises:

GLib.Error

Returns:

False if there was an error, True if everything worked fine and the object is listening for events.

Return type:

bool

Starts the asynchronous listening proccess, that will wait for new notices and emit a “notice-event” signal with the new notice as parameter.

stop()
Raises:

GLib.Error

Returns:

False if there was an error, True if everything worked fine.

Return type:

bool

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:

RUN_LAST

Parameters:
Snapd.NoticesMonitor.signals.notice_event(notices_monitor, object, p0)
Signal Name:

notice-event

Flags:

RUN_LAST

Parameters:

Property Details

Snapd.NoticesMonitor.props.client
Name:

client

Type:

Snapd.Client

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

Snapd.Client to use to communicate