Back to index

indicator-session  12.10.0
dialog.h
Go to the documentation of this file.
00001 /*
00002 A dialog to ask the user about the various logout options that
00003 are available.
00004 
00005 Copyright 2010 Canonical Ltd.
00006 
00007 Authors:
00008     Ted Gould <ted@canonical.com>
00009 
00010 This program is free software: you can redistribute it and/or modify it 
00011 under the terms of the GNU General Public License version 3, as published 
00012 by the Free Software Foundation.
00013 
00014 This program is distributed in the hope that it will be useful, but 
00015 WITHOUT ANY WARRANTY; without even the implied warranties of 
00016 MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
00017 PURPOSE.  See the GNU General Public License for more details.
00018 
00019 You should have received a copy of the GNU General Public License along 
00020 with this program.  If not, see <http://www.gnu.org/licenses/>.
00021 */
00022 
00023 #ifndef __LOGOUT_DIALOG_H__
00024 #define __LOGOUT_DIALOG_H__
00025 
00026 #include <glib.h>
00027 #include <glib-object.h>
00028 
00029 #include <gtk/gtk.h>
00030 
00031 G_BEGIN_DECLS
00032 
00033 #define LOGOUT_DIALOG_TYPE            (logout_dialog_get_type ())
00034 #define LOGOUT_DIALOG(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), LOGOUT_DIALOG_TYPE, LogoutDialog))
00035 #define LOGOUT_DIALOG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), LOGOUT_DIALOG_TYPE, LogoutDialogClass))
00036 #define IS_LOGOUT_DIALOG(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LOGOUT_DIALOG_TYPE))
00037 #define IS_LOGOUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LOGOUT_DIALOG_TYPE))
00038 #define LOGOUT_DIALOG_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), LOGOUT_DIALOG_TYPE, LogoutDialogClass))
00039 
00040 typedef enum _LogoutDialogType LogoutDialogType;
00041 enum _LogoutDialogType {
00042        LOGOUT_DIALOG_TYPE_LOG_OUT,
00043        LOGOUT_DIALOG_TYPE_RESTART,
00044        LOGOUT_DIALOG_TYPE_SHUTDOWN,
00045        LOGOUT_DIALOG_TYPE_CNT
00046 };
00047 
00048 typedef struct _LogoutDialog      LogoutDialog;
00049 typedef struct _LogoutDialogClass LogoutDialogClass;
00050 
00051 struct _LogoutDialogClass {
00052        GtkMessageDialogClass parent_class;
00053 };
00054 
00055 struct _LogoutDialog {
00056        GtkMessageDialog parent;
00057 };
00058 
00059 GType logout_dialog_get_type (void);
00060 LogoutDialog * logout_dialog_new (LogoutDialogType type);
00061 
00062 G_END_DECLS
00063 
00064 #endif