Lfb.GdbusFeedback¶
- Implementations:
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Profile |
Signals¶
Name |
Short Description |
---|---|
On the client-side, this signal is emitted whenever the D-Bus signal ‘“FeedbackEnded” [gdbus-signal-org-sigxcpu-Feedback.FeedbackEnded]’ is received. |
|
Signal emitted when a remote caller is invoking the ‘EndFeedback() [gdbus-method-org-sigxcpu-Feedback.EndFeedback]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘TriggerFeedback() [gdbus-method-org-sigxcpu-Feedback.TriggerFeedback]’ D-Bus method. |
Fields¶
None
Class Details¶
- class Lfb.GdbusFeedback¶
- Bases:
- Structure:
Abstract interface type for the D-Bus interface ‘org.sigxcpu.Feedback [gdbus-interface-org-sigxcpu-Feedback.top_of_page]’.
- classmethod interface_info()¶
- Returns:
A
Gio.DBusInterfaceInfo
. Do not free.- Return type:
Gets a machine-readable description of the ‘org.sigxcpu.Feedback [gdbus-interface-org-sigxcpu-Feedback.top_of_page]’ D-Bus interface.
- classmethod override_properties(klass, property_id_begin)¶
- Parameters:
klass (
GObject.ObjectClass
) – The class structure for aGObject.Object
derived class.property_id_begin (
int
) – The property id to assign to the first overridden property.
- Returns:
The last property id.
- Return type:
Overrides all
GObject.Object
properties in theLfb.GdbusFeedback
interface for a concrete class. The properties are overridden in the order they are defined.
- call_end_feedback(arg_id, cancellable, callback, *user_data)¶
- Parameters:
arg_id (
int
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘EndFeedback() [gdbus-method-org-sigxcpu-Feedback.EndFeedback]’ D-Bus method on self. 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
GLib.MainContext.push_thread_default
()). You can then callLfb.GdbusFeedback.call_end_feedback_finish
() to get the result of the operation.See
Lfb.GdbusFeedback.call_end_feedback_sync
() for the synchronous, blocking version of this method.
- call_end_feedback_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toLfb.GdbusFeedback.call_end_feedback
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
Lfb.GdbusFeedback.call_end_feedback
().
- call_end_feedback_sync(arg_id, cancellable)¶
- Parameters:
arg_id (
int
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘EndFeedback() [gdbus-method-org-sigxcpu-Feedback.EndFeedback]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
Lfb.GdbusFeedback.call_end_feedback
() for the asynchronous version of this method.
- call_trigger_feedback(arg_app_id, arg_event, arg_hints, arg_timeout, cancellable, callback, *user_data)¶
- Parameters:
arg_app_id (
str
) – Argument to pass with the method invocation.arg_event (
str
) – Argument to pass with the method invocation.arg_hints (
GLib.Variant
) – Argument to pass with the method invocation.arg_timeout (
int
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘TriggerFeedback() [gdbus-method-org-sigxcpu-Feedback.TriggerFeedback]’ D-Bus method on self. 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
GLib.MainContext.push_thread_default
()). You can then callLfb.GdbusFeedback.call_trigger_feedback_finish
() to get the result of the operation.See
Lfb.GdbusFeedback.call_trigger_feedback_sync
() for the synchronous, blocking version of this method.
- call_trigger_feedback_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toLfb.GdbusFeedback.call_trigger_feedback
().- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_id:
Return location for return parameter or
None
to ignore.
- Return type:
Finishes an operation started with
Lfb.GdbusFeedback.call_trigger_feedback
().
- call_trigger_feedback_sync(arg_app_id, arg_event, arg_hints, arg_timeout, cancellable)¶
- Parameters:
arg_app_id (
str
) – Argument to pass with the method invocation.arg_event (
str
) – Argument to pass with the method invocation.arg_hints (
GLib.Variant
) – Argument to pass with the method invocation.arg_timeout (
int
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
True
if the call succeeded,False
if error is set.- out_id:
Return location for return parameter or
None
to ignore.
- Return type:
Synchronously invokes the ‘TriggerFeedback() [gdbus-method-org-sigxcpu-Feedback.TriggerFeedback]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
Lfb.GdbusFeedback.call_trigger_feedback
() for the asynchronous version of this method.
- complete_end_feedback(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘EndFeedback() [gdbus-method-org-sigxcpu-Feedback.EndFeedback]’ 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.
This method will free invocation, you cannot use it afterwards.
- complete_trigger_feedback(invocation, id)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.id (
int
) – Parameter to return.
Helper function used in service implementations to finish handling invocations of the ‘TriggerFeedback() [gdbus-method-org-sigxcpu-Feedback.TriggerFeedback]’ 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.
This method will free invocation, you cannot use it afterwards.
- emit_feedback_ended(arg_id, arg_reason)¶
- Parameters:
Emits the ‘“FeedbackEnded” [gdbus-signal-org-sigxcpu-Feedback.FeedbackEnded]’ D-Bus signal.
- do_feedback_ended(arg_id, arg_reason) virtual¶
-
Handler for the
Lfb.GdbusFeedback
::feedback-ended
signal.
- do_handle_end_feedback(invocation, arg_id) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_id (
int
) –
- Return type:
Handler for the
Lfb.GdbusFeedback
::handle-end-feedback
signal.
- do_handle_trigger_feedback(invocation, arg_app_id, arg_event, arg_hints, arg_timeout) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_app_id (
str
) –arg_event (
str
) –arg_hints (
GLib.Variant
) –arg_timeout (
int
) –
- Return type:
Handler for the
Lfb.GdbusFeedback
::handle-trigger-feedback
signal.
Signal Details¶
- Lfb.GdbusFeedback.signals.feedback_ended(gdbus_feedback, arg_id, arg_reason)¶
- Signal Name:
feedback-ended
- Flags:
- Parameters:
gdbus_feedback (
Lfb.GdbusFeedback
) – The object which received the signalarg_id (
int
) – Argument.arg_reason (
int
) – Argument.
On the client-side, this signal is emitted whenever the D-Bus signal ‘“FeedbackEnded” [gdbus-signal-org-sigxcpu-Feedback.FeedbackEnded]’ is received.
On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
- Lfb.GdbusFeedback.signals.handle_end_feedback(gdbus_feedback, invocation, arg_id)¶
- Signal Name:
handle-end-feedback
- Flags:
- Parameters:
gdbus_feedback (
Lfb.GdbusFeedback
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_id (
int
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘EndFeedback() [gdbus-method-org-sigxcpu-Feedback.EndFeedback]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callLfb.GdbusFeedback.complete_end_feedback
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- Lfb.GdbusFeedback.signals.handle_trigger_feedback(gdbus_feedback, invocation, arg_app_id, arg_event, arg_hints, arg_timeout)¶
- Signal Name:
handle-trigger-feedback
- Flags:
- Parameters:
gdbus_feedback (
Lfb.GdbusFeedback
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_app_id (
str
) – Argument passed by remote caller.arg_event (
str
) – Argument passed by remote caller.arg_hints (
GLib.Variant
) – Argument passed by remote caller.arg_timeout (
int
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘TriggerFeedback() [gdbus-method-org-sigxcpu-Feedback.TriggerFeedback]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callLfb.GdbusFeedback.complete_trigger_feedback
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.
Property Details¶
- Lfb.GdbusFeedback.props.profile¶
-
Represents the D-Bus property ‘“Profile” [gdbus-property-org-sigxcpu-Feedback.Profile]’.
Since the D-Bus property for this
GObject.Object
property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.