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

#include <gio/gio.h>

G_BEGIN_DECLS


/* ------------------------------------------------------------------------ */
/* Declarations for org.ofono.Manager */

#define GDBO_TYPE_MANAGER (gdbo_manager_get_type ())
#define GDBO_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDBO_TYPE_MANAGER, GDBOManager))
#define GDBO_IS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDBO_TYPE_MANAGER))
#define GDBO_MANAGER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GDBO_TYPE_MANAGER, GDBOManagerIface))

struct _GDBOManager;
typedef struct _GDBOManager GDBOManager;
typedef struct _GDBOManagerIface GDBOManagerIface;

struct _GDBOManagerIface
{
  GTypeInterface parent_iface;


  gboolean (*handle_get_modems) (
    GDBOManager *object,
    GDBusMethodInvocation *invocation);

  void (*modem_added) (
    GDBOManager *object,
    const gchar *arg_path,
    GVariant *arg_properties);

  void (*modem_removed) (
    GDBOManager *object,
    const gchar *arg_path);

};

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

GType gdbo_manager_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *gdbo_manager_interface_info (void);
guint gdbo_manager_override_properties (GObjectClass *klass, guint property_id_begin);


/* D-Bus method call completion functions: */
void gdbo_manager_complete_get_modems (
    GDBOManager *object,
    GDBusMethodInvocation *invocation,
    GVariant *modems);



/* D-Bus signal emissions functions: */
void gdbo_manager_emit_modem_added (
    GDBOManager *object,
    const gchar *arg_path,
    GVariant *arg_properties);

void gdbo_manager_emit_modem_removed (
    GDBOManager *object,
    const gchar *arg_path);



/* D-Bus method calls: */
void gdbo_manager_call_get_modems (
    GDBOManager *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean gdbo_manager_call_get_modems_finish (
    GDBOManager *proxy,
    GVariant ** out_modems,
    GAsyncResult *res,
    GError **error);

gboolean gdbo_manager_call_get_modems_sync (
    GDBOManager *proxy,
    GVariant ** out_modems,
    GCancellable *cancellable,
    GError **error);



/* ---- */

#define GDBO_TYPE_MANAGER_PROXY (gdbo_manager_proxy_get_type ())
#define GDBO_MANAGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDBO_TYPE_MANAGER_PROXY, GDBOManagerProxy))
#define GDBO_MANAGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GDBO_TYPE_MANAGER_PROXY, GDBOManagerProxyClass))
#define GDBO_MANAGER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDBO_TYPE_MANAGER_PROXY, GDBOManagerProxyClass))
#define GDBO_IS_MANAGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDBO_TYPE_MANAGER_PROXY))
#define GDBO_IS_MANAGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDBO_TYPE_MANAGER_PROXY))

typedef struct _GDBOManagerProxy GDBOManagerProxy;
typedef struct _GDBOManagerProxyClass GDBOManagerProxyClass;
typedef struct _GDBOManagerProxyPrivate GDBOManagerProxyPrivate;

struct _GDBOManagerProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  GDBOManagerProxyPrivate *priv;
};

struct _GDBOManagerProxyClass
{
  GDBusProxyClass parent_class;
};

GType gdbo_manager_proxy_get_type (void) G_GNUC_CONST;

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

void gdbo_manager_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
GDBOManager *gdbo_manager_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
GDBOManager *gdbo_manager_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void gdbo_manager_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
GDBOManager *gdbo_manager_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
GDBOManager *gdbo_manager_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define GDBO_TYPE_MANAGER_SKELETON (gdbo_manager_skeleton_get_type ())
#define GDBO_MANAGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDBO_TYPE_MANAGER_SKELETON, GDBOManagerSkeleton))
#define GDBO_MANAGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GDBO_TYPE_MANAGER_SKELETON, GDBOManagerSkeletonClass))
#define GDBO_MANAGER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDBO_TYPE_MANAGER_SKELETON, GDBOManagerSkeletonClass))
#define GDBO_IS_MANAGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDBO_TYPE_MANAGER_SKELETON))
#define GDBO_IS_MANAGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDBO_TYPE_MANAGER_SKELETON))

typedef struct _GDBOManagerSkeleton GDBOManagerSkeleton;
typedef struct _GDBOManagerSkeletonClass GDBOManagerSkeletonClass;
typedef struct _GDBOManagerSkeletonPrivate GDBOManagerSkeletonPrivate;

struct _GDBOManagerSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  GDBOManagerSkeletonPrivate *priv;
};

struct _GDBOManagerSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType gdbo_manager_skeleton_get_type (void) G_GNUC_CONST;

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

GDBOManager *gdbo_manager_skeleton_new (void);


G_END_DECLS

#endif /* __GDBO_MANAGER_H__ */
