Urfkill.Device¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
If the hard block is on |
||
r |
The index of the rfkill device |
||
r |
The name of the rfkill device |
||
r |
If the device is a platform device |
||
r/w |
If the soft block is on |
||
r |
The type of the rfkill device |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Urfkill.Device(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Urfkill.Device
struct contains only private fields and should not be directly accessed.- classmethod new()¶
- Returns:
a new
Urfkill.Device
object.- Return type:
Creates a new
Urfkill.Device
object.New in version 0.2.0.
- get_object_path()¶
-
Get the object path for the device.
New in version 0.2.0.
- set_object_path_sync(object_path, cancellable)¶
- Parameters:
object_path (
str
) – theUrfkill.Device
object pathcancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
- Raises:
- Returns:
- Return type:
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¶
-
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¶
-
The index of the rfkill device assigned by the kernel rfkill subsystem
New in version 0.2.0.
- Urfkill.Device.props.name¶
-
The name of the rfkill device defined by the driver
New in version 0.2.0.
- Urfkill.Device.props.platform¶
-
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¶
-
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¶
-
The type of the rfkill device. See
Urfkill.EnumType
.New in version 0.2.0.