/*
 * This file is generated by gdbus-codegen, do not modify it.
 *
 * The license of this code is the same as for the D-Bus interface description
 * it was derived from. Note that it links to GLib, so must comply with the
 * LGPL linking clauses.
 */

#ifndef __PHOTOS_THUMBNAILER_DBUS_H__
#define __PHOTOS_THUMBNAILER_DBUS_H__

#include <gio/gio.h>

G_BEGIN_DECLS


/* ------------------------------------------------------------------------ */
/* Declarations for org.gnome.Photos.Thumbnailer */

#define PHOTOS_TYPE_THUMBNAILER_DBUS (photos_thumbnailer_dbus_get_type ())
#define PHOTOS_THUMBNAILER_DBUS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PHOTOS_TYPE_THUMBNAILER_DBUS, PhotosThumbnailerDBus))
#define PHOTOS_IS_THUMBNAILER_DBUS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PHOTOS_TYPE_THUMBNAILER_DBUS))
#define PHOTOS_THUMBNAILER_DBUS_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), PHOTOS_TYPE_THUMBNAILER_DBUS, PhotosThumbnailerDBusIface))

struct _PhotosThumbnailerDBus;
typedef struct _PhotosThumbnailerDBus PhotosThumbnailerDBus;
typedef struct _PhotosThumbnailerDBusIface PhotosThumbnailerDBusIface;

struct _PhotosThumbnailerDBusIface
{
  GTypeInterface parent_iface;

  gboolean (*handle_cancel) (
    PhotosThumbnailerDBus *object,
    GDBusMethodInvocation *invocation,
    guint arg_serial);

  gboolean (*handle_generate_thumbnail) (
    PhotosThumbnailerDBus *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_uri,
    const gchar *arg_mime_type,
    const gchar *arg_orientation,
    gint64 arg_original_height,
    gint64 arg_original_width,
    GVariant *arg_pipeline_uris,
    const gchar *arg_thumbnail_path,
    gint arg_thumbnail_size);

};

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PhotosThumbnailerDBus, g_object_unref)
#endif

GType photos_thumbnailer_dbus_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *photos_thumbnailer_dbus_interface_info (void);
guint photos_thumbnailer_dbus_override_properties (GObjectClass *klass, guint property_id_begin);


/* D-Bus method call completion functions: */
void photos_thumbnailer_dbus_complete_cancel (
    PhotosThumbnailerDBus *object,
    GDBusMethodInvocation *invocation);

void photos_thumbnailer_dbus_complete_generate_thumbnail (
    PhotosThumbnailerDBus *object,
    GDBusMethodInvocation *invocation);



/* D-Bus method calls: */
void photos_thumbnailer_dbus_call_cancel (
    PhotosThumbnailerDBus *proxy,
    guint arg_serial,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean photos_thumbnailer_dbus_call_cancel_finish (
    PhotosThumbnailerDBus *proxy,
    GAsyncResult *res,
    GError **error);

gboolean photos_thumbnailer_dbus_call_cancel_sync (
    PhotosThumbnailerDBus *proxy,
    guint arg_serial,
    GCancellable *cancellable,
    GError **error);

void photos_thumbnailer_dbus_call_generate_thumbnail (
    PhotosThumbnailerDBus *proxy,
    const gchar *arg_uri,
    const gchar *arg_mime_type,
    const gchar *arg_orientation,
    gint64 arg_original_height,
    gint64 arg_original_width,
    GVariant *arg_pipeline_uris,
    const gchar *arg_thumbnail_path,
    gint arg_thumbnail_size,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean photos_thumbnailer_dbus_call_generate_thumbnail_finish (
    PhotosThumbnailerDBus *proxy,
    GAsyncResult *res,
    GError **error);

gboolean photos_thumbnailer_dbus_call_generate_thumbnail_sync (
    PhotosThumbnailerDBus *proxy,
    const gchar *arg_uri,
    const gchar *arg_mime_type,
    const gchar *arg_orientation,
    gint64 arg_original_height,
    gint64 arg_original_width,
    GVariant *arg_pipeline_uris,
    const gchar *arg_thumbnail_path,
    gint arg_thumbnail_size,
    GCancellable *cancellable,
    GError **error);



/* ---- */

#define PHOTOS_TYPE_THUMBNAILER_DBUS_PROXY (photos_thumbnailer_dbus_proxy_get_type ())
#define PHOTOS_THUMBNAILER_DBUS_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PHOTOS_TYPE_THUMBNAILER_DBUS_PROXY, PhotosThumbnailerDBusProxy))
#define PHOTOS_THUMBNAILER_DBUS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), PHOTOS_TYPE_THUMBNAILER_DBUS_PROXY, PhotosThumbnailerDBusProxyClass))
#define PHOTOS_THUMBNAILER_DBUS_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PHOTOS_TYPE_THUMBNAILER_DBUS_PROXY, PhotosThumbnailerDBusProxyClass))
#define PHOTOS_IS_THUMBNAILER_DBUS_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PHOTOS_TYPE_THUMBNAILER_DBUS_PROXY))
#define PHOTOS_IS_THUMBNAILER_DBUS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PHOTOS_TYPE_THUMBNAILER_DBUS_PROXY))

typedef struct _PhotosThumbnailerDBusProxy PhotosThumbnailerDBusProxy;
typedef struct _PhotosThumbnailerDBusProxyClass PhotosThumbnailerDBusProxyClass;
typedef struct _PhotosThumbnailerDBusProxyPrivate PhotosThumbnailerDBusProxyPrivate;

struct _PhotosThumbnailerDBusProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  PhotosThumbnailerDBusProxyPrivate *priv;
};

struct _PhotosThumbnailerDBusProxyClass
{
  GDBusProxyClass parent_class;
};

GType photos_thumbnailer_dbus_proxy_get_type (void) G_GNUC_CONST;

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PhotosThumbnailerDBusProxy, g_object_unref)
#endif

void photos_thumbnailer_dbus_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
PhotosThumbnailerDBus *photos_thumbnailer_dbus_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
PhotosThumbnailerDBus *photos_thumbnailer_dbus_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void photos_thumbnailer_dbus_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
PhotosThumbnailerDBus *photos_thumbnailer_dbus_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
PhotosThumbnailerDBus *photos_thumbnailer_dbus_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define PHOTOS_TYPE_THUMBNAILER_DBUS_SKELETON (photos_thumbnailer_dbus_skeleton_get_type ())
#define PHOTOS_THUMBNAILER_DBUS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PHOTOS_TYPE_THUMBNAILER_DBUS_SKELETON, PhotosThumbnailerDBusSkeleton))
#define PHOTOS_THUMBNAILER_DBUS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), PHOTOS_TYPE_THUMBNAILER_DBUS_SKELETON, PhotosThumbnailerDBusSkeletonClass))
#define PHOTOS_THUMBNAILER_DBUS_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PHOTOS_TYPE_THUMBNAILER_DBUS_SKELETON, PhotosThumbnailerDBusSkeletonClass))
#define PHOTOS_IS_THUMBNAILER_DBUS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PHOTOS_TYPE_THUMBNAILER_DBUS_SKELETON))
#define PHOTOS_IS_THUMBNAILER_DBUS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PHOTOS_TYPE_THUMBNAILER_DBUS_SKELETON))

typedef struct _PhotosThumbnailerDBusSkeleton PhotosThumbnailerDBusSkeleton;
typedef struct _PhotosThumbnailerDBusSkeletonClass PhotosThumbnailerDBusSkeletonClass;
typedef struct _PhotosThumbnailerDBusSkeletonPrivate PhotosThumbnailerDBusSkeletonPrivate;

struct _PhotosThumbnailerDBusSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  PhotosThumbnailerDBusSkeletonPrivate *priv;
};

struct _PhotosThumbnailerDBusSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType photos_thumbnailer_dbus_skeleton_get_type (void) G_GNUC_CONST;

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PhotosThumbnailerDBusSkeleton, g_object_unref)
#endif

PhotosThumbnailerDBus *photos_thumbnailer_dbus_skeleton_new (void);


G_END_DECLS

#endif /* __PHOTOS_THUMBNAILER_DBUS_H__ */
