Urfkill.Device

g GObject.Object GObject.Object Urfkill.Device Urfkill.Device GObject.Object->Urfkill.Device

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_object_path ()

set_object_path_sync (object_path, cancellable)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

hard

bool

r

If the hard block is on

index

int

r

The index of the rfkill device

name

str

r

The name of the rfkill device

platform

bool

r

If the device is a platform device

soft

bool

r/w

If the soft block is on

type

int

r

The type of the rfkill device

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Urfkill.Device(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Urfkill.DeviceClass

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

classmethod new()
Returns:

a new Urfkill.Device object.

Return type:

Urfkill.Device

Creates a new Urfkill.Device object.

New in version 0.2.0.

get_object_path()
Returns:

the object path, or None

Return type:

str

Get the object path for the device.

New in version 0.2.0.

set_object_path_sync(object_path, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True for success, else False and error is used

Return type:

bool

Set the object path of the object and fill up the initial properties.

New in version 0.2.0.

Property Details

Urfkill.Device.props.hard
Name:

hard

Type:

bool

Default Value:

False

Flags:

READABLE

This property indicates whether the hard block of the rfkill device is on or not.

New in version 0.2.0.

Urfkill.Device.props.index
Name:

index

Type:

int

Default Value:

0

Flags:

READABLE

The index of the rfkill device assigned by the kernel rfkill subsystem

New in version 0.2.0.

Urfkill.Device.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE

The name of the rfkill device defined by the driver

New in version 0.2.0.

Urfkill.Device.props.platform
Name:

platform

Type:

bool

Default Value:

False

Flags:

READABLE

This property indicates whether the rfkill device is generated by a platform driver or not.

New in version 0.3.0.

Urfkill.Device.props.soft
Name:

soft

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

This property indicates whether the soft block of the rfkill device is on or not.

New in version 0.3.0.

Urfkill.Device.props.type
Name:

type

Type:

int

Default Value:

0

Flags:

READABLE

The type of the rfkill device. See Urfkill.EnumType.

New in version 0.2.0.