Interface
PhoshDBusDroidianTorch
since: 0
Description [src]
interface Phosh.DBusDroidianTorch : GObject.Object
Abstract interface type for the D-Bus interface org.droidian.Flashlightd.
Available since: 0
Prerequisite
In order to implement DBusDroidianTorch, your type must inherit fromGObject
.
Functions
phosh_dbus_droidian_torch_interface_info
Gets a machine-readable description of the org.droidian.Flashlightd D-Bus interface.
since: 0
phosh_dbus_droidian_torch_override_properties
Overrides all GObject
properties in the PhoshDBusDroidianTorch
interface for a concrete class.
The properties are overridden in the order they are defined.
since: 0
Instance methods
phosh_dbus_droidian_torch_call_set_brightness
Asynchronously invokes the SetBrightness() D-Bus method on proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
You can then call phosh_dbus_droidian_torch_call_set_brightness_finish()
to get the result of the operation.
since: 0
phosh_dbus_droidian_torch_call_set_brightness_finish
Finishes an operation started with phosh_dbus_droidian_torch_call_set_brightness().
since: 0
phosh_dbus_droidian_torch_call_set_brightness_sync
Synchronously invokes the SetBrightness() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
since: 0
phosh_dbus_droidian_torch_complete_set_brightness
Helper function used in service implementations to finish handling invocations of the SetBrightness() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error()
or similar.
since: 0
phosh_dbus_droidian_torch_get_brightness
Gets the value of the “Brightness” D-Bus property.
since: 0
Signals
Phosh.DBusDroidianTorch::handle-set-brightness
Signal emitted when a remote caller is invoking the SetBrightness() D-Bus method.
since: 0
Interface structure
struct PhoshDBusDroidianTorchIface {
GTypeInterface parent_iface;
gboolean (* handle_set_brightness) (
PhoshDBusDroidianTorch* object,
GDBusMethodInvocation* invocation,
guint arg_brightness
);
gint (* get_brightness) (
PhoshDBusDroidianTorch* object
);
}
Virtual table for the D-Bus interface org.droidian.Flashlightd.
Interface members
parent_iface |
|
The parent interface. |
|
handle_set_brightness |
|
Handler for the |
|
get_brightness |
|
Getter for the |
Virtual methods
Phosh.DBusDroidianTorch.handle_set_brightness
Handler for the PhoshDBusDroidianTorch::handle-set-brightness
signal.
since: 0