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

Snapd.NoticesMonitor allows to receive in real time events from snapd, like status changes in an ongoing refresh, inhibited refreshes due to the snap being active, or inhibited launches due to an ongoing refresh.

New in version 1.66.

classmethod new()
Returns:

a new Snapd.NoticesMonitor

Return type:

Snapd.NoticesMonitor

Creates a new Snapd.NoticesMonitor to receive events.

New in version 1.66.

classmethod new_with_client(client)
Parameters:

client (Snapd.Client) – a Snapd.Client object

Returns:

a new Snapd.NoticesMonitor

Return type:

Snapd.NoticesMonitor

Creates a new Snapd.NoticesMonitor to receive events, using the specified Snapd.Client object to ask info about each task.

New in version 1.66.

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.

New in version 1.66.

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.

New in version 1.66.

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