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 __TUMBLER_SERVICE_GDBUS_H__ 10 #define __TUMBLER_SERVICE_GDBUS_H__ 11 12 #include <gio/gio.h> 13 14 G_BEGIN_DECLS 15 16 17 /* ------------------------------------------------------------------------ */ 18 /* Declarations for org.freedesktop.thumbnails.Thumbnailer1 */ 19 20 #define TUMBLER_TYPE_EXPORTED_SERVICE (tumbler_exported_service_get_type ()) 21 #define TUMBLER_EXPORTED_SERVICE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TUMBLER_TYPE_EXPORTED_SERVICE, TumblerExportedService)) 22 #define TUMBLER_IS_EXPORTED_SERVICE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TUMBLER_TYPE_EXPORTED_SERVICE)) 23 #define TUMBLER_EXPORTED_SERVICE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TUMBLER_TYPE_EXPORTED_SERVICE, TumblerExportedServiceIface)) 24 25 struct _TumblerExportedService; 26 typedef struct _TumblerExportedService TumblerExportedService; 27 typedef struct _TumblerExportedServiceIface TumblerExportedServiceIface; 28 29 struct _TumblerExportedServiceIface 30 { 31 GTypeInterface parent_iface; 32 33 34 gboolean (*handle_dequeue) ( 35 TumblerExportedService *object, 36 GDBusMethodInvocation *invocation, 37 guint arg_handle); 38 39 gboolean (*handle_get_flavors) ( 40 TumblerExportedService *object, 41 GDBusMethodInvocation *invocation); 42 43 gboolean (*handle_get_schedulers) ( 44 TumblerExportedService *object, 45 GDBusMethodInvocation *invocation); 46 47 gboolean (*handle_get_supported) ( 48 TumblerExportedService *object, 49 GDBusMethodInvocation *invocation); 50 51 gboolean (*handle_queue) ( 52 TumblerExportedService *object, 53 GDBusMethodInvocation *invocation, 54 const gchar *const *arg_uris, 55 const gchar *const *arg_mime_types, 56 const gchar *arg_flavor, 57 const gchar *arg_scheduler, 58 guint arg_handle_to_unqueue); 59 60 void (*error) ( 61 TumblerExportedService *object, 62 guint arg_handle, 63 const gchar *const *arg_failed_uris, 64 gint arg_error_code, 65 const gchar *arg_message); 66 67 void (*finished) ( 68 TumblerExportedService *object, 69 guint arg_handle); 70 71 void (*ready) ( 72 TumblerExportedService *object, 73 guint arg_handle, 74 const gchar *const *arg_uris); 75 76 void (*started) ( 77 TumblerExportedService *object, 78 guint arg_handle); 79 80 }; 81 82 GType tumbler_exported_service_get_type (void) G_GNUC_CONST; 83 84 GDBusInterfaceInfo *tumbler_exported_service_interface_info (void); 85 guint tumbler_exported_service_override_properties (GObjectClass *klass, guint property_id_begin); 86 87 88 /* D-Bus method call completion functions: */ 89 void tumbler_exported_service_complete_queue ( 90 TumblerExportedService *object, 91 GDBusMethodInvocation *invocation, 92 guint handle); 93 94 void tumbler_exported_service_complete_dequeue ( 95 TumblerExportedService *object, 96 GDBusMethodInvocation *invocation); 97 98 void tumbler_exported_service_complete_get_supported ( 99 TumblerExportedService *object, 100 GDBusMethodInvocation *invocation, 101 const gchar *const *uri_schemes, 102 const gchar *const *mime_types); 103 104 void tumbler_exported_service_complete_get_schedulers ( 105 TumblerExportedService *object, 106 GDBusMethodInvocation *invocation, 107 const gchar *const *schedulers); 108 109 void tumbler_exported_service_complete_get_flavors ( 110 TumblerExportedService *object, 111 GDBusMethodInvocation *invocation, 112 const gchar *const *flavors); 113 114 115 116 /* D-Bus signal emissions functions: */ 117 void tumbler_exported_service_emit_started ( 118 TumblerExportedService *object, 119 guint arg_handle); 120 121 void tumbler_exported_service_emit_finished ( 122 TumblerExportedService *object, 123 guint arg_handle); 124 125 void tumbler_exported_service_emit_ready ( 126 TumblerExportedService *object, 127 guint arg_handle, 128 const gchar *const *arg_uris); 129 130 void tumbler_exported_service_emit_error ( 131 TumblerExportedService *object, 132 guint arg_handle, 133 const gchar *const *arg_failed_uris, 134 gint arg_error_code, 135 const gchar *arg_message); 136 137 138 139 /* D-Bus method calls: */ 140 void tumbler_exported_service_call_queue ( 141 TumblerExportedService *proxy, 142 const gchar *const *arg_uris, 143 const gchar *const *arg_mime_types, 144 const gchar *arg_flavor, 145 const gchar *arg_scheduler, 146 guint arg_handle_to_unqueue, 147 GCancellable *cancellable, 148 GAsyncReadyCallback callback, 149 gpointer user_data); 150 151 gboolean tumbler_exported_service_call_queue_finish ( 152 TumblerExportedService *proxy, 153 guint *out_handle, 154 GAsyncResult *res, 155 GError **error); 156 157 gboolean tumbler_exported_service_call_queue_sync ( 158 TumblerExportedService *proxy, 159 const gchar *const *arg_uris, 160 const gchar *const *arg_mime_types, 161 const gchar *arg_flavor, 162 const gchar *arg_scheduler, 163 guint arg_handle_to_unqueue, 164 guint *out_handle, 165 GCancellable *cancellable, 166 GError **error); 167 168 void tumbler_exported_service_call_dequeue ( 169 TumblerExportedService *proxy, 170 guint arg_handle, 171 GCancellable *cancellable, 172 GAsyncReadyCallback callback, 173 gpointer user_data); 174 175 gboolean tumbler_exported_service_call_dequeue_finish ( 176 TumblerExportedService *proxy, 177 GAsyncResult *res, 178 GError **error); 179 180 gboolean tumbler_exported_service_call_dequeue_sync ( 181 TumblerExportedService *proxy, 182 guint arg_handle, 183 GCancellable *cancellable, 184 GError **error); 185 186 void tumbler_exported_service_call_get_supported ( 187 TumblerExportedService *proxy, 188 GCancellable *cancellable, 189 GAsyncReadyCallback callback, 190 gpointer user_data); 191 192 gboolean tumbler_exported_service_call_get_supported_finish ( 193 TumblerExportedService *proxy, 194 gchar ***out_uri_schemes, 195 gchar ***out_mime_types, 196 GAsyncResult *res, 197 GError **error); 198 199 gboolean tumbler_exported_service_call_get_supported_sync ( 200 TumblerExportedService *proxy, 201 gchar ***out_uri_schemes, 202 gchar ***out_mime_types, 203 GCancellable *cancellable, 204 GError **error); 205 206 void tumbler_exported_service_call_get_schedulers ( 207 TumblerExportedService *proxy, 208 GCancellable *cancellable, 209 GAsyncReadyCallback callback, 210 gpointer user_data); 211 212 gboolean tumbler_exported_service_call_get_schedulers_finish ( 213 TumblerExportedService *proxy, 214 gchar ***out_schedulers, 215 GAsyncResult *res, 216 GError **error); 217 218 gboolean tumbler_exported_service_call_get_schedulers_sync ( 219 TumblerExportedService *proxy, 220 gchar ***out_schedulers, 221 GCancellable *cancellable, 222 GError **error); 223 224 void tumbler_exported_service_call_get_flavors ( 225 TumblerExportedService *proxy, 226 GCancellable *cancellable, 227 GAsyncReadyCallback callback, 228 gpointer user_data); 229 230 gboolean tumbler_exported_service_call_get_flavors_finish ( 231 TumblerExportedService *proxy, 232 gchar ***out_flavors, 233 GAsyncResult *res, 234 GError **error); 235 236 gboolean tumbler_exported_service_call_get_flavors_sync ( 237 TumblerExportedService *proxy, 238 gchar ***out_flavors, 239 GCancellable *cancellable, 240 GError **error); 241 242 243 244 /* ---- */ 245 246 #define TUMBLER_TYPE_EXPORTED_SERVICE_PROXY (tumbler_exported_service_proxy_get_type ()) 247 #define TUMBLER_EXPORTED_SERVICE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TUMBLER_TYPE_EXPORTED_SERVICE_PROXY, TumblerExportedServiceProxy)) 248 #define TUMBLER_EXPORTED_SERVICE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TUMBLER_TYPE_EXPORTED_SERVICE_PROXY, TumblerExportedServiceProxyClass)) 249 #define TUMBLER_EXPORTED_SERVICE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TUMBLER_TYPE_EXPORTED_SERVICE_PROXY, TumblerExportedServiceProxyClass)) 250 #define TUMBLER_IS_EXPORTED_SERVICE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TUMBLER_TYPE_EXPORTED_SERVICE_PROXY)) 251 #define TUMBLER_IS_EXPORTED_SERVICE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TUMBLER_TYPE_EXPORTED_SERVICE_PROXY)) 252 253 typedef struct _TumblerExportedServiceProxy TumblerExportedServiceProxy; 254 typedef struct _TumblerExportedServiceProxyClass TumblerExportedServiceProxyClass; 255 typedef struct _TumblerExportedServiceProxyPrivate TumblerExportedServiceProxyPrivate; 256 257 struct _TumblerExportedServiceProxy 258 { 259 /*< private >*/ 260 GDBusProxy parent_instance; 261 TumblerExportedServiceProxyPrivate *priv; 262 }; 263 264 struct _TumblerExportedServiceProxyClass 265 { 266 GDBusProxyClass parent_class; 267 }; 268 269 GType tumbler_exported_service_proxy_get_type (void) G_GNUC_CONST; 270 271 #if GLIB_CHECK_VERSION(2, 44, 0) 272 G_DEFINE_AUTOPTR_CLEANUP_FUNC (TumblerExportedServiceProxy, g_object_unref) 273 #endif 274 275 void tumbler_exported_service_proxy_new ( 276 GDBusConnection *connection, 277 GDBusProxyFlags flags, 278 const gchar *name, 279 const gchar *object_path, 280 GCancellable *cancellable, 281 GAsyncReadyCallback callback, 282 gpointer user_data); 283 TumblerExportedService *tumbler_exported_service_proxy_new_finish ( 284 GAsyncResult *res, 285 GError **error); 286 TumblerExportedService *tumbler_exported_service_proxy_new_sync ( 287 GDBusConnection *connection, 288 GDBusProxyFlags flags, 289 const gchar *name, 290 const gchar *object_path, 291 GCancellable *cancellable, 292 GError **error); 293 294 void tumbler_exported_service_proxy_new_for_bus ( 295 GBusType bus_type, 296 GDBusProxyFlags flags, 297 const gchar *name, 298 const gchar *object_path, 299 GCancellable *cancellable, 300 GAsyncReadyCallback callback, 301 gpointer user_data); 302 TumblerExportedService *tumbler_exported_service_proxy_new_for_bus_finish ( 303 GAsyncResult *res, 304 GError **error); 305 TumblerExportedService *tumbler_exported_service_proxy_new_for_bus_sync ( 306 GBusType bus_type, 307 GDBusProxyFlags flags, 308 const gchar *name, 309 const gchar *object_path, 310 GCancellable *cancellable, 311 GError **error); 312 313 314 /* ---- */ 315 316 #define TUMBLER_TYPE_EXPORTED_SERVICE_SKELETON (tumbler_exported_service_skeleton_get_type ()) 317 #define TUMBLER_EXPORTED_SERVICE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TUMBLER_TYPE_EXPORTED_SERVICE_SKELETON, TumblerExportedServiceSkeleton)) 318 #define TUMBLER_EXPORTED_SERVICE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TUMBLER_TYPE_EXPORTED_SERVICE_SKELETON, TumblerExportedServiceSkeletonClass)) 319 #define TUMBLER_EXPORTED_SERVICE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TUMBLER_TYPE_EXPORTED_SERVICE_SKELETON, TumblerExportedServiceSkeletonClass)) 320 #define TUMBLER_IS_EXPORTED_SERVICE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TUMBLER_TYPE_EXPORTED_SERVICE_SKELETON)) 321 #define TUMBLER_IS_EXPORTED_SERVICE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TUMBLER_TYPE_EXPORTED_SERVICE_SKELETON)) 322 323 typedef struct _TumblerExportedServiceSkeleton TumblerExportedServiceSkeleton; 324 typedef struct _TumblerExportedServiceSkeletonClass TumblerExportedServiceSkeletonClass; 325 typedef struct _TumblerExportedServiceSkeletonPrivate TumblerExportedServiceSkeletonPrivate; 326 327 struct _TumblerExportedServiceSkeleton 328 { 329 /*< private >*/ 330 GDBusInterfaceSkeleton parent_instance; 331 TumblerExportedServiceSkeletonPrivate *priv; 332 }; 333 334 struct _TumblerExportedServiceSkeletonClass 335 { 336 GDBusInterfaceSkeletonClass parent_class; 337 }; 338 339 GType tumbler_exported_service_skeleton_get_type (void) G_GNUC_CONST; 340 341 #if GLIB_CHECK_VERSION(2, 44, 0) 342 G_DEFINE_AUTOPTR_CLEANUP_FUNC (TumblerExportedServiceSkeleton, g_object_unref) 343 #endif 344 345 TumblerExportedService *tumbler_exported_service_skeleton_new (void); 346 347 348 G_END_DECLS 349 350 #endif /* __TUMBLER_SERVICE_GDBUS_H__ */ 351