Top | ![]() |
![]() |
![]() |
![]() |
void | action-invoked | Run Last |
gboolean | handle-close-notification | Run Last |
gboolean | handle-get-capabilities | Run Last |
gboolean | handle-get-server-information | Run Last |
gboolean | handle-notify | Run Last |
void | notification-closed | Run Last |
GInterface ╰── PhoshNotifyDbusNotifications GObject ├── GDBusInterfaceSkeleton │ ╰── PhoshNotifyDbusNotificationsSkeleton │ ╰── PhoshNotifyManager ╰── GDBusProxy ╰── PhoshNotifyDbusNotificationsProxy
PhoshNotifyDbusNotificationsProxy implements GDBusInterface, GInitable, GAsyncInitable and PhoshNotifyDbusNotifications.
PhoshNotifyDbusNotificationsSkeleton implements GDBusInterface and PhoshNotifyDbusNotifications.
PhoshNotifyDbusNotifications is implemented by PhoshNotifyDbusNotificationsProxy, PhoshNotifyDbusNotificationsSkeleton and PhoshNotifyManager.
GDBusInterfaceInfo *
phosh_notify_dbus_notifications_interface_info
(void
);
Gets a machine-readable description of the org.freedesktop.Notifications D-Bus interface.
guint phosh_notify_dbus_notifications_override_properties (GObjectClass *klass
,guint property_id_begin
);
Overrides all GObject properties in the PhoshNotifyDbusNotifications interface for a concrete class. The properties are overridden in the order they are defined.
void phosh_notify_dbus_notifications_complete_get_capabilities (PhoshNotifyDbusNotifications *object
,GDBusMethodInvocation *invocation
,const gchar *const *capabilities
);
Helper function used in service implementations to finish handling invocations of the GetCapabilities()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_notify_dbus_notifications_complete_notify (PhoshNotifyDbusNotifications *object
,GDBusMethodInvocation *invocation
,guint id
);
Helper function used in service implementations to finish handling invocations of the Notify()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_notify_dbus_notifications_complete_close_notification (PhoshNotifyDbusNotifications *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the CloseNotification()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_notify_dbus_notifications_complete_get_server_information (PhoshNotifyDbusNotifications *object
,GDBusMethodInvocation *invocation
,const gchar *name
,const gchar *vendor
,const gchar *version
,const gchar *spec_version
);
Helper function used in service implementations to finish handling invocations of the GetServerInformation()
g_dbus_method_invocation_return_error()
or similar.
This method will free invocation
, you cannot use it afterwards.
void phosh_notify_dbus_notifications_emit_notification_closed (PhoshNotifyDbusNotifications *object
,guint arg_id
,guint arg_reason
);
Emits the "NotificationClosed" D-Bus signal.
void phosh_notify_dbus_notifications_emit_action_invoked (PhoshNotifyDbusNotifications *object
,guint arg_id
,const gchar *arg_action_key
);
Emits the "ActionInvoked" D-Bus signal.
void phosh_notify_dbus_notifications_call_get_capabilities (PhoshNotifyDbusNotifications *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the GetCapabilities()
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.
You can then call phosh_notify_dbus_notifications_call_get_capabilities_finish()
to get the result of the operation.
See phosh_notify_dbus_notifications_call_get_capabilities_sync()
for the synchronous, blocking version of this method.
gboolean phosh_notify_dbus_notifications_call_get_capabilities_finish (PhoshNotifyDbusNotifications *proxy
,gchar ***out_capabilities
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_notify_dbus_notifications_call_get_capabilities()
.
proxy |
||
out_capabilities |
Return location for return parameter or |
[out][array zero-terminated=1] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_notify_dbus_notifications_call_get_capabilities_sync (PhoshNotifyDbusNotifications *proxy
,gchar ***out_capabilities
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the GetCapabilities()
proxy
. The calling thread is blocked until a reply is received.
See phosh_notify_dbus_notifications_call_get_capabilities()
for the asynchronous version of this method.
void phosh_notify_dbus_notifications_call_notify (PhoshNotifyDbusNotifications *proxy
,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
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Notify()
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.
You can then call phosh_notify_dbus_notifications_call_notify_finish()
to get the result of the operation.
See phosh_notify_dbus_notifications_call_notify_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_app_name |
Argument to pass with the method invocation. |
|
arg_replaces_id |
Argument to pass with the method invocation. |
|
arg_app_icon |
Argument to pass with the method invocation. |
|
arg_summary |
Argument to pass with the method invocation. |
|
arg_body |
Argument to pass with the method invocation. |
|
arg_actions |
Argument to pass with the method invocation. |
|
arg_hints |
Argument to pass with the method invocation. |
|
arg_expire_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 phosh_notify_dbus_notifications_call_notify_finish (PhoshNotifyDbusNotifications *proxy
,guint *out_id
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_notify_dbus_notifications_call_notify()
.
proxy |
||
out_id |
Return location for return parameter or |
[out] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_notify_dbus_notifications_call_notify_sync (PhoshNotifyDbusNotifications *proxy
,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
,guint *out_id
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Notify()
proxy
. The calling thread is blocked until a reply is received.
See phosh_notify_dbus_notifications_call_notify()
for the asynchronous version of this method.
proxy |
||
arg_app_name |
Argument to pass with the method invocation. |
|
arg_replaces_id |
Argument to pass with the method invocation. |
|
arg_app_icon |
Argument to pass with the method invocation. |
|
arg_summary |
Argument to pass with the method invocation. |
|
arg_body |
Argument to pass with the method invocation. |
|
arg_actions |
Argument to pass with the method invocation. |
|
arg_hints |
Argument to pass with the method invocation. |
|
arg_expire_timeout |
Argument to pass with the method invocation. |
|
out_id |
Return location for return parameter or |
[out] |
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_notify_dbus_notifications_call_close_notification (PhoshNotifyDbusNotifications *proxy
,guint arg_id
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the CloseNotification()
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.
You can then call phosh_notify_dbus_notifications_call_close_notification_finish()
to get the result of the operation.
See phosh_notify_dbus_notifications_call_close_notification_sync()
for the synchronous, blocking version of this method.
gboolean phosh_notify_dbus_notifications_call_close_notification_finish (PhoshNotifyDbusNotifications *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_notify_dbus_notifications_call_close_notification()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_notify_dbus_notifications_call_close_notification_sync (PhoshNotifyDbusNotifications *proxy
,guint arg_id
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the CloseNotification()
proxy
. The calling thread is blocked until a reply is received.
See phosh_notify_dbus_notifications_call_close_notification()
for the asynchronous version of this method.
void phosh_notify_dbus_notifications_call_get_server_information (PhoshNotifyDbusNotifications *proxy
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the GetServerInformation()
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.
You can then call phosh_notify_dbus_notifications_call_get_server_information_finish()
to get the result of the operation.
See phosh_notify_dbus_notifications_call_get_server_information_sync()
for the synchronous, blocking version of this method.
gboolean phosh_notify_dbus_notifications_call_get_server_information_finish (PhoshNotifyDbusNotifications *proxy
,gchar **out_name
,gchar **out_vendor
,gchar **out_version
,gchar **out_spec_version
,GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_notify_dbus_notifications_call_get_server_information()
.
proxy |
||
out_name |
Return location for return parameter or |
[out] |
out_vendor |
Return location for return parameter or |
[out] |
out_version |
Return location for return parameter or |
[out] |
out_spec_version |
Return location for return parameter or |
[out] |
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean phosh_notify_dbus_notifications_call_get_server_information_sync (PhoshNotifyDbusNotifications *proxy
,gchar **out_name
,gchar **out_vendor
,gchar **out_version
,gchar **out_spec_version
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the GetServerInformation()
proxy
. The calling thread is blocked until a reply is received.
See phosh_notify_dbus_notifications_call_get_server_information()
for the asynchronous version of this method.
proxy |
||
out_name |
Return location for return parameter or |
[out] |
out_vendor |
Return location for return parameter or |
[out] |
out_version |
Return location for return parameter or |
[out] |
out_spec_version |
Return location for return parameter or |
[out] |
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_notify_dbus_notifications_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.freedesktop.Notifications. 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.
You can then call phosh_notify_dbus_notifications_proxy_new_finish()
to get the result of the operation.
See phosh_notify_dbus_notifications_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 |
PhoshNotifyDbusNotifications * phosh_notify_dbus_notifications_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_notify_dbus_notifications_proxy_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
PhoshNotifyDbusNotifications * phosh_notify_dbus_notifications_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.freedesktop.Notifications. See g_dbus_proxy_new_sync()
for more details.
The calling thread is blocked until a reply is received.
See phosh_notify_dbus_notifications_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 phosh_notify_dbus_notifications_proxy_new_for_bus (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Like phosh_notify_dbus_notifications_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.
You can then call phosh_notify_dbus_notifications_proxy_new_for_bus_finish()
to get the result of the operation.
See phosh_notify_dbus_notifications_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 |
PhoshNotifyDbusNotifications * phosh_notify_dbus_notifications_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_notify_dbus_notifications_proxy_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
PhoshNotifyDbusNotifications * phosh_notify_dbus_notifications_proxy_new_for_bus_sync (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Like phosh_notify_dbus_notifications_proxy_new_sync()
but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See phosh_notify_dbus_notifications_proxy_new_for_bus()
for the asynchronous version of this constructor.
PhoshNotifyDbusNotifications *
phosh_notify_dbus_notifications_skeleton_new
(void
);
Creates a skeleton object for the D-Bus interface org.freedesktop.Notifications.
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.
The parent interface. |
||
Handler for the “handle-close-notification” signal. |
||
Handler for the “handle-get-capabilities” signal. |
||
Handler for the “handle-get-server-information” signal. |
||
Handler for the “handle-notify” signal. |
||
Handler for the “action-invoked” signal. |
||
Handler for the “notification-closed” signal. |
struct PhoshNotifyDbusNotificationsProxy;
The PhoshNotifyDbusNotificationsProxy structure contains only private data and should only be accessed using the provided API.
struct PhoshNotifyDbusNotificationsProxyClass { GDBusProxyClass parent_class; };
Class structure for PhoshNotifyDbusNotificationsProxy.
struct PhoshNotifyDbusNotificationsSkeleton;
The PhoshNotifyDbusNotificationsSkeleton structure contains only private data and should only be accessed using the provided API.
struct PhoshNotifyDbusNotificationsSkeletonClass { GDBusInterfaceSkeletonClass parent_class; };
Class structure for PhoshNotifyDbusNotificationsSkeleton.
typedef struct _PhoshNotifyDbusNotifications PhoshNotifyDbusNotifications;
Abstract interface type for the D-Bus interface org.freedesktop.Notifications.
typedef struct _PhoshNotifyDbusNotificationsProxyPrivate PhoshNotifyDbusNotificationsProxyPrivate;
“action-invoked”
signalvoid user_function (PhoshNotifyDbusNotifications *object, guint arg_id, gchar *arg_action_key, gpointer user_data)
On the client-side, this signal is emitted whenever the D-Bus signal "ActionInvoked" 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_action_key |
Argument. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-close-notification”
signalgboolean user_function (PhoshNotifyDbusNotifications *object, GDBusMethodInvocation *invocation, guint arg_id, gpointer user_data)
Signal emitted when a remote caller is invoking the CloseNotification()
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 phosh_notify_dbus_notifications_complete_close_notification()
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-get-capabilities”
signalgboolean user_function (PhoshNotifyDbusNotifications *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the GetCapabilities()
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 phosh_notify_dbus_notifications_complete_get_capabilities()
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. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-get-server-information”
signalgboolean user_function (PhoshNotifyDbusNotifications *object, GDBusMethodInvocation *invocation, gpointer user_data)
Signal emitted when a remote caller is invoking the GetServerInformation()
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 phosh_notify_dbus_notifications_complete_get_server_information()
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. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-notify”
signalgboolean user_function (PhoshNotifyDbusNotifications *object, GDBusMethodInvocation *invocation, gchar *arg_app_name, guint arg_replaces_id, gchar *arg_app_icon, gchar *arg_summary, gchar *arg_body, GStrv arg_actions, GVariant *arg_hints, gint arg_expire_timeout, gpointer user_data)
Signal emitted when a remote caller is invoking the Notify()
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 phosh_notify_dbus_notifications_complete_notify()
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_name |
Argument passed by remote caller. |
|
arg_replaces_id |
Argument passed by remote caller. |
|
arg_app_icon |
Argument passed by remote caller. |
|
arg_summary |
Argument passed by remote caller. |
|
arg_body |
Argument passed by remote caller. |
|
arg_actions |
Argument passed by remote caller. |
|
arg_hints |
Argument passed by remote caller. |
|
arg_expire_timeout |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“notification-closed”
signalvoid user_function (PhoshNotifyDbusNotifications *object, guint arg_id, guint arg_reason, gpointer user_data)
On the client-side, this signal is emitted whenever the D-Bus signal "NotificationClosed" 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