~ubuntu-branches/ubuntu/vivid/xfce4-session/vivid-proposed

« back to all changes in this revision

Viewing changes to xfce4-session/xfsm-shutdown-helper.h

  • Committer: Package Import Robot
  • Author(s): Lionel Le Folgoc
  • Date: 2012-05-18 20:21:52 UTC
  • mfrom: (4.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20120518202152-7bm9pla0j3ccfsnk
Tags: 4.10.0-1ubuntu1
* Merge from Debian experimental, remaining Ubuntu changes:
  - debian/control: build-depends on libgnome-keyring-dev to enable GNOME
    Keyring services support.
  - debian/rules: pass --enable-libgnome-keyring to dh_auto_configure.
  - debian/patches:
    + xubuntu_ignore-gdm-lang.patch: do not set $LANG to $GDM_LANG, there's
      already an xsession script to do that, and $GDM_LANG might not contain
      a valid locale code.

* debian/patches:
  - xubuntu_set-xdg-current-desktop.patch: added. Taken from xfce4-utils,
    export XDG_CURRENT_DESKTOP=XFCE, can be useful with alacarte and
    gnome-menus. lp #927172

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id$ */
2
 
/*-
3
 
 * Copyright (c) 2003-2006 Benedikt Meurer <benny@xfce.org>
4
 
 * Copyright (c) 2010      Ali Abdallah    <aliov@xfce.org>
5
 
 * All rights reserved.
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, or (at your option)
10
 
 * 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,
20
 
 * MA 02110-1301 USA.
21
 
 */
22
 
 
23
 
#ifndef __XFSM_SHUTDOWN_HELPER_H
24
 
#define __XFSM_SHUTDOWN_HELPER_H
25
 
 
26
 
#include <glib-object.h>
27
 
 
28
 
#include "shutdown.h"
29
 
 
30
 
G_BEGIN_DECLS
31
 
 
32
 
#define XFSM_TYPE_SHUTDOWN_HELPER        (xfsm_shutdown_helper_get_type () )
33
 
#define XFSM_SHUTDOWN_HELPER(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), XFSM_TYPE_SHUTDOWN_HELPER, XfsmShutdownHelper))
34
 
#define XFSM_IS_SHUTDOWN_HELPER(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), XFSM_TYPE_SHUTDOWN_HELPER))
35
 
 
36
 
typedef struct _XfsmShutdownHelperClass XfsmShutdownHelperClass;
37
 
typedef struct _XfsmShutdownHelper      XfsmShutdownHelper;
38
 
 
39
 
GType                     xfsm_shutdown_helper_get_type        (void) G_GNUC_CONST;
40
 
 
41
 
XfsmShutdownHelper       *xfsm_shutdown_helper_new             (void);
42
 
 
43
 
gboolean                  xfsm_shutdown_helper_send_password   (XfsmShutdownHelper *helper,
44
 
                                                                const gchar *password);
45
 
 
46
 
gboolean                  xfsm_shutdown_helper_shutdown        (XfsmShutdownHelper *helper,
47
 
                                                                GError **error);
48
 
 
49
 
gboolean                  xfsm_shutdown_helper_restart         (XfsmShutdownHelper *helper,
50
 
                                                                GError **error);
51
 
 
52
 
gboolean                  xfsm_shutdown_helper_suspend         (XfsmShutdownHelper *helper,
53
 
                                                                GError **error);
54
 
 
55
 
gboolean                  xfsm_shutdown_helper_hibernate       (XfsmShutdownHelper *helper,
56
 
                                                                GError **error);
57
 
 
58
 
gboolean                  xfsm_shutdown_helper_send_command    (XfsmShutdownHelper *helper,
59
 
                                                                XfsmShutdownType shutdown_type,
60
 
                                                                GError **error);
61
 
 
62
 
 
63
 
G_END_DECLS
64
 
 
65
 
#endif /* __XFSM_SHUTDOWN_HELPER_H */