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

#include <gio/gio.h>

G_BEGIN_DECLS


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

#define CSD_TYPE_KEYBOARD (csd_keyboard_get_type ())
#define CSD_KEYBOARD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CSD_TYPE_KEYBOARD, CsdKeyboard))
#define CSD_IS_KEYBOARD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CSD_TYPE_KEYBOARD))
#define CSD_KEYBOARD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), CSD_TYPE_KEYBOARD, CsdKeyboardIface))

struct _CsdKeyboard;
typedef struct _CsdKeyboard CsdKeyboard;
typedef struct _CsdKeyboardIface CsdKeyboardIface;

struct _CsdKeyboardIface
{
  GTypeInterface parent_iface;


  gboolean (*handle_get_percentage) (
    CsdKeyboard *object,
    GDBusMethodInvocation *invocation);

  gboolean (*handle_get_step) (
    CsdKeyboard *object,
    GDBusMethodInvocation *invocation);

  gboolean (*handle_set_percentage) (
    CsdKeyboard *object,
    GDBusMethodInvocation *invocation,
    guint arg_percentage);

  gboolean (*handle_step_down) (
    CsdKeyboard *object,
    GDBusMethodInvocation *invocation);

  gboolean (*handle_step_up) (
    CsdKeyboard *object,
    GDBusMethodInvocation *invocation);

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

  void (*changed) (
    CsdKeyboard *object);

};

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

GType csd_keyboard_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *csd_keyboard_interface_info (void);
guint csd_keyboard_override_properties (GObjectClass *klass, guint property_id_begin);


/* D-Bus method call completion functions: */
void csd_keyboard_complete_step_up (
    CsdKeyboard *object,
    GDBusMethodInvocation *invocation,
    guint new_percentage);

void csd_keyboard_complete_step_down (
    CsdKeyboard *object,
    GDBusMethodInvocation *invocation,
    guint new_percentage);

void csd_keyboard_complete_toggle (
    CsdKeyboard *object,
    GDBusMethodInvocation *invocation,
    guint new_percentage);

void csd_keyboard_complete_get_percentage (
    CsdKeyboard *object,
    GDBusMethodInvocation *invocation,
    guint percentage);

void csd_keyboard_complete_get_step (
    CsdKeyboard *object,
    GDBusMethodInvocation *invocation,
    guint step);

void csd_keyboard_complete_set_percentage (
    CsdKeyboard *object,
    GDBusMethodInvocation *invocation,
    guint new_percentage);



/* D-Bus signal emissions functions: */
void csd_keyboard_emit_changed (
    CsdKeyboard *object);



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

gboolean csd_keyboard_call_step_up_finish (
    CsdKeyboard *proxy,
    guint *out_new_percentage,
    GAsyncResult *res,
    GError **error);

gboolean csd_keyboard_call_step_up_sync (
    CsdKeyboard *proxy,
    guint *out_new_percentage,
    GCancellable *cancellable,
    GError **error);

void csd_keyboard_call_step_down (
    CsdKeyboard *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean csd_keyboard_call_step_down_finish (
    CsdKeyboard *proxy,
    guint *out_new_percentage,
    GAsyncResult *res,
    GError **error);

gboolean csd_keyboard_call_step_down_sync (
    CsdKeyboard *proxy,
    guint *out_new_percentage,
    GCancellable *cancellable,
    GError **error);

void csd_keyboard_call_toggle (
    CsdKeyboard *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean csd_keyboard_call_toggle_finish (
    CsdKeyboard *proxy,
    guint *out_new_percentage,
    GAsyncResult *res,
    GError **error);

gboolean csd_keyboard_call_toggle_sync (
    CsdKeyboard *proxy,
    guint *out_new_percentage,
    GCancellable *cancellable,
    GError **error);

void csd_keyboard_call_get_percentage (
    CsdKeyboard *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean csd_keyboard_call_get_percentage_finish (
    CsdKeyboard *proxy,
    guint *out_percentage,
    GAsyncResult *res,
    GError **error);

gboolean csd_keyboard_call_get_percentage_sync (
    CsdKeyboard *proxy,
    guint *out_percentage,
    GCancellable *cancellable,
    GError **error);

void csd_keyboard_call_get_step (
    CsdKeyboard *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean csd_keyboard_call_get_step_finish (
    CsdKeyboard *proxy,
    guint *out_step,
    GAsyncResult *res,
    GError **error);

gboolean csd_keyboard_call_get_step_sync (
    CsdKeyboard *proxy,
    guint *out_step,
    GCancellable *cancellable,
    GError **error);

void csd_keyboard_call_set_percentage (
    CsdKeyboard *proxy,
    guint arg_percentage,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean csd_keyboard_call_set_percentage_finish (
    CsdKeyboard *proxy,
    guint *out_new_percentage,
    GAsyncResult *res,
    GError **error);

gboolean csd_keyboard_call_set_percentage_sync (
    CsdKeyboard *proxy,
    guint arg_percentage,
    guint *out_new_percentage,
    GCancellable *cancellable,
    GError **error);



/* ---- */

#define CSD_TYPE_KEYBOARD_PROXY (csd_keyboard_proxy_get_type ())
#define CSD_KEYBOARD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CSD_TYPE_KEYBOARD_PROXY, CsdKeyboardProxy))
#define CSD_KEYBOARD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), CSD_TYPE_KEYBOARD_PROXY, CsdKeyboardProxyClass))
#define CSD_KEYBOARD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CSD_TYPE_KEYBOARD_PROXY, CsdKeyboardProxyClass))
#define CSD_IS_KEYBOARD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CSD_TYPE_KEYBOARD_PROXY))
#define CSD_IS_KEYBOARD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CSD_TYPE_KEYBOARD_PROXY))

typedef struct _CsdKeyboardProxy CsdKeyboardProxy;
typedef struct _CsdKeyboardProxyClass CsdKeyboardProxyClass;
typedef struct _CsdKeyboardProxyPrivate CsdKeyboardProxyPrivate;

struct _CsdKeyboardProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  CsdKeyboardProxyPrivate *priv;
};

struct _CsdKeyboardProxyClass
{
  GDBusProxyClass parent_class;
};

GType csd_keyboard_proxy_get_type (void) G_GNUC_CONST;

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

void csd_keyboard_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
CsdKeyboard *csd_keyboard_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
CsdKeyboard *csd_keyboard_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void csd_keyboard_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
CsdKeyboard *csd_keyboard_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
CsdKeyboard *csd_keyboard_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define CSD_TYPE_KEYBOARD_SKELETON (csd_keyboard_skeleton_get_type ())
#define CSD_KEYBOARD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CSD_TYPE_KEYBOARD_SKELETON, CsdKeyboardSkeleton))
#define CSD_KEYBOARD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), CSD_TYPE_KEYBOARD_SKELETON, CsdKeyboardSkeletonClass))
#define CSD_KEYBOARD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CSD_TYPE_KEYBOARD_SKELETON, CsdKeyboardSkeletonClass))
#define CSD_IS_KEYBOARD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CSD_TYPE_KEYBOARD_SKELETON))
#define CSD_IS_KEYBOARD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CSD_TYPE_KEYBOARD_SKELETON))

typedef struct _CsdKeyboardSkeleton CsdKeyboardSkeleton;
typedef struct _CsdKeyboardSkeletonClass CsdKeyboardSkeletonClass;
typedef struct _CsdKeyboardSkeletonPrivate CsdKeyboardSkeletonPrivate;

struct _CsdKeyboardSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  CsdKeyboardSkeletonPrivate *priv;
};

struct _CsdKeyboardSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType csd_keyboard_skeleton_get_type (void) G_GNUC_CONST;

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

CsdKeyboard *csd_keyboard_skeleton_new (void);


G_END_DECLS

#endif /* __CSD_POWER_KEYBOARD_PROXY_H__ */
