### Interface

# Phosh NotifyDBusNotifications

#### Description [src]

    interface Phosh.NotifyDBusNotifications : GObject.Object

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

#### 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.

###### 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.

#### 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.

###### phosh_notify_dbus_notifications_call_close_notification_finish

Finishes an operation started with phosh_notify_dbus_notifications_call_close_notification().

###### 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.

###### 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.

###### phosh_notify_dbus_notifications_call_get_capabilities_finish

Finishes an operation started with phosh_notify_dbus_notifications_call_get_capabilities().

###### 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.

###### 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.

###### phosh_notify_dbus_notifications_call_get_server_information_finish

Finishes an operation started with phosh_notify_dbus_notifications_call_get_server_information().

###### 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.

###### 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.

###### phosh_notify_dbus_notifications_call_notify_finish

Finishes an operation started with phosh_notify_dbus_notifications_call_notify().

###### 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.

###### 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.

###### 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.

###### 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.

###### 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.

###### phosh_notify_dbus_notifications_emit_action_invoked

Emits the “ActionInvoked” D-Bus signal.

###### phosh_notify_dbus_notifications_emit_notification_closed

Emits the “NotificationClosed” D-Bus signal.

#### Signals

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

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

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

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

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

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

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

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

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

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

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

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

#### 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.

###### Phosh.NotifyDBusNotifications.handle_close_notification

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

###### Phosh.NotifyDBusNotifications.handle_get_capabilities

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

###### Phosh.NotifyDBusNotifications.handle_get_server_information

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

###### Phosh.NotifyDBusNotifications.handle_notify

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

###### Phosh.NotifyDBusNotifications.notification_closed

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