~ubuntu-branches/ubuntu/oneiric/gnome-settings-daemon/oneiric

« back to all changes in this revision

Viewing changes to gnome-settings-daemon/gnome-settings-session.h

  • Committer: Package Import Robot
  • Author(s): Rodrigo Moya
  • Date: 2011-09-19 17:05:48 UTC
  • mto: This revision was merged to the branch mainline in revision 169.
  • Revision ID: package-import@ubuntu.com-20110919170548-4d8k2g7jrqp7rbe0
Tags: upstream-3.1.92
ImportĀ upstreamĀ versionĀ 3.1.92

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
 
2
 *
 
3
 * Copyright (C) 2010-2011 Richard Hughes <richard@hughsie.com>
 
4
 *
 
5
 * Licensed under the GNU General Public License Version 2
 
6
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
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.
 
20
 */
 
21
 
 
22
#ifndef __GNOME_SETTINGS_SESSION_H
 
23
#define __GNOME_SETTINGS_SESSION_H
 
24
 
 
25
#include <glib-object.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
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())
 
36
 
 
37
typedef struct GnomeSettingsSessionPrivate GnomeSettingsSessionPrivate;
 
38
 
 
39
typedef struct
 
40
{
 
41
         GObject                         parent;
 
42
         GnomeSettingsSessionPrivate    *priv;
 
43
} GnomeSettingsSession;
 
44
 
 
45
typedef struct
 
46
{
 
47
        GObjectClass    parent_class;
 
48
} GnomeSettingsSessionClass;
 
49
 
 
50
typedef enum {
 
51
        GNOME_SETTINGS_SESSION_STATE_UNKNOWN,
 
52
        GNOME_SETTINGS_SESSION_STATE_ACTIVE,
 
53
        GNOME_SETTINGS_SESSION_STATE_INACTIVE,
 
54
} GnomeSettingsSessionState;
 
55
 
 
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);
 
60
 
 
61
G_END_DECLS
 
62
 
 
63
#endif /* __GNOME_SETTINGS_SESSION_H */
 
64