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

#include <gio/gio.h>

G_BEGIN_DECLS


/* ------------------------------------------------------------------------ */
/* Declarations for com.github.lanoxx.tilda.Actions */

#define TILDA_DBUS_TYPE_ACTIONS (tilda_dbus_actions_get_type ())
#define TILDA_DBUS_ACTIONS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TILDA_DBUS_TYPE_ACTIONS, TildaDbusActions))
#define TILDA_DBUS_IS_ACTIONS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TILDA_DBUS_TYPE_ACTIONS))
#define TILDA_DBUS_ACTIONS_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TILDA_DBUS_TYPE_ACTIONS, TildaDbusActionsIface))

struct _TildaDbusActions;
typedef struct _TildaDbusActions TildaDbusActions;
typedef struct _TildaDbusActionsIface TildaDbusActionsIface;

struct _TildaDbusActionsIface
{
  GTypeInterface parent_iface;

  gboolean (*handle_toggle) (
    TildaDbusActions *object,
    GDBusMethodInvocation *invocation);

};

GType tilda_dbus_actions_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *tilda_dbus_actions_interface_info (void);
guint tilda_dbus_actions_override_properties (GObjectClass *klass, guint property_id_begin);


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



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

gboolean tilda_dbus_actions_call_toggle_finish (
    TildaDbusActions *proxy,
    GAsyncResult *res,
    GError **error);

gboolean tilda_dbus_actions_call_toggle_sync (
    TildaDbusActions *proxy,
    GCancellable *cancellable,
    GError **error);



/* ---- */

#define TILDA_DBUS_TYPE_ACTIONS_PROXY (tilda_dbus_actions_proxy_get_type ())
#define TILDA_DBUS_ACTIONS_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TILDA_DBUS_TYPE_ACTIONS_PROXY, TildaDbusActionsProxy))
#define TILDA_DBUS_ACTIONS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TILDA_DBUS_TYPE_ACTIONS_PROXY, TildaDbusActionsProxyClass))
#define TILDA_DBUS_ACTIONS_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TILDA_DBUS_TYPE_ACTIONS_PROXY, TildaDbusActionsProxyClass))
#define TILDA_DBUS_IS_ACTIONS_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TILDA_DBUS_TYPE_ACTIONS_PROXY))
#define TILDA_DBUS_IS_ACTIONS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TILDA_DBUS_TYPE_ACTIONS_PROXY))

typedef struct _TildaDbusActionsProxy TildaDbusActionsProxy;
typedef struct _TildaDbusActionsProxyClass TildaDbusActionsProxyClass;
typedef struct _TildaDbusActionsProxyPrivate TildaDbusActionsProxyPrivate;

struct _TildaDbusActionsProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  TildaDbusActionsProxyPrivate *priv;
};

struct _TildaDbusActionsProxyClass
{
  GDBusProxyClass parent_class;
};

GType tilda_dbus_actions_proxy_get_type (void) G_GNUC_CONST;

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

void tilda_dbus_actions_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
TildaDbusActions *tilda_dbus_actions_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
TildaDbusActions *tilda_dbus_actions_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void tilda_dbus_actions_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
TildaDbusActions *tilda_dbus_actions_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
TildaDbusActions *tilda_dbus_actions_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define TILDA_DBUS_TYPE_ACTIONS_SKELETON (tilda_dbus_actions_skeleton_get_type ())
#define TILDA_DBUS_ACTIONS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TILDA_DBUS_TYPE_ACTIONS_SKELETON, TildaDbusActionsSkeleton))
#define TILDA_DBUS_ACTIONS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TILDA_DBUS_TYPE_ACTIONS_SKELETON, TildaDbusActionsSkeletonClass))
#define TILDA_DBUS_ACTIONS_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TILDA_DBUS_TYPE_ACTIONS_SKELETON, TildaDbusActionsSkeletonClass))
#define TILDA_DBUS_IS_ACTIONS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TILDA_DBUS_TYPE_ACTIONS_SKELETON))
#define TILDA_DBUS_IS_ACTIONS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TILDA_DBUS_TYPE_ACTIONS_SKELETON))

typedef struct _TildaDbusActionsSkeleton TildaDbusActionsSkeleton;
typedef struct _TildaDbusActionsSkeletonClass TildaDbusActionsSkeletonClass;
typedef struct _TildaDbusActionsSkeletonPrivate TildaDbusActionsSkeletonPrivate;

struct _TildaDbusActionsSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  TildaDbusActionsSkeletonPrivate *priv;
};

struct _TildaDbusActionsSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType tilda_dbus_actions_skeleton_get_type (void) G_GNUC_CONST;

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

TildaDbusActions *tilda_dbus_actions_skeleton_new (void);


G_END_DECLS

#endif /* __TILDA_DBUS_H__ */
