3
* Copyright (c) 2003-2006 Benedikt Meurer <benny@xfce.org>
4
* Copyright (c) 2010 Ali Abdallah <aliov@xfce.org>
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)
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,
23
#ifndef __XFSM_SHUTDOWN_HELPER_H
24
#define __XFSM_SHUTDOWN_HELPER_H
26
#include <glib-object.h>
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))
36
typedef struct _XfsmShutdownHelperClass XfsmShutdownHelperClass;
37
typedef struct _XfsmShutdownHelper XfsmShutdownHelper;
39
GType xfsm_shutdown_helper_get_type (void) G_GNUC_CONST;
41
XfsmShutdownHelper *xfsm_shutdown_helper_new (void);
43
gboolean xfsm_shutdown_helper_send_password (XfsmShutdownHelper *helper,
44
const gchar *password);
46
gboolean xfsm_shutdown_helper_shutdown (XfsmShutdownHelper *helper,
49
gboolean xfsm_shutdown_helper_restart (XfsmShutdownHelper *helper,
52
gboolean xfsm_shutdown_helper_suspend (XfsmShutdownHelper *helper,
55
gboolean xfsm_shutdown_helper_hibernate (XfsmShutdownHelper *helper,
58
gboolean xfsm_shutdown_helper_send_command (XfsmShutdownHelper *helper,
59
XfsmShutdownType shutdown_type,
65
#endif /* __XFSM_SHUTDOWN_HELPER_H */