1 /* 2 * This file is generated by gdbus-codegen, do not modify it. 3 * 4 * The license of this code is the same as for the D-Bus interface description 5 * it was derived from. Note that it links to GLib, so must comply with the 6 * LGPL linking clauses. 7 */ 8 9 #ifndef __MND_DBUS_GENERATED_H__ 10 #define __MND_DBUS_GENERATED_H__ 11 12 #include <gio/gio.h> 13 14 G_BEGIN_DECLS 15 16 17 /* ------------------------------------------------------------------------ */ 18 /* Declarations for org.freedesktop.Notifications */ 19 20 #define NOTIFY_DAEMON_TYPE_NOTIFICATIONS (notify_daemon_notifications_get_type ()) 21 #define NOTIFY_DAEMON_NOTIFICATIONS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), NOTIFY_DAEMON_TYPE_NOTIFICATIONS, NotifyDaemonNotifications)) 22 #define NOTIFY_DAEMON_IS_NOTIFICATIONS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), NOTIFY_DAEMON_TYPE_NOTIFICATIONS)) 23 #define NOTIFY_DAEMON_NOTIFICATIONS_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), NOTIFY_DAEMON_TYPE_NOTIFICATIONS, NotifyDaemonNotificationsIface)) 24 25 struct _NotifyDaemonNotifications; 26 typedef struct _NotifyDaemonNotifications NotifyDaemonNotifications; 27 typedef struct _NotifyDaemonNotificationsIface NotifyDaemonNotificationsIface; 28 29 struct _NotifyDaemonNotificationsIface 30 { 31 GTypeInterface parent_iface; 32 33 34 gboolean (*handle_close_notification) ( 35 NotifyDaemonNotifications *object, 36 GDBusMethodInvocation *invocation, 37 guint arg_id); 38 39 gboolean (*handle_get_capabilities) ( 40 NotifyDaemonNotifications *object, 41 GDBusMethodInvocation *invocation); 42 43 gboolean (*handle_get_server_information) ( 44 NotifyDaemonNotifications *object, 45 GDBusMethodInvocation *invocation); 46 47 gboolean (*handle_notify) ( 48 NotifyDaemonNotifications *object, 49 GDBusMethodInvocation *invocation, 50 const gchar *arg_app_name, 51 guint arg_id, 52 const gchar *arg_icon, 53 const gchar *arg_summary, 54 const gchar *arg_body, 55 const gchar *const *arg_actions, 56 GVariant *arg_hints, 57 gint arg_timeout); 58 59 void (*action_invoked) ( 60 NotifyDaemonNotifications *object, 61 guint arg_id, 62 const gchar *arg_action_key); 63 64 void (*notification_closed) ( 65 NotifyDaemonNotifications *object, 66 guint arg_id, 67 guint arg_reason); 68 69 }; 70 71 GType notify_daemon_notifications_get_type (void) G_GNUC_CONST; 72 73 GDBusInterfaceInfo *notify_daemon_notifications_interface_info (void); 74 guint notify_daemon_notifications_override_properties (GObjectClass *klass, guint property_id_begin); 75 76 77 /* D-Bus method call completion functions: */ 78 void notify_daemon_notifications_complete_notify ( 79 NotifyDaemonNotifications *object, 80 GDBusMethodInvocation *invocation, 81 guint return_id); 82 83 void notify_daemon_notifications_complete_close_notification ( 84 NotifyDaemonNotifications *object, 85 GDBusMethodInvocation *invocation); 86 87 void notify_daemon_notifications_complete_get_capabilities ( 88 NotifyDaemonNotifications *object, 89 GDBusMethodInvocation *invocation, 90 const gchar *const *return_caps); 91 92 void notify_daemon_notifications_complete_get_server_information ( 93 NotifyDaemonNotifications *object, 94 GDBusMethodInvocation *invocation, 95 const gchar *return_name, 96 const gchar *return_vendor, 97 const gchar *return_version, 98 const gchar *return_spec_version); 99 100 101 102 /* D-Bus signal emissions functions: */ 103 void notify_daemon_notifications_emit_action_invoked ( 104 NotifyDaemonNotifications *object, 105 guint arg_id, 106 const gchar *arg_action_key); 107 108 void notify_daemon_notifications_emit_notification_closed ( 109 NotifyDaemonNotifications *object, 110 guint arg_id, 111 guint arg_reason); 112 113 114 115 /* D-Bus method calls: */ 116 void notify_daemon_notifications_call_notify ( 117 NotifyDaemonNotifications *proxy, 118 const gchar *arg_app_name, 119 guint arg_id, 120 const gchar *arg_icon, 121 const gchar *arg_summary, 122 const gchar *arg_body, 123 const gchar *const *arg_actions, 124 GVariant *arg_hints, 125 gint arg_timeout, 126 GCancellable *cancellable, 127 GAsyncReadyCallback callback, 128 gpointer user_data); 129 130 gboolean notify_daemon_notifications_call_notify_finish ( 131 NotifyDaemonNotifications *proxy, 132 guint *out_return_id, 133 GAsyncResult *res, 134 GError **error); 135 136 gboolean notify_daemon_notifications_call_notify_sync ( 137 NotifyDaemonNotifications *proxy, 138 const gchar *arg_app_name, 139 guint arg_id, 140 const gchar *arg_icon, 141 const gchar *arg_summary, 142 const gchar *arg_body, 143 const gchar *const *arg_actions, 144 GVariant *arg_hints, 145 gint arg_timeout, 146 guint *out_return_id, 147 GCancellable *cancellable, 148 GError **error); 149 150 void notify_daemon_notifications_call_close_notification ( 151 NotifyDaemonNotifications *proxy, 152 guint arg_id, 153 GCancellable *cancellable, 154 GAsyncReadyCallback callback, 155 gpointer user_data); 156 157 gboolean notify_daemon_notifications_call_close_notification_finish ( 158 NotifyDaemonNotifications *proxy, 159 GAsyncResult *res, 160 GError **error); 161 162 gboolean notify_daemon_notifications_call_close_notification_sync ( 163 NotifyDaemonNotifications *proxy, 164 guint arg_id, 165 GCancellable *cancellable, 166 GError **error); 167 168 void notify_daemon_notifications_call_get_capabilities ( 169 NotifyDaemonNotifications *proxy, 170 GCancellable *cancellable, 171 GAsyncReadyCallback callback, 172 gpointer user_data); 173 174 gboolean notify_daemon_notifications_call_get_capabilities_finish ( 175 NotifyDaemonNotifications *proxy, 176 gchar ***out_return_caps, 177 GAsyncResult *res, 178 GError **error); 179 180 gboolean notify_daemon_notifications_call_get_capabilities_sync ( 181 NotifyDaemonNotifications *proxy, 182 gchar ***out_return_caps, 183 GCancellable *cancellable, 184 GError **error); 185 186 void notify_daemon_notifications_call_get_server_information ( 187 NotifyDaemonNotifications *proxy, 188 GCancellable *cancellable, 189 GAsyncReadyCallback callback, 190 gpointer user_data); 191 192 gboolean notify_daemon_notifications_call_get_server_information_finish ( 193 NotifyDaemonNotifications *proxy, 194 gchar **out_return_name, 195 gchar **out_return_vendor, 196 gchar **out_return_version, 197 gchar **out_return_spec_version, 198 GAsyncResult *res, 199 GError **error); 200 201 gboolean notify_daemon_notifications_call_get_server_information_sync ( 202 NotifyDaemonNotifications *proxy, 203 gchar **out_return_name, 204 gchar **out_return_vendor, 205 gchar **out_return_version, 206 gchar **out_return_spec_version, 207 GCancellable *cancellable, 208 GError **error); 209 210 211 212 /* ---- */ 213 214 #define NOTIFY_DAEMON_TYPE_NOTIFICATIONS_PROXY (notify_daemon_notifications_proxy_get_type ()) 215 #define NOTIFY_DAEMON_NOTIFICATIONS_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), NOTIFY_DAEMON_TYPE_NOTIFICATIONS_PROXY, NotifyDaemonNotificationsProxy)) 216 #define NOTIFY_DAEMON_NOTIFICATIONS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), NOTIFY_DAEMON_TYPE_NOTIFICATIONS_PROXY, NotifyDaemonNotificationsProxyClass)) 217 #define NOTIFY_DAEMON_NOTIFICATIONS_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), NOTIFY_DAEMON_TYPE_NOTIFICATIONS_PROXY, NotifyDaemonNotificationsProxyClass)) 218 #define NOTIFY_DAEMON_IS_NOTIFICATIONS_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), NOTIFY_DAEMON_TYPE_NOTIFICATIONS_PROXY)) 219 #define NOTIFY_DAEMON_IS_NOTIFICATIONS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), NOTIFY_DAEMON_TYPE_NOTIFICATIONS_PROXY)) 220 221 typedef struct _NotifyDaemonNotificationsProxy NotifyDaemonNotificationsProxy; 222 typedef struct _NotifyDaemonNotificationsProxyClass NotifyDaemonNotificationsProxyClass; 223 typedef struct _NotifyDaemonNotificationsProxyPrivate NotifyDaemonNotificationsProxyPrivate; 224 225 struct _NotifyDaemonNotificationsProxy 226 { 227 /*< private >*/ 228 GDBusProxy parent_instance; 229 NotifyDaemonNotificationsProxyPrivate *priv; 230 }; 231 232 struct _NotifyDaemonNotificationsProxyClass 233 { 234 GDBusProxyClass parent_class; 235 }; 236 237 GType notify_daemon_notifications_proxy_get_type (void) G_GNUC_CONST; 238 239 #if GLIB_CHECK_VERSION(2, 44, 0) 240 G_DEFINE_AUTOPTR_CLEANUP_FUNC (NotifyDaemonNotificationsProxy, g_object_unref) 241 #endif 242 243 void notify_daemon_notifications_proxy_new ( 244 GDBusConnection *connection, 245 GDBusProxyFlags flags, 246 const gchar *name, 247 const gchar *object_path, 248 GCancellable *cancellable, 249 GAsyncReadyCallback callback, 250 gpointer user_data); 251 NotifyDaemonNotifications *notify_daemon_notifications_proxy_new_finish ( 252 GAsyncResult *res, 253 GError **error); 254 NotifyDaemonNotifications *notify_daemon_notifications_proxy_new_sync ( 255 GDBusConnection *connection, 256 GDBusProxyFlags flags, 257 const gchar *name, 258 const gchar *object_path, 259 GCancellable *cancellable, 260 GError **error); 261 262 void notify_daemon_notifications_proxy_new_for_bus ( 263 GBusType bus_type, 264 GDBusProxyFlags flags, 265 const gchar *name, 266 const gchar *object_path, 267 GCancellable *cancellable, 268 GAsyncReadyCallback callback, 269 gpointer user_data); 270 NotifyDaemonNotifications *notify_daemon_notifications_proxy_new_for_bus_finish ( 271 GAsyncResult *res, 272 GError **error); 273 NotifyDaemonNotifications *notify_daemon_notifications_proxy_new_for_bus_sync ( 274 GBusType bus_type, 275 GDBusProxyFlags flags, 276 const gchar *name, 277 const gchar *object_path, 278 GCancellable *cancellable, 279 GError **error); 280 281 282 /* ---- */ 283 284 #define NOTIFY_DAEMON_TYPE_NOTIFICATIONS_SKELETON (notify_daemon_notifications_skeleton_get_type ()) 285 #define NOTIFY_DAEMON_NOTIFICATIONS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), NOTIFY_DAEMON_TYPE_NOTIFICATIONS_SKELETON, NotifyDaemonNotificationsSkeleton)) 286 #define NOTIFY_DAEMON_NOTIFICATIONS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), NOTIFY_DAEMON_TYPE_NOTIFICATIONS_SKELETON, NotifyDaemonNotificationsSkeletonClass)) 287 #define NOTIFY_DAEMON_NOTIFICATIONS_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), NOTIFY_DAEMON_TYPE_NOTIFICATIONS_SKELETON, NotifyDaemonNotificationsSkeletonClass)) 288 #define NOTIFY_DAEMON_IS_NOTIFICATIONS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), NOTIFY_DAEMON_TYPE_NOTIFICATIONS_SKELETON)) 289 #define NOTIFY_DAEMON_IS_NOTIFICATIONS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), NOTIFY_DAEMON_TYPE_NOTIFICATIONS_SKELETON)) 290 291 typedef struct _NotifyDaemonNotificationsSkeleton NotifyDaemonNotificationsSkeleton; 292 typedef struct _NotifyDaemonNotificationsSkeletonClass NotifyDaemonNotificationsSkeletonClass; 293 typedef struct _NotifyDaemonNotificationsSkeletonPrivate NotifyDaemonNotificationsSkeletonPrivate; 294 295 struct _NotifyDaemonNotificationsSkeleton 296 { 297 /*< private >*/ 298 GDBusInterfaceSkeleton parent_instance; 299 NotifyDaemonNotificationsSkeletonPrivate *priv; 300 }; 301 302 struct _NotifyDaemonNotificationsSkeletonClass 303 { 304 GDBusInterfaceSkeletonClass parent_class; 305 }; 306 307 GType notify_daemon_notifications_skeleton_get_type (void) G_GNUC_CONST; 308 309 #if GLIB_CHECK_VERSION(2, 44, 0) 310 G_DEFINE_AUTOPTR_CLEANUP_FUNC (NotifyDaemonNotificationsSkeleton, g_object_unref) 311 #endif 312 313 NotifyDaemonNotifications *notify_daemon_notifications_skeleton_new (void); 314 315 316 G_END_DECLS 317 318 #endif /* __MND_DBUS_GENERATED_H__ */ 319