Urfkill.Killswitch

g GObject.Object GObject.Object Urfkill.Killswitch Urfkill.Killswitch GObject.Object->Urfkill.Killswitch

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (type)

get_switch_type ()

Virtual Methods

Inherited:

GObject.Object (7)

do_state_changed (state)

Properties

Name

Type

Flags

Short Description

state

int

r/w

The state of the killswitch

Signals

Inherited:

GObject.Object (1)

Name

Short Description

state-changed

The state-changed signal is emitted when the killswitch state is changed.

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Urfkill.Killswitch(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Urfkill.KillswitchClass

The Urfkill.Killswitch struct contains only private fields and should not be directly accessed.

classmethod new(type)
Parameters:

type (Urfkill.EnumType) – The killswitch type

Returns:

a new Urfkill.Killswitch object.

Return type:

Urfkill.Killswitch

Creates a new Urfkill.Killswitch object.

New in version 0.3.0.

get_switch_type()
Returns:

The type of the killswitch

Return type:

Urfkill.EnumType

Get the type of the killswitch.

New in version 0.3.0.

do_state_changed(state) virtual
Parameters:

state (Urfkill.EnumState) –

Signal Details

Urfkill.Killswitch.signals.state_changed(killswitch, state)
Signal Name:

state-changed

Flags:

RUN_LAST

Parameters:

The state-changed signal is emitted when the killswitch state is changed. See Urfkill.EnumState.

New in version 0.3.0.

Property Details

Urfkill.Killswitch.props.state
Name:

state

Type:

int

Default Value:

-1

Flags:

READABLE, WRITABLE

The state of the killswitch. See Urfkill.EnumState.

Writing the states other than Urfkill.EnumState.UNBLOCKED or Urfkill.EnumState.SOFT_BLOCKED will be ignored. Also, the state writing may not take effect since it depends on the state of the hardware.

New in version 0.3.0.