/*
 * 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_GOM_MINER_H__
#define __PHOTOS_GOM_MINER_H__

#include <gio/gio.h>

G_BEGIN_DECLS


/* ------------------------------------------------------------------------ */
/* Declarations for org.gnome.OnlineMiners.Miner */

#define GOM_TYPE_MINER (gom_miner_get_type ())
#define GOM_MINER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOM_TYPE_MINER, GomMiner))
#define GOM_IS_MINER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOM_TYPE_MINER))
#define GOM_MINER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GOM_TYPE_MINER, GomMinerIface))

struct _GomMiner;
typedef struct _GomMiner GomMiner;
typedef struct _GomMinerIface GomMinerIface;

struct _GomMinerIface
{
  GTypeInterface parent_iface;


  gboolean (*handle_insert_shared_content) (
    GomMiner *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_account_id,
    const gchar *arg_shared_id,
    const gchar *arg_shared_type,
    const gchar *arg_source_urn);

  gboolean (*handle_refresh_db) (
    GomMiner *object,
    GDBusMethodInvocation *invocation,
    const gchar *const *arg_index_types);

  const gchar * (*get_display_name) (GomMiner *object);

};

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

GType gom_miner_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *gom_miner_interface_info (void);
guint gom_miner_override_properties (GObjectClass *klass, guint property_id_begin);


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

void gom_miner_complete_refresh_db (
    GomMiner *object,
    GDBusMethodInvocation *invocation);



/* D-Bus method calls: */
void gom_miner_call_insert_shared_content (
    GomMiner *proxy,
    const gchar *arg_account_id,
    const gchar *arg_shared_id,
    const gchar *arg_shared_type,
    const gchar *arg_source_urn,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean gom_miner_call_insert_shared_content_finish (
    GomMiner *proxy,
    GAsyncResult *res,
    GError **error);

gboolean gom_miner_call_insert_shared_content_sync (
    GomMiner *proxy,
    const gchar *arg_account_id,
    const gchar *arg_shared_id,
    const gchar *arg_shared_type,
    const gchar *arg_source_urn,
    GCancellable *cancellable,
    GError **error);

void gom_miner_call_refresh_db (
    GomMiner *proxy,
    const gchar *const *arg_index_types,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean gom_miner_call_refresh_db_finish (
    GomMiner *proxy,
    GAsyncResult *res,
    GError **error);

gboolean gom_miner_call_refresh_db_sync (
    GomMiner *proxy,
    const gchar *const *arg_index_types,
    GCancellable *cancellable,
    GError **error);



/* D-Bus property accessors: */
const gchar *gom_miner_get_display_name (GomMiner *object);
gchar *gom_miner_dup_display_name (GomMiner *object);
void gom_miner_set_display_name (GomMiner *object, const gchar *value);


/* ---- */

#define GOM_TYPE_MINER_PROXY (gom_miner_proxy_get_type ())
#define GOM_MINER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOM_TYPE_MINER_PROXY, GomMinerProxy))
#define GOM_MINER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GOM_TYPE_MINER_PROXY, GomMinerProxyClass))
#define GOM_MINER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOM_TYPE_MINER_PROXY, GomMinerProxyClass))
#define GOM_IS_MINER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOM_TYPE_MINER_PROXY))
#define GOM_IS_MINER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GOM_TYPE_MINER_PROXY))

typedef struct _GomMinerProxy GomMinerProxy;
typedef struct _GomMinerProxyClass GomMinerProxyClass;
typedef struct _GomMinerProxyPrivate GomMinerProxyPrivate;

struct _GomMinerProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  GomMinerProxyPrivate *priv;
};

struct _GomMinerProxyClass
{
  GDBusProxyClass parent_class;
};

GType gom_miner_proxy_get_type (void) G_GNUC_CONST;

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

void gom_miner_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
GomMiner *gom_miner_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
GomMiner *gom_miner_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void gom_miner_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
GomMiner *gom_miner_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
GomMiner *gom_miner_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define GOM_TYPE_MINER_SKELETON (gom_miner_skeleton_get_type ())
#define GOM_MINER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOM_TYPE_MINER_SKELETON, GomMinerSkeleton))
#define GOM_MINER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GOM_TYPE_MINER_SKELETON, GomMinerSkeletonClass))
#define GOM_MINER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOM_TYPE_MINER_SKELETON, GomMinerSkeletonClass))
#define GOM_IS_MINER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOM_TYPE_MINER_SKELETON))
#define GOM_IS_MINER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GOM_TYPE_MINER_SKELETON))

typedef struct _GomMinerSkeleton GomMinerSkeleton;
typedef struct _GomMinerSkeletonClass GomMinerSkeletonClass;
typedef struct _GomMinerSkeletonPrivate GomMinerSkeletonPrivate;

struct _GomMinerSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  GomMinerSkeletonPrivate *priv;
};

struct _GomMinerSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType gom_miner_skeleton_get_type (void) G_GNUC_CONST;

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

GomMiner *gom_miner_skeleton_new (void);


G_END_DECLS

#endif /* __PHOTOS_GOM_MINER_H__ */
