Top | ![]() |
![]() |
![]() |
![]() |
void | feedback-ended | Run Last |
gboolean | handle-end-feedback | Run Last |
gboolean | handle-trigger-feedback | Run Last |
GInterface ╰── LfbGdbusFeedback GObject ├── GDBusInterfaceSkeleton │ ╰── LfbGdbusFeedbackSkeleton ╰── GDBusProxy ╰── LfbGdbusFeedbackProxy
LfbGdbusFeedbackProxy implements GDBusInterface, GInitable, GAsyncInitable and LfbGdbusFeedback.
LfbGdbusFeedbackSkeleton implements GDBusInterface and LfbGdbusFeedback.
LfbGdbusFeedback is implemented by LfbGdbusFeedbackProxy and LfbGdbusFeedbackSkeleton.
GDBusInterfaceInfo *
lfb_gdbus_feedback_interface_info (void
);
Gets a machine-readable description of the org.sigxcpu.Feedback D-Bus interface.
guint lfb_gdbus_feedback_override_properties (GObjectClass *klass
,guint property_id_begin
);
Overrides all GObject properties in the LfbGdbusFeedback interface for a concrete class. The properties are overridden in the order they are defined.
void lfb_gdbus_feedback_complete_trigger_feedback (LfbGdbusFeedback *object
,GDBusMethodInvocation *invocation
,guint id
);
Helper function used in service implementations to finish handling invocations of the 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.
void lfb_gdbus_feedback_complete_end_feedback (LfbGdbusFeedback *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the 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.
void lfb_gdbus_feedback_emit_feedback_ended (LfbGdbusFeedback *object
,guint arg_id
,guint arg_reason
);
Emits the "FeedbackEnded" D-Bus signal.
void lfb_gdbus_feedback_call_trigger_feedback (LfbGdbusFeedback *proxy
,const gchar *arg_app_id
,const gchar *arg_event
,GVariant *arg_hints
,gint arg_timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the TriggerFeedback()
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 lfb_gdbus_feedback_call_trigger_feedback_finish()
to get the result of the operation.
See lfb_gdbus_feedback_call_trigger_feedback_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_app_id |
Argument to pass with the method invocation. |
|
arg_event |
Argument to pass with the method invocation. |
|
arg_hints |
Argument to pass with the method invocation. |
|
arg_timeout |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean lfb_gdbus_feedback_call_trigger_feedback_finish (LfbGdbusFeedback *proxy
,guint *out_id
,GAsyncResult *res
,GError **error
);
Finishes an operation started with lfb_gdbus_feedback_call_trigger_feedback()
.
proxy |
||
out_id |
Return location for return parameter or |
[out][optional] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean lfb_gdbus_feedback_call_trigger_feedback_sync (LfbGdbusFeedback *proxy
,const gchar *arg_app_id
,const gchar *arg_event
,GVariant *arg_hints
,gint arg_timeout
,guint *out_id
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the TriggerFeedback()
D-Bus method on proxy
. The calling thread is blocked until a reply is received.
See lfb_gdbus_feedback_call_trigger_feedback()
for the asynchronous version of this method.
proxy |
||
arg_app_id |
Argument to pass with the method invocation. |
|
arg_event |
Argument to pass with the method invocation. |
|
arg_hints |
Argument to pass with the method invocation. |
|
arg_timeout |
Argument to pass with the method invocation. |
|
out_id |
Return location for return parameter or |
[out][optional] |
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void lfb_gdbus_feedback_call_end_feedback (LfbGdbusFeedback *proxy
,guint arg_id
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the EndFeedback()
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 lfb_gdbus_feedback_call_end_feedback_finish()
to get the result of the operation.
See lfb_gdbus_feedback_call_end_feedback_sync()
for the synchronous, blocking version of this method.
gboolean lfb_gdbus_feedback_call_end_feedback_finish (LfbGdbusFeedback *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with lfb_gdbus_feedback_call_end_feedback()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean lfb_gdbus_feedback_call_end_feedback_sync (LfbGdbusFeedback *proxy
,guint arg_id
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the EndFeedback()
D-Bus method on proxy
. The calling thread is blocked until a reply is received.
See lfb_gdbus_feedback_call_end_feedback()
for the asynchronous version of this method.
const gchar *
lfb_gdbus_feedback_get_profile (LfbGdbusFeedback *object
);
Gets the value of the "Profile" D-Bus property.
Since this D-Bus property is both readable and writable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use lfb_gdbus_feedback_dup_profile()
if on another thread.
[skip]
gchar *
lfb_gdbus_feedback_dup_profile (LfbGdbusFeedback *object
);
Gets a copy of the "Profile" D-Bus property.
Since this D-Bus property is both readable and writable, it is meaningful to use this function on both the client- and service-side.
[skip]
void lfb_gdbus_feedback_set_profile (LfbGdbusFeedback *object
,const gchar *value
);
Sets the "Profile" D-Bus property to value
.
Since this D-Bus property is both readable and writable, it is meaningful to use this function on both the client- and service-side.
[skip]
void lfb_gdbus_feedback_proxy_new (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously creates a proxy for the D-Bus interface org.sigxcpu.Feedback. See g_dbus_proxy_new()
for more details.
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 lfb_gdbus_feedback_proxy_new_finish()
to get the result of the operation.
See lfb_gdbus_feedback_proxy_new_sync()
for the synchronous, blocking version of this constructor.
connection |
A GDBusConnection. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
LfbGdbusFeedback * lfb_gdbus_feedback_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with lfb_gdbus_feedback_proxy_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
LfbGdbusFeedback * lfb_gdbus_feedback_proxy_new_sync (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Synchronously creates a proxy for the D-Bus interface org.sigxcpu.Feedback. See g_dbus_proxy_new_sync()
for more details.
The calling thread is blocked until a reply is received.
See lfb_gdbus_feedback_proxy_new()
for the asynchronous version of this constructor.
connection |
A GDBusConnection. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void lfb_gdbus_feedback_proxy_new_for_bus (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Like lfb_gdbus_feedback_proxy_new()
but takes a GBusType instead of a GDBusConnection.
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 lfb_gdbus_feedback_proxy_new_for_bus_finish()
to get the result of the operation.
See lfb_gdbus_feedback_proxy_new_for_bus_sync()
for the synchronous, blocking version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
LfbGdbusFeedback * lfb_gdbus_feedback_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with lfb_gdbus_feedback_proxy_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
LfbGdbusFeedback * lfb_gdbus_feedback_proxy_new_for_bus_sync (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Like lfb_gdbus_feedback_proxy_new_sync()
but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See lfb_gdbus_feedback_proxy_new_for_bus()
for the asynchronous version of this constructor.
LfbGdbusFeedback *
lfb_gdbus_feedback_skeleton_new (void
);
Creates a skeleton object for the D-Bus interface org.sigxcpu.Feedback.
struct LfbGdbusFeedbackIface { GTypeInterface parent_iface; gboolean (*handle_end_feedback) ( LfbGdbusFeedback *object, GDBusMethodInvocation *invocation, guint arg_id); gboolean (*handle_trigger_feedback) ( LfbGdbusFeedback *object, GDBusMethodInvocation *invocation, const gchar *arg_app_id, const gchar *arg_event, GVariant *arg_hints, gint arg_timeout); const gchar * (*get_profile) (LfbGdbusFeedback *object); void (*feedback_ended) ( LfbGdbusFeedback *object, guint arg_id, guint arg_reason); };
Virtual table for the D-Bus interface org.sigxcpu.Feedback.
The parent interface. |
||
Handler for the “handle-end-feedback” signal. |
||
Handler for the “handle-trigger-feedback” signal. |
||
Getter for the “profile” property. |
||
Handler for the “feedback-ended” signal. |
struct LfbGdbusFeedbackProxy;
The LfbGdbusFeedbackProxy structure contains only private data and should only be accessed using the provided API.
struct LfbGdbusFeedbackProxyClass { GDBusProxyClass parent_class; };
Class structure for LfbGdbusFeedbackProxy.
struct LfbGdbusFeedbackSkeleton;
The LfbGdbusFeedbackSkeleton structure contains only private data and should only be accessed using the provided API.
struct LfbGdbusFeedbackSkeletonClass { GDBusInterfaceSkeletonClass parent_class; };
Class structure for LfbGdbusFeedbackSkeleton.
typedef struct _LfbGdbusFeedback LfbGdbusFeedback;
Abstract interface type for the D-Bus interface org.sigxcpu.Feedback.
typedef struct _LfbGdbusFeedbackProxyPrivate LfbGdbusFeedbackProxyPrivate;
“profile”
property “profile” char *
Represents the D-Bus property "Profile".
Since the D-Bus property for this GObject 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.
Owner: LfbGdbusFeedback
Flags: Read / Write
Default value: NULL
“feedback-ended”
signalvoid user_function (LfbGdbusFeedback *object, guint arg_id, guint arg_reason, gpointer user_data)
On the client-side, this signal is emitted whenever the D-Bus signal "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.
object |
||
arg_id |
Argument. |
|
arg_reason |
Argument. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-end-feedback”
signalgboolean user_function (LfbGdbusFeedback *object, GDBusMethodInvocation *invocation, guint arg_id, gpointer user_data)
Signal emitted when a remote caller is invoking the 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 call lfb_gdbus_feedback_complete_end_feedback()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
A GDBusMethodInvocation. |
|
arg_id |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-trigger-feedback”
signalgboolean user_function (LfbGdbusFeedback *object, GDBusMethodInvocation *invocation, char *arg_app_id, char *arg_event, GVariant *arg_hints, int arg_timeout, gpointer user_data)
Signal emitted when a remote caller is invoking the 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 call lfb_gdbus_feedback_complete_trigger_feedback()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
A GDBusMethodInvocation. |
|
arg_app_id |
Argument passed by remote caller. |
|
arg_event |
Argument passed by remote caller. |
|
arg_hints |
Argument passed by remote caller. |
|
arg_timeout |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last