00001 /*!
00002 * \file GpgGtkMessageDialog.h
00003 * \brief Defines the messages dialog to informs the user of errors & other useful
00004 * informations
00005 *
00006 * \author Frederic RUAUDEL <grumz@users.sf.net>
00007 *
00008 * $Revision: 1.1 $
00009 * $Date: 2003/03/03 09:57:09 $
00010 *
00011 * \b GPassGuard
00012 * Copyleft (c) 2003 Frederic RUAUDEL, all rights reversed
00013 *
00014 * This program is free software which I release under the GNU General Public
00015 * License. You may redistribute and/or modify this program under the terms
00016 * of that license as published by the Free Software Foundation; either
00017 * version 2 of the License, or (at your option) any later version.
00018 *
00019 * This program is distributed in the hope that it will be useful,
00020 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00022 * GNU General Public License for more details. Version 2 is in the
00023 * COPYING file in the top level directory of this distribution.
00024 *
00025 * To get a copy of the GNU General Public License, write to the Free Software
00026 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00027 **/
00028
00029 #ifndef GPG_GTK_MESSAGE_DIALOG_H
00030 #define GPG_GTK_MESSAGE_DIALOG_H
00031
00032 #include <gtk/gtk.h>
00033 #include <iostream>
00034 #include <string>
00035
00036 using namespace std;
00037
00038 class GpgGtkMessageDialog
00039 {
00040 public:
00041 GpgGtkMessageDialog (GtkWidget* parent_window, GtkMessageType message_type, string primary_message, string secondary_message="");
00042 virtual ~GpgGtkMessageDialog ();
00043
00044 virtual void show (void);
00045
00046 protected:
00047 virtual void create_message_dialog (GtkWidget* parent_window);
00048 GtkWidget* create_dialog_image (GtkMessageType message_type);
00049
00050 private:
00051 GtkWidget* _message_dialog;
00052 };
00053
00054 #endif /* GPG_GTK_MESSAGE_DIALOG_H */
1.2.15