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

#include <gio/gio.h>

G_BEGIN_DECLS


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

#define GDBO_TYPE_VOICE_CALL (gdbo_voice_call_get_type ())
#define GDBO_VOICE_CALL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDBO_TYPE_VOICE_CALL, GDBOVoiceCall))
#define GDBO_IS_VOICE_CALL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDBO_TYPE_VOICE_CALL))
#define GDBO_VOICE_CALL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GDBO_TYPE_VOICE_CALL, GDBOVoiceCallIface))

struct _GDBOVoiceCall;
typedef struct _GDBOVoiceCall GDBOVoiceCall;
typedef struct _GDBOVoiceCallIface GDBOVoiceCallIface;

struct _GDBOVoiceCallIface
{
  GTypeInterface parent_iface;


  gboolean (*handle_answer) (
    GDBOVoiceCall *object,
    GDBusMethodInvocation *invocation);

  gboolean (*handle_deflect) (
    GDBOVoiceCall *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_number);

  gboolean (*handle_get_properties) (
    GDBOVoiceCall *object,
    GDBusMethodInvocation *invocation);

  gboolean (*handle_hangup) (
    GDBOVoiceCall *object,
    GDBusMethodInvocation *invocation);

  void (*disconnect_reason) (
    GDBOVoiceCall *object,
    const gchar *arg_reason);

  void (*property_changed) (
    GDBOVoiceCall *object,
    const gchar *arg_name,
    GVariant *arg_value);

};

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

GType gdbo_voice_call_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *gdbo_voice_call_interface_info (void);
guint gdbo_voice_call_override_properties (GObjectClass *klass, guint property_id_begin);


/* D-Bus method call completion functions: */
void gdbo_voice_call_complete_get_properties (
    GDBOVoiceCall *object,
    GDBusMethodInvocation *invocation,
    GVariant *properties);

void gdbo_voice_call_complete_deflect (
    GDBOVoiceCall *object,
    GDBusMethodInvocation *invocation);

void gdbo_voice_call_complete_hangup (
    GDBOVoiceCall *object,
    GDBusMethodInvocation *invocation);

void gdbo_voice_call_complete_answer (
    GDBOVoiceCall *object,
    GDBusMethodInvocation *invocation);



/* D-Bus signal emissions functions: */
void gdbo_voice_call_emit_property_changed (
    GDBOVoiceCall *object,
    const gchar *arg_name,
    GVariant *arg_value);

void gdbo_voice_call_emit_disconnect_reason (
    GDBOVoiceCall *object,
    const gchar *arg_reason);



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

gboolean gdbo_voice_call_call_get_properties_finish (
    GDBOVoiceCall *proxy,
    GVariant ** out_properties,
    GAsyncResult *res,
    GError **error);

gboolean gdbo_voice_call_call_get_properties_sync (
    GDBOVoiceCall *proxy,
    GVariant ** out_properties,
    GCancellable *cancellable,
    GError **error);

void gdbo_voice_call_call_deflect (
    GDBOVoiceCall *proxy,
    const gchar *arg_number,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean gdbo_voice_call_call_deflect_finish (
    GDBOVoiceCall *proxy,
    GAsyncResult *res,
    GError **error);

gboolean gdbo_voice_call_call_deflect_sync (
    GDBOVoiceCall *proxy,
    const gchar *arg_number,
    GCancellable *cancellable,
    GError **error);

void gdbo_voice_call_call_hangup (
    GDBOVoiceCall *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean gdbo_voice_call_call_hangup_finish (
    GDBOVoiceCall *proxy,
    GAsyncResult *res,
    GError **error);

gboolean gdbo_voice_call_call_hangup_sync (
    GDBOVoiceCall *proxy,
    GCancellable *cancellable,
    GError **error);

void gdbo_voice_call_call_answer (
    GDBOVoiceCall *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean gdbo_voice_call_call_answer_finish (
    GDBOVoiceCall *proxy,
    GAsyncResult *res,
    GError **error);

gboolean gdbo_voice_call_call_answer_sync (
    GDBOVoiceCall *proxy,
    GCancellable *cancellable,
    GError **error);



/* ---- */

#define GDBO_TYPE_VOICE_CALL_PROXY (gdbo_voice_call_proxy_get_type ())
#define GDBO_VOICE_CALL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDBO_TYPE_VOICE_CALL_PROXY, GDBOVoiceCallProxy))
#define GDBO_VOICE_CALL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GDBO_TYPE_VOICE_CALL_PROXY, GDBOVoiceCallProxyClass))
#define GDBO_VOICE_CALL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDBO_TYPE_VOICE_CALL_PROXY, GDBOVoiceCallProxyClass))
#define GDBO_IS_VOICE_CALL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDBO_TYPE_VOICE_CALL_PROXY))
#define GDBO_IS_VOICE_CALL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDBO_TYPE_VOICE_CALL_PROXY))

typedef struct _GDBOVoiceCallProxy GDBOVoiceCallProxy;
typedef struct _GDBOVoiceCallProxyClass GDBOVoiceCallProxyClass;
typedef struct _GDBOVoiceCallProxyPrivate GDBOVoiceCallProxyPrivate;

struct _GDBOVoiceCallProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  GDBOVoiceCallProxyPrivate *priv;
};

struct _GDBOVoiceCallProxyClass
{
  GDBusProxyClass parent_class;
};

GType gdbo_voice_call_proxy_get_type (void) G_GNUC_CONST;

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

void gdbo_voice_call_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
GDBOVoiceCall *gdbo_voice_call_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
GDBOVoiceCall *gdbo_voice_call_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void gdbo_voice_call_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
GDBOVoiceCall *gdbo_voice_call_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
GDBOVoiceCall *gdbo_voice_call_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define GDBO_TYPE_VOICE_CALL_SKELETON (gdbo_voice_call_skeleton_get_type ())
#define GDBO_VOICE_CALL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDBO_TYPE_VOICE_CALL_SKELETON, GDBOVoiceCallSkeleton))
#define GDBO_VOICE_CALL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GDBO_TYPE_VOICE_CALL_SKELETON, GDBOVoiceCallSkeletonClass))
#define GDBO_VOICE_CALL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDBO_TYPE_VOICE_CALL_SKELETON, GDBOVoiceCallSkeletonClass))
#define GDBO_IS_VOICE_CALL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDBO_TYPE_VOICE_CALL_SKELETON))
#define GDBO_IS_VOICE_CALL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDBO_TYPE_VOICE_CALL_SKELETON))

typedef struct _GDBOVoiceCallSkeleton GDBOVoiceCallSkeleton;
typedef struct _GDBOVoiceCallSkeletonClass GDBOVoiceCallSkeletonClass;
typedef struct _GDBOVoiceCallSkeletonPrivate GDBOVoiceCallSkeletonPrivate;

struct _GDBOVoiceCallSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  GDBOVoiceCallSkeletonPrivate *priv;
};

struct _GDBOVoiceCallSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType gdbo_voice_call_skeleton_get_type (void) G_GNUC_CONST;

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

GDBOVoiceCall *gdbo_voice_call_skeleton_new (void);


G_END_DECLS

#endif /* __GDBO_CALL_H__ */
