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

#include <gio/gio.h>

G_BEGIN_DECLS


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

#define TYPE_GNOME_SESSION_MANAGER (gnome_session_manager_get_type ())
#define GNOME_SESSION_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_GNOME_SESSION_MANAGER, GnomeSessionManager))
#define IS_GNOME_SESSION_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_GNOME_SESSION_MANAGER))
#define GNOME_SESSION_MANAGER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_GNOME_SESSION_MANAGER, GnomeSessionManagerIface))

struct _GnomeSessionManager;
typedef struct _GnomeSessionManager GnomeSessionManager;
typedef struct _GnomeSessionManagerIface GnomeSessionManagerIface;

struct _GnomeSessionManagerIface
{
  GTypeInterface parent_iface;

  gboolean  (*get_session_is_active) (GnomeSessionManager *object);

};

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

GType gnome_session_manager_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *gnome_session_manager_interface_info (void);
guint gnome_session_manager_override_properties (GObjectClass *klass, guint property_id_begin);


/* D-Bus property accessors: */
gboolean gnome_session_manager_get_session_is_active (GnomeSessionManager *object);
void gnome_session_manager_set_session_is_active (GnomeSessionManager *object, gboolean value);


/* ---- */

#define TYPE_GNOME_SESSION_MANAGER_PROXY (gnome_session_manager_proxy_get_type ())
#define GNOME_SESSION_MANAGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_GNOME_SESSION_MANAGER_PROXY, GnomeSessionManagerProxy))
#define GNOME_SESSION_MANAGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_GNOME_SESSION_MANAGER_PROXY, GnomeSessionManagerProxyClass))
#define GNOME_SESSION_MANAGER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_GNOME_SESSION_MANAGER_PROXY, GnomeSessionManagerProxyClass))
#define IS_GNOME_SESSION_MANAGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_GNOME_SESSION_MANAGER_PROXY))
#define IS_GNOME_SESSION_MANAGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_GNOME_SESSION_MANAGER_PROXY))

typedef struct _GnomeSessionManagerProxy GnomeSessionManagerProxy;
typedef struct _GnomeSessionManagerProxyClass GnomeSessionManagerProxyClass;
typedef struct _GnomeSessionManagerProxyPrivate GnomeSessionManagerProxyPrivate;

struct _GnomeSessionManagerProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  GnomeSessionManagerProxyPrivate *priv;
};

struct _GnomeSessionManagerProxyClass
{
  GDBusProxyClass parent_class;
};

GType gnome_session_manager_proxy_get_type (void) G_GNUC_CONST;

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

void gnome_session_manager_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
GnomeSessionManager *gnome_session_manager_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
GnomeSessionManager *gnome_session_manager_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void gnome_session_manager_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
GnomeSessionManager *gnome_session_manager_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
GnomeSessionManager *gnome_session_manager_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define TYPE_GNOME_SESSION_MANAGER_SKELETON (gnome_session_manager_skeleton_get_type ())
#define GNOME_SESSION_MANAGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_GNOME_SESSION_MANAGER_SKELETON, GnomeSessionManagerSkeleton))
#define GNOME_SESSION_MANAGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_GNOME_SESSION_MANAGER_SKELETON, GnomeSessionManagerSkeletonClass))
#define GNOME_SESSION_MANAGER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_GNOME_SESSION_MANAGER_SKELETON, GnomeSessionManagerSkeletonClass))
#define IS_GNOME_SESSION_MANAGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_GNOME_SESSION_MANAGER_SKELETON))
#define IS_GNOME_SESSION_MANAGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_GNOME_SESSION_MANAGER_SKELETON))

typedef struct _GnomeSessionManagerSkeleton GnomeSessionManagerSkeleton;
typedef struct _GnomeSessionManagerSkeletonClass GnomeSessionManagerSkeletonClass;
typedef struct _GnomeSessionManagerSkeletonPrivate GnomeSessionManagerSkeletonPrivate;

struct _GnomeSessionManagerSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  GnomeSessionManagerSkeletonPrivate *priv;
};

struct _GnomeSessionManagerSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType gnome_session_manager_skeleton_get_type (void) G_GNUC_CONST;

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

GnomeSessionManager *gnome_session_manager_skeleton_new (void);


G_END_DECLS

#endif /* __CINNAMON_SESSION_DBUS_H__ */
