### Interface

# Lfb GdbusFeedback

#### Description [src]

    interface Lfb.GdbusFeedback : GObject.Object

Abstract interface type for the D-Bus interface org.sigxcpu.Feedback.

#### Prerequisite

In order to implement GdbusFeedback, your type must inherit from`GObject`.

#### Implementations

- LfbGdbusFeedbackProxy
- LfbGdbusFeedbackSkeleton

#### Functions

###### lfb_gdbus_feedback_interface_info

Gets a machine-readable description of the org.sigxcpu.Feedback D-Bus interface.

###### lfb_gdbus_feedback_override_properties

Overrides all `GObject` properties in the `LfbGdbusFeedback` interface for a concrete class. The properties are overridden in the order they are defined.

#### Instance methods

###### lfb_gdbus_feedback_call_end_feedback

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.

###### lfb_gdbus_feedback_call_end_feedback_finish

Finishes an operation started with lfb_gdbus_feedback_call_end_feedback().

###### lfb_gdbus_feedback_call_end_feedback_sync

Synchronously invokes the EndFeedback() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.

###### lfb_gdbus_feedback_call_trigger_feedback

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.

###### lfb_gdbus_feedback_call_trigger_feedback_finish

Finishes an operation started with lfb_gdbus_feedback_call_trigger_feedback().

###### lfb_gdbus_feedback_call_trigger_feedback_sync

Synchronously invokes the TriggerFeedback() D-Bus method on `proxy`. The calling thread is blocked until a reply is received.

###### lfb_gdbus_feedback_complete_end_feedback

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.

###### lfb_gdbus_feedback_complete_trigger_feedback

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.

###### lfb_gdbus_feedback_dup_profile

Gets a copy of the “Profile” D-Bus property.

###### lfb_gdbus_feedback_emit_feedback_ended

Emits the “FeedbackEnded” D-Bus signal.

###### lfb_gdbus_feedback_get_profile

Gets the value of the “Profile” D-Bus property.

###### lfb_gdbus_feedback_set_profile

Sets the “Profile” D-Bus property to `value`.

#### Properties

###### Lfb.GdbusFeedback:profile

Represents the D-Bus property “Profile”.

#### Signals

###### Lfb.GdbusFeedback::feedback-ended

On the client-side, this signal is emitted whenever the D-Bus signal “FeedbackEnded” is received.

###### Lfb.GdbusFeedback::handle-end-feedback

Signal emitted when a remote caller is invoking the EndFeedback() D-Bus method.

###### Lfb.GdbusFeedback::handle-trigger-feedback

Signal emitted when a remote caller is invoking the TriggerFeedback() D-Bus method.

#### Interface structure

    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.

###### Interface members

`parent_iface`

    GTypeInterface

| The parent interface.

`handle_end_feedback`

    gboolean (* handle_end_feedback) (
        LfbGdbusFeedback* object,
        GDBusMethodInvocation* invocation,
        guint arg_id
      )

| Handler for the `LfbGdbusFeedback::handle-end-feedback` signal.

`handle_trigger_feedback`

    gboolean (* handle_trigger_feedback) (
        LfbGdbusFeedback* object,
        GDBusMethodInvocation* invocation,
        const gchar* arg_app_id,
        const gchar* arg_event,
        GVariant* arg_hints,
        gint arg_timeout
      )

| Handler for the `LfbGdbusFeedback::handle-trigger-feedback` signal.

`get_profile`

    const gchar* (* get_profile) (
        LfbGdbusFeedback* object
      )

| Getter for the `LfbGdbusFeedback:profile` property.

`feedback_ended`

    void (* feedback_ended) (
        LfbGdbusFeedback* object,
        guint arg_id,
        guint arg_reason
      )

| Handler for the `LfbGdbusFeedback::feedback-ended` signal.

#### Virtual methods

###### Lfb.GdbusFeedback.feedback_ended

Handler for the `LfbGdbusFeedback::feedback-ended` signal.

###### Lfb.GdbusFeedback.get_profile

Gets the value of the “Profile” D-Bus property.

###### Lfb.GdbusFeedback.handle_end_feedback

Handler for the `LfbGdbusFeedback::handle-end-feedback` signal.

###### Lfb.GdbusFeedback.handle_trigger_feedback

Handler for the `LfbGdbusFeedback::handle-trigger-feedback` signal.