Class

PhoshNotifyManager

since: 0

Description [src]

final class Phosh.NotifyManager : Phosh.NotifyDBusNotificationsSkeleton
  implements Gio.DBusInterface, Phosh.NotifyDBusNotifications {
  /* No available fields */
}

Manages notifications

PhoshNotifyManager manages notifications sent from the shell itself and via the org.freedesktop.Notification DBus interface. See https://developer.gnome.org/notification-spec/

It maintains a list of notifications via a PhoshNotificationList.

Available since: 0

Functions

phosh_notify_manager_get_default

Get the notify manager singleton.

since: 0

Instance methods

phosh_notify_manager_add_notification

Adds notification to the current list of notifications.

since: 0

phosh_notify_manager_add_shell_notification
No description available.

since: 0

phosh_notify_manager_close_all_notifications
No description available.

since: 0

phosh_notify_manager_close_notification_by_id
No description available.

since: 0

phosh_notify_manager_get_list

Get the PhoshNotificationList of current notifications.

since: 0

phosh_notify_manager_get_notification_id

Get a notification id.

since: 0

phosh_notify_manager_get_show_banners

Are notififcation banners enabled.

since: 0

phosh_notify_manager_get_show_notification_banner
No description available.

since: 0

Methods inherited from GDBusInterfaceSkeleton (13)
g_dbus_interface_skeleton_export

Exports interface_ at object_path on connection.

unstable since: 2.30

g_dbus_interface_skeleton_flush

If interface_ has outstanding changes, request for these changes to be emitted immediately.

unstable since: 2.30

g_dbus_interface_skeleton_get_connection

Gets the first connection that interface_ is exported on, if any.

unstable since: 2.30

g_dbus_interface_skeleton_get_connections

Gets a list of the connections that interface_ is exported on.

unstable since: 2.32

g_dbus_interface_skeleton_get_flags

Gets the GDBusInterfaceSkeletonFlags that describes what the behavior of interface_

unstable since: 2.30

g_dbus_interface_skeleton_get_info

Gets D-Bus introspection information for the D-Bus interface implemented by interface_.

unstable since: 2.30

g_dbus_interface_skeleton_get_object_path

Gets the object path that interface_ is exported on, if any.

unstable since: 2.30

g_dbus_interface_skeleton_get_properties

Gets all D-Bus properties for interface_.

unstable since: 2.30

g_dbus_interface_skeleton_get_vtable

Gets the interface vtable for the D-Bus interface implemented by interface_. The returned function pointers should expect interface_ itself to be passed as user_data.

unstable since: 2.30

g_dbus_interface_skeleton_has_connection

Checks if interface_ is exported on connection.

unstable since: 2.32

g_dbus_interface_skeleton_set_flags

Sets flags describing what the behavior of skeleton should be.

unstable since: 2.30

g_dbus_interface_skeleton_unexport

Stops exporting interface_ on all connections it is exported on.

unstable since: 2.30

g_dbus_interface_skeleton_unexport_from_connection

Stops exporting interface_ on connection.

unstable since: 2.32

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from GDBusInterface (4)
g_dbus_interface_dup_object

Gets the GDBusObject that interface_ belongs to, if any.

unstable since: 2.32

g_dbus_interface_get_info

Gets D-Bus introspection information for the D-Bus interface implemented by interface_.

unstable since: 2.30

g_dbus_interface_get_object

Gets the GDBusObject that interface_ belongs to, if any.

unstable since: 2.30

g_dbus_interface_set_object

Sets the GDBusObject for interface_ to object.

unstable since: 2.30

Methods inherited from PhoshNotifyDBusNotifications (18)
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

Properties

Properties inherited from GDBusInterfaceSkeleton (1)
Gio.DBusInterfaceSkeleton:g-flags

Flags from the GDBusInterfaceSkeletonFlags enumeration.

unstable since: 2.30

Signals

Phosh.NotifyManager::new-notification

Emitted when a new notification is received and a banner should (possibly) be shown.

since: 0

Phosh.NotifyManager::notification-activated

Emitted when the action on a notification gets activated.

since: 0

Signals inherited from GDBusInterfaceSkeleton (1)
GDBusInterfaceSkeleton::g-authorize-method

Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized.

unstable since: 2.30

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

unstable since: 2.0

Signals inherited from PhoshNotifyDBusNotifications (6)
PhoshNotifyDBusNotifications::action-invoked

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

since: 0

PhoshNotifyDBusNotifications::handle-close-notification

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

since: 0

PhoshNotifyDBusNotifications::handle-get-capabilities

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

since: 0

PhoshNotifyDBusNotifications::handle-get-server-information

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

since: 0

PhoshNotifyDBusNotifications::handle-notify

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

since: 0

PhoshNotifyDBusNotifications::notification-closed

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

since: 0

Class structure

struct PhoshNotifyManagerClass {
  PhoshNotifyDBusNotificationsSkeletonClass parent_class;
  
}
No description available.
Class members
parent_class: PhoshNotifyDBusNotificationsSkeletonClass
No description available.