Top | ![]() |
![]() |
![]() |
![]() |
gboolean | urf_client_enumerate_devices_sync () |
const char * | urf_client_get_daemon_version () |
GList * | urf_client_get_devices () |
guint | urf_client_inhibit () |
gboolean | urf_client_is_inhibited () |
UrfClient * | urf_client_new () |
gboolean | urf_client_set_block () |
gboolean | urf_client_set_block_idx () |
gboolean | urf_client_set_bluetooth_block () |
gboolean | urf_client_set_wlan_block () |
gboolean | urf_client_set_wwan_block () |
void | urf_client_uninhibit () |
A helper GObject to use for accessing urfkill information, and to be notified when it is changed.
gboolean urf_client_enumerate_devices_sync (UrfClient *client
,GCancellable *cancellable
,GError **error
);
Enumerate the devices from the daemon.
Since: 0.3.0
const char *
urf_client_get_daemon_version (UrfClient *client
);
Get urfkill daemon version
Since: 0.2.0
GList *
urf_client_get_devices (UrfClient *client
);
Get a list of the device objects.
You must have called urf_client_enumerate_devices_sync before calling this function.
Since: 0.2.0
guint urf_client_inhibit (UrfClient *client
,const char *reason
,GError **error
);
Inhibit the rfkill key handling function for this session.
client |
a UrfClient instance |
|
reason |
the reason to inhibit the key control |
|
error |
a GError, or |
Since: 0.2.0
gboolean urf_client_is_inhibited (UrfClient *client
,GError **error
);
Get whether the key control is inhibited or not,
Since: 0.2.0
gboolean urf_client_set_block (UrfClient *client
,UrfEnumType type
,const gboolean block
,GCancellable *cancellable
,GError **error
);
Block or unblock the devices belonging to the type.
This function only changes soft block. Hard block is controlled by BIOS or the hardware and there is no way to change the state of hard block through kernel functions.
client |
a UrfClient instance |
|
type |
the type of the devices |
|
block |
|
|
cancellable |
a GCancellable or |
|
error |
a GError, or |
Since: 0.2.0
gboolean urf_client_set_block_idx (UrfClient *client
,const guint index
,const gboolean block
,GCancellable *cancellable
,GError **error
);
Block or unblock the device by the index.
This function only changes soft block. Hard block is controlled by BIOS or the hardware and there is no way to change the state of hard block through kernel functions.
client |
a UrfClient instance |
|
index |
the index of the device |
|
block |
|
|
cancellable |
a GCancellable or |
|
error |
a GError, or |
Since: 0.2.0
gboolean urf_client_set_bluetooth_block (UrfClient *client
,const gboolean block
);
Block or unblock the bluetooth devices. This is a convenient function and the underlying function is urf_client_set_block.
client |
a UrfClient instance |
|
block |
|
Since: 0.2.0
gboolean urf_client_set_wlan_block (UrfClient *client
,const gboolean block
);
Block or unblock the WLAN devices. This is a convenient function and the underlying function is urf_client_set_block.
Since: 0.2.0
gboolean urf_client_set_wwan_block (UrfClient *client
,const gboolean block
);
Block or unblock the wireless WAN devices. This is a convenient function and the underlying function is urf_client_set_block.
Since: 0.2.0
void urf_client_uninhibit (UrfClient *client
,const guint cookie
);
Cancel a previous call to urf_client_inhibit identified by the cookie.
Since: 0.2.0