message.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef GCU_MESSAGE_H
00026 #define GCU_MESSAGE_H
00027
00028 #include <gtk/gtk.h>
00029 #include <string>
00030
00031 namespace gcu {
00032
00033 class Application;
00034
00035 class Message {
00036 friend class MessagePrivate;
00037 public:
00038 Message (Application *app, std::string &message, GtkMessageType type, GtkButtonsType buttons, GtkWindow *parent = NULL);
00039 Message (Application *app, char const *message, GtkMessageType type, GtkButtonsType buttons, GtkWindow *parent = NULL);
00040 virtual ~Message ();
00041
00042 int Run ();
00043
00044 private:
00045 GtkDialog *m_Window;
00046 unsigned m_delete_sgn, m_destroy_sgn, m_response_sgn;
00047 };
00048
00049 }
00050
00051 #endif // GCU_MESSAGE_H