1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
3
* Copyright (C) 2010-2011 Richard Hughes <richard@hughsie.com>
5
* Licensed under the GNU General Public License Version 2
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22
#ifndef __GNOME_SETTINGS_SESSION_H
23
#define __GNOME_SETTINGS_SESSION_H
25
#include <glib-object.h>
29
#define GNOME_TYPE_SETTINGS_SESSION (gnome_settings_session_get_type ())
30
#define GNOME_SETTINGS_SESSION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNOME_TYPE_SETTINGS_SESSION, GnomeSettingsSession))
31
#define GNOME_SETTINGS_SESSION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GNOME_TYPE_SETTINGS_SESSION, GnomeSettingsSessionClass))
32
#define GNOME_IS_SETTINGS_SESSION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNOME_TYPE_SETTINGS_SESSION))
33
#define GNOME_IS_SETTINGS_SESSION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GNOME_TYPE_SETTINGS_SESSION))
34
#define GNOME_SETTINGS_SESSION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GNOME_TYPE_SETTINGS_SESSION, GnomeSettingsSessionClass))
35
#define GNOME_TYPE_SETTINGS_SESSION_STATE (gnome_settings_session_state_get_type())
37
typedef struct GnomeSettingsSessionPrivate GnomeSettingsSessionPrivate;
42
GnomeSettingsSessionPrivate *priv;
43
} GnomeSettingsSession;
47
GObjectClass parent_class;
48
} GnomeSettingsSessionClass;
51
GNOME_SETTINGS_SESSION_STATE_UNKNOWN,
52
GNOME_SETTINGS_SESSION_STATE_ACTIVE,
53
GNOME_SETTINGS_SESSION_STATE_INACTIVE,
54
} GnomeSettingsSessionState;
56
GType gnome_settings_session_get_type (void);
57
GType gnome_settings_session_state_get_type (void);
58
GnomeSettingsSession *gnome_settings_session_new (void);
59
GnomeSettingsSessionState gnome_settings_session_get_state (GnomeSettingsSession *session);
63
#endif /* __GNOME_SETTINGS_SESSION_H */