~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to src/gdm-logout-action.h

  • Committer: seb128
  • Date: 2009-06-26 16:07:39 UTC
  • mto: This revision was merged to the branch mainline in revision 465.
  • Revision ID: seb128@seb128-laptop-20090626160739-hs300xxw3o75mz4s
clean libglade use

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * gdm-logout-action.h: GDM logout action protocol implementation
 
3
 *
 
4
 * Copyright (C) 2005 Raffaele Sandrini
 
5
 * Copyright (C) 2005 Red Hat, Inc.
 
6
 * Copyright (C) 2002, 2003 George Lebl
 
7
 * Copyright (C) 2001 Queen of England, 
 
8
 *
 
9
 * This program is free software; you can redistribute it and/or
 
10
 * modify it under the terms of the GNU General Public License as
 
11
 * published by the Free Software Foundation; either version 2 of the
 
12
 * License, or (at your option) any later version.
 
13
 *
 
14
 * This program is distributed in the hope that it will be useful, but
 
15
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
17
 * General Public License for more details.
 
18
 *
 
19
 * You should have received a copy of the GNU General Public License
 
20
 * along with this program; if not, write to the Free Software
 
21
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
22
 * 02111-1307, USA.
 
23
 *
 
24
 * Authors:
 
25
 *      Raffaele Sandrini <rasa@gmx.ch>
 
26
 *      George Lebl <jirka@5z.com>
 
27
 *      Mark McLoughlin <mark@skynet.ie>
 
28
 */
 
29
 
 
30
#ifndef __GDM_LOGOUT_ACTION_H__
 
31
#define __GDM_LOGOUT_ACTION_H__
 
32
 
 
33
#include <glib.h>
 
34
 
 
35
G_BEGIN_DECLS
 
36
 
 
37
typedef enum {
 
38
        GDM_LOGOUT_ACTION_NONE     = 0,
 
39
        GDM_LOGOUT_ACTION_SHUTDOWN = 1 << 0,
 
40
        GDM_LOGOUT_ACTION_REBOOT   = 1 << 1,
 
41
        GDM_LOGOUT_ACTION_SUSPEND  = 1 << 2,
 
42
        GDM_LOGOUT_ACTION_HIBERNATE  = 1 << 3
 
43
} GdmLogoutAction;
 
44
 
 
45
gboolean gdm_supports_logout_action (GdmLogoutAction action);
 
46
 
 
47
void            gdm_set_logout_action (GdmLogoutAction action);
 
48
GdmLogoutAction gdm_get_logout_action (void);
 
49
 
 
50
G_END_DECLS
 
51
 
 
52
#endif /* __GDM_LOGOUT_ACTION_H__ */