### Interface

# Phosh NotifyDBusNotifications

since: 0

#### Description [src]

    interface Phosh.NotifyDBusNotifications : GObject.Object

Abstract interface type for the D-Bus interface org.freedesktop.Notifications.

Available since: 0

#### Prerequisite

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

#### Implementations

- PhoshNotifyDBusNotificationsProxy
- PhoshNotifyDBusNotificationsSkeleton
- PhoshNotifyManager

#### Functions

###### phosh_notify_dbus_notifications_interface_info

Gets a machine-readable description of the org.freedesktop.Notifications D-Bus interface.

since: 0

###### phosh_notify_dbus_notifications_override_properties

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

since: 0

#### Instance methods

###### phosh_notify_dbus_notifications_call_close_notification

Asynchronously invokes the CloseNotification() 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_notify_dbus_notifications_call_close_notification_finish()` to get the result of the operation.

since: 0

###### phosh_notify_dbus_notifications_call_close_notification_finish

Finishes an operation started with phosh_notify_dbus_notifications_call_close_notification().

since: 0

###### phosh_notify_dbus_notifications_call_close_notification_sync

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

since: 0

###### phosh_notify_dbus_notifications_call_get_capabilities

Asynchronously invokes the GetCapabilities() 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_notify_dbus_notifications_call_get_capabilities_finish()` to get the result of the operation.

since: 0

###### phosh_notify_dbus_notifications_call_get_capabilities_finish

Finishes an operation started with phosh_notify_dbus_notifications_call_get_capabilities().

since: 0

###### phosh_notify_dbus_notifications_call_get_capabilities_sync

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

since: 0

###### phosh_notify_dbus_notifications_call_get_server_information

Asynchronously invokes the GetServerInformation() 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_notify_dbus_notifications_call_get_server_information_finish()` to get the result of the operation.

since: 0

###### phosh_notify_dbus_notifications_call_get_server_information_finish

Finishes an operation started with phosh_notify_dbus_notifications_call_get_server_information().

since: 0

###### phosh_notify_dbus_notifications_call_get_server_information_sync

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

since: 0

###### phosh_notify_dbus_notifications_call_notify

Asynchronously invokes the Notify() 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_notify_dbus_notifications_call_notify_finish()` to get the result of the operation.

since: 0

###### phosh_notify_dbus_notifications_call_notify_finish

Finishes an operation started with phosh_notify_dbus_notifications_call_notify().

since: 0

###### phosh_notify_dbus_notifications_call_notify_sync

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

since: 0

###### phosh_notify_dbus_notifications_complete_close_notification

Helper function used in service implementations to finish handling invocations of the CloseNotification() 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_notify_dbus_notifications_complete_get_capabilities

Helper function used in service implementations to finish handling invocations of the GetCapabilities() 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_notify_dbus_notifications_complete_get_server_information

Helper function used in service implementations to finish handling invocations of the GetServerInformation() 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_notify_dbus_notifications_complete_notify

Helper function used in service implementations to finish handling invocations of the Notify() 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_notify_dbus_notifications_emit_action_invoked

Emits the “ActionInvoked” D-Bus signal.

since: 0

###### phosh_notify_dbus_notifications_emit_notification_closed

Emits the “NotificationClosed” D-Bus signal.

since: 0

#### Signals

###### Phosh.NotifyDBusNotifications::action-invoked

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

since: 0

###### Phosh.NotifyDBusNotifications::handle-close-notification

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

since: 0

###### Phosh.NotifyDBusNotifications::handle-get-capabilities

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

since: 0

###### Phosh.NotifyDBusNotifications::handle-get-server-information

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

since: 0

###### Phosh.NotifyDBusNotifications::handle-notify

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

since: 0

###### Phosh.NotifyDBusNotifications::notification-closed

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

since: 0

#### Interface structure

    struct PhoshNotifyDBusNotificationsIface {
      GTypeInterface parent_iface;
      gboolean (* handle_close_notification) (
        PhoshNotifyDBusNotifications* object,
        GDBusMethodInvocation* invocation,
        guint arg_id
      );
      gboolean (* handle_get_capabilities) (
        PhoshNotifyDBusNotifications* object,
        GDBusMethodInvocation* invocation
      );
      gboolean (* handle_get_server_information) (
        PhoshNotifyDBusNotifications* object,
        GDBusMethodInvocation* invocation
      );
      gboolean (* handle_notify) (
        PhoshNotifyDBusNotifications* object,
        GDBusMethodInvocation* invocation,
        const gchar* arg_app_name,
        guint arg_replaces_id,
        const gchar* arg_app_icon,
        const gchar* arg_summary,
        const gchar* arg_body,
        const gchar* const* arg_actions,
        GVariant* arg_hints,
        gint arg_expire_timeout
      );
      void (* action_invoked) (
        PhoshNotifyDBusNotifications* object,
        guint arg_id,
        const gchar* arg_action_key
      );
      void (* notification_closed) (
        PhoshNotifyDBusNotifications* object,
        guint arg_id,
        guint arg_reason
      );

    }

Virtual table for the D-Bus interface org.freedesktop.Notifications.

###### Interface members

`parent_iface`

    GTypeInterface

| The parent interface.

`handle_close_notification`

    gboolean (* handle_close_notification) (
        PhoshNotifyDBusNotifications* object,
        GDBusMethodInvocation* invocation,
        guint arg_id
      )

| Handler for the `PhoshNotifyDBusNotifications::handle-close-notification` signal.

`handle_get_capabilities`

    gboolean (* handle_get_capabilities) (
        PhoshNotifyDBusNotifications* object,
        GDBusMethodInvocation* invocation
      )

| Handler for the `PhoshNotifyDBusNotifications::handle-get-capabilities` signal.

`handle_get_server_information`

    gboolean (* handle_get_server_information) (
        PhoshNotifyDBusNotifications* object,
        GDBusMethodInvocation* invocation
      )

| Handler for the `PhoshNotifyDBusNotifications::handle-get-server-information` signal.

`handle_notify`

    gboolean (* handle_notify) (
        PhoshNotifyDBusNotifications* object,
        GDBusMethodInvocation* invocation,
        const gchar* arg_app_name,
        guint arg_replaces_id,
        const gchar* arg_app_icon,
        const gchar* arg_summary,
        const gchar* arg_body,
        const gchar* const* arg_actions,
        GVariant* arg_hints,
        gint arg_expire_timeout
      )

| Handler for the `PhoshNotifyDBusNotifications::handle-notify` signal.

`action_invoked`

    void (* action_invoked) (
        PhoshNotifyDBusNotifications* object,
        guint arg_id,
        const gchar* arg_action_key
      )

| Handler for the `PhoshNotifyDBusNotifications::action-invoked` signal.

`notification_closed`

    void (* notification_closed) (
        PhoshNotifyDBusNotifications* object,
        guint arg_id,
        guint arg_reason
      )

| Handler for the `PhoshNotifyDBusNotifications::notification-closed` signal.

#### Virtual methods

###### Phosh.NotifyDBusNotifications.action_invoked

Handler for the `PhoshNotifyDBusNotifications::action-invoked` signal.

since: 0

###### Phosh.NotifyDBusNotifications.handle_close_notification

Handler for the `PhoshNotifyDBusNotifications::handle-close-notification` signal.

since: 0

###### Phosh.NotifyDBusNotifications.handle_get_capabilities

Handler for the `PhoshNotifyDBusNotifications::handle-get-capabilities` signal.

since: 0

###### Phosh.NotifyDBusNotifications.handle_get_server_information

Handler for the `PhoshNotifyDBusNotifications::handle-get-server-information` signal.

since: 0

###### Phosh.NotifyDBusNotifications.handle_notify

Handler for the `PhoshNotifyDBusNotifications::handle-notify` signal.

since: 0

###### Phosh.NotifyDBusNotifications.notification_closed

Handler for the `PhoshNotifyDBusNotifications::notification-closed` signal.

since: 0