1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2  *
3  * Copyright (C) 2008 William Jon McCann <mccann@jhu.edu>
4  * Copyright (C) 2012-2021 MATE Developers
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
19  *
20  */
21 
22 #ifndef __GSM_INHIBIT_DIALOG_H
23 #define __GSM_INHIBIT_DIALOG_H
24 
25 #include <glib-object.h>
26 #include <gtk/gtk.h>
27 
28 #include "gsm-store.h"
29 
30 G_BEGIN_DECLS
31 
32 #define GSM_TYPE_INHIBIT_DIALOG         (gsm_inhibit_dialog_get_type ())
33 G_DECLARE_FINAL_TYPE (GsmInhibitDialog, gsm_inhibit_dialog, GSM, INHIBIT_DIALOG, GtkDialog)
34 
35 typedef enum
36 {
37         GSM_LOGOUT_ACTION_LOGOUT,
38         GSM_LOGOUT_ACTION_SWITCH_USER,
39         GSM_LOGOUT_ACTION_SHUTDOWN,
40         GSM_LOGOUT_ACTION_REBOOT,
41         GSM_LOGOUT_ACTION_HIBERNATE,
42         GSM_LOGOUT_ACTION_SLEEP
43 } GsmLogoutAction;
44 
45 GtkWidget            * gsm_inhibit_dialog_new                (GsmStore         *inhibitors,
46                                                               GsmStore         *clients,
47                                                               int               action);
48 GtkTreeModel         * gsm_inhibit_dialog_get_model          (GsmInhibitDialog *dialog);
49 
50 G_END_DECLS
51 
52 #endif /* __GSM_INHIBIT_DIALOG_H */
53