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

#include <gio/gio.h>

G_BEGIN_DECLS


/* ------------------------------------------------------------------------ */
/* Declarations for org.cinnamon.SettingsDaemon.Power */

#define CSD_TYPE_POWER (csd_power_get_type ())
#define CSD_POWER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CSD_TYPE_POWER, CsdPower))
#define CSD_IS_POWER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CSD_TYPE_POWER))
#define CSD_POWER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), CSD_TYPE_POWER, CsdPowerIface))

struct _CsdPower;
typedef struct _CsdPower CsdPower;
typedef struct _CsdPowerIface CsdPowerIface;

struct _CsdPowerIface
{
  GTypeInterface parent_iface;


  gboolean (*handle_get_devices) (
    CsdPower *object,
    GDBusMethodInvocation *invocation);

  gboolean (*handle_get_primary_device) (
    CsdPower *object,
    GDBusMethodInvocation *invocation);

  const gchar * (*get_icon) (CsdPower *object);

  guint  (*get_percentage) (CsdPower *object);

};

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

GType csd_power_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *csd_power_interface_info (void);
guint csd_power_override_properties (GObjectClass *klass, guint property_id_begin);


/* D-Bus method call completion functions: */
void csd_power_complete_get_primary_device (
    CsdPower *object,
    GDBusMethodInvocation *invocation,
    GVariant *device);

void csd_power_complete_get_devices (
    CsdPower *object,
    GDBusMethodInvocation *invocation,
    GVariant *devices);



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

gboolean csd_power_call_get_primary_device_finish (
    CsdPower *proxy,
    GVariant **out_device,
    GAsyncResult *res,
    GError **error);

gboolean csd_power_call_get_primary_device_sync (
    CsdPower *proxy,
    GVariant **out_device,
    GCancellable *cancellable,
    GError **error);

void csd_power_call_get_devices (
    CsdPower *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean csd_power_call_get_devices_finish (
    CsdPower *proxy,
    GVariant **out_devices,
    GAsyncResult *res,
    GError **error);

gboolean csd_power_call_get_devices_sync (
    CsdPower *proxy,
    GVariant **out_devices,
    GCancellable *cancellable,
    GError **error);



/* D-Bus property accessors: */
const gchar *csd_power_get_icon (CsdPower *object);
gchar *csd_power_dup_icon (CsdPower *object);
void csd_power_set_icon (CsdPower *object, const gchar *value);

guint csd_power_get_percentage (CsdPower *object);
void csd_power_set_percentage (CsdPower *object, guint value);


/* ---- */

#define CSD_TYPE_POWER_PROXY (csd_power_proxy_get_type ())
#define CSD_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CSD_TYPE_POWER_PROXY, CsdPowerProxy))
#define CSD_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), CSD_TYPE_POWER_PROXY, CsdPowerProxyClass))
#define CSD_POWER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CSD_TYPE_POWER_PROXY, CsdPowerProxyClass))
#define CSD_IS_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CSD_TYPE_POWER_PROXY))
#define CSD_IS_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CSD_TYPE_POWER_PROXY))

typedef struct _CsdPowerProxy CsdPowerProxy;
typedef struct _CsdPowerProxyClass CsdPowerProxyClass;
typedef struct _CsdPowerProxyPrivate CsdPowerProxyPrivate;

struct _CsdPowerProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  CsdPowerProxyPrivate *priv;
};

struct _CsdPowerProxyClass
{
  GDBusProxyClass parent_class;
};

GType csd_power_proxy_get_type (void) G_GNUC_CONST;

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

void csd_power_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
CsdPower *csd_power_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
CsdPower *csd_power_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void csd_power_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
CsdPower *csd_power_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
CsdPower *csd_power_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define CSD_TYPE_POWER_SKELETON (csd_power_skeleton_get_type ())
#define CSD_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CSD_TYPE_POWER_SKELETON, CsdPowerSkeleton))
#define CSD_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), CSD_TYPE_POWER_SKELETON, CsdPowerSkeletonClass))
#define CSD_POWER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CSD_TYPE_POWER_SKELETON, CsdPowerSkeletonClass))
#define CSD_IS_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CSD_TYPE_POWER_SKELETON))
#define CSD_IS_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CSD_TYPE_POWER_SKELETON))

typedef struct _CsdPowerSkeleton CsdPowerSkeleton;
typedef struct _CsdPowerSkeletonClass CsdPowerSkeletonClass;
typedef struct _CsdPowerSkeletonPrivate CsdPowerSkeletonPrivate;

struct _CsdPowerSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  CsdPowerSkeletonPrivate *priv;
};

struct _CsdPowerSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType csd_power_skeleton_get_type (void) G_GNUC_CONST;

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

CsdPower *csd_power_skeleton_new (void);


G_END_DECLS

#endif /* __CSD_POWER_PROXY_H__ */
