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

#include <gio/gio.h>

G_BEGIN_DECLS


/* ------------------------------------------------------------------------ */
/* Declarations for org.gnome.SessionManager.Presence */

#define CSM_TYPE_EXPORTED_PRESENCE (csm_exported_presence_get_type ())
#define CSM_EXPORTED_PRESENCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CSM_TYPE_EXPORTED_PRESENCE, CsmExportedPresence))
#define CSM_IS_EXPORTED_PRESENCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CSM_TYPE_EXPORTED_PRESENCE))
#define CSM_EXPORTED_PRESENCE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), CSM_TYPE_EXPORTED_PRESENCE, CsmExportedPresenceIface))

struct _CsmExportedPresence;
typedef struct _CsmExportedPresence CsmExportedPresence;
typedef struct _CsmExportedPresenceIface CsmExportedPresenceIface;

struct _CsmExportedPresenceIface
{
  GTypeInterface parent_iface;



  gboolean (*handle_set_status) (
    CsmExportedPresence *object,
    GDBusMethodInvocation *invocation,
    guint arg_status);

  gboolean (*handle_set_status_text) (
    CsmExportedPresence *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_status_text);

  guint  (*get_status) (CsmExportedPresence *object);

  const gchar * (*get_status_text) (CsmExportedPresence *object);

  void (*status_changed) (
    CsmExportedPresence *object,
    guint arg_status);

  void (*status_text_changed) (
    CsmExportedPresence *object,
    const gchar *arg_status_text);

};

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

GType csm_exported_presence_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *csm_exported_presence_interface_info (void);
guint csm_exported_presence_override_properties (GObjectClass *klass, guint property_id_begin);


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

void csm_exported_presence_complete_set_status_text (
    CsmExportedPresence *object,
    GDBusMethodInvocation *invocation);



/* D-Bus signal emissions functions: */
void csm_exported_presence_emit_status_changed (
    CsmExportedPresence *object,
    guint arg_status);

void csm_exported_presence_emit_status_text_changed (
    CsmExportedPresence *object,
    const gchar *arg_status_text);



/* D-Bus method calls: */
void csm_exported_presence_call_set_status (
    CsmExportedPresence *proxy,
    guint arg_status,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean csm_exported_presence_call_set_status_finish (
    CsmExportedPresence *proxy,
    GAsyncResult *res,
    GError **error);

gboolean csm_exported_presence_call_set_status_sync (
    CsmExportedPresence *proxy,
    guint arg_status,
    GCancellable *cancellable,
    GError **error);

void csm_exported_presence_call_set_status_text (
    CsmExportedPresence *proxy,
    const gchar *arg_status_text,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean csm_exported_presence_call_set_status_text_finish (
    CsmExportedPresence *proxy,
    GAsyncResult *res,
    GError **error);

gboolean csm_exported_presence_call_set_status_text_sync (
    CsmExportedPresence *proxy,
    const gchar *arg_status_text,
    GCancellable *cancellable,
    GError **error);



/* D-Bus property accessors: */
guint csm_exported_presence_get_status (CsmExportedPresence *object);
void csm_exported_presence_set_status (CsmExportedPresence *object, guint value);

const gchar *csm_exported_presence_get_status_text (CsmExportedPresence *object);
gchar *csm_exported_presence_dup_status_text (CsmExportedPresence *object);
void csm_exported_presence_set_status_text (CsmExportedPresence *object, const gchar *value);


/* ---- */

#define CSM_TYPE_EXPORTED_PRESENCE_PROXY (csm_exported_presence_proxy_get_type ())
#define CSM_EXPORTED_PRESENCE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CSM_TYPE_EXPORTED_PRESENCE_PROXY, CsmExportedPresenceProxy))
#define CSM_EXPORTED_PRESENCE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), CSM_TYPE_EXPORTED_PRESENCE_PROXY, CsmExportedPresenceProxyClass))
#define CSM_EXPORTED_PRESENCE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CSM_TYPE_EXPORTED_PRESENCE_PROXY, CsmExportedPresenceProxyClass))
#define CSM_IS_EXPORTED_PRESENCE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CSM_TYPE_EXPORTED_PRESENCE_PROXY))
#define CSM_IS_EXPORTED_PRESENCE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CSM_TYPE_EXPORTED_PRESENCE_PROXY))

typedef struct _CsmExportedPresenceProxy CsmExportedPresenceProxy;
typedef struct _CsmExportedPresenceProxyClass CsmExportedPresenceProxyClass;
typedef struct _CsmExportedPresenceProxyPrivate CsmExportedPresenceProxyPrivate;

struct _CsmExportedPresenceProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  CsmExportedPresenceProxyPrivate *priv;
};

struct _CsmExportedPresenceProxyClass
{
  GDBusProxyClass parent_class;
};

GType csm_exported_presence_proxy_get_type (void) G_GNUC_CONST;

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

void csm_exported_presence_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
CsmExportedPresence *csm_exported_presence_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
CsmExportedPresence *csm_exported_presence_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void csm_exported_presence_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
CsmExportedPresence *csm_exported_presence_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
CsmExportedPresence *csm_exported_presence_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define CSM_TYPE_EXPORTED_PRESENCE_SKELETON (csm_exported_presence_skeleton_get_type ())
#define CSM_EXPORTED_PRESENCE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CSM_TYPE_EXPORTED_PRESENCE_SKELETON, CsmExportedPresenceSkeleton))
#define CSM_EXPORTED_PRESENCE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), CSM_TYPE_EXPORTED_PRESENCE_SKELETON, CsmExportedPresenceSkeletonClass))
#define CSM_EXPORTED_PRESENCE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CSM_TYPE_EXPORTED_PRESENCE_SKELETON, CsmExportedPresenceSkeletonClass))
#define CSM_IS_EXPORTED_PRESENCE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CSM_TYPE_EXPORTED_PRESENCE_SKELETON))
#define CSM_IS_EXPORTED_PRESENCE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CSM_TYPE_EXPORTED_PRESENCE_SKELETON))

typedef struct _CsmExportedPresenceSkeleton CsmExportedPresenceSkeleton;
typedef struct _CsmExportedPresenceSkeletonClass CsmExportedPresenceSkeletonClass;
typedef struct _CsmExportedPresenceSkeletonPrivate CsmExportedPresenceSkeletonPrivate;

struct _CsmExportedPresenceSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  CsmExportedPresenceSkeletonPrivate *priv;
};

struct _CsmExportedPresenceSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType csm_exported_presence_skeleton_get_type (void) G_GNUC_CONST;

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

CsmExportedPresence *csm_exported_presence_skeleton_new (void);


G_END_DECLS

#endif /* __CSM_EXPORTED_PRESENCE_H__ */
