diff options
Diffstat (limited to 'src/info_gui.h')
-rw-r--r-- | src/info_gui.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/info_gui.h b/src/info_gui.h index 6547496..8df1985 100644 --- a/src/info_gui.h +++ b/src/info_gui.h @@ -51,6 +51,25 @@ #include <pthread.h> #include <semaphore.h> +#include "messagebox.h" + +#define TYPE_SHOW_MESSAGEBOX 65432 + +class ShowMessageEvent : public QCustomEvent { +public: + ShowMessageEvent( MessageBox* msgbox ) + : QCustomEvent( TYPE_SHOW_MESSAGEBOX ), m( msgbox ) {} + MessageBox *messagebox() const { return m; } +private: + MessageBox *m;; +}; + +class InfoEventHandler : public QObject { +protected: + bool eventFilter( QObject *o, QEvent *e ); +}; + + class InfoGui: public Info { public: InfoGui(QApplication *a, QWidget *p); @@ -63,6 +82,8 @@ public: void setParent(QWidget *p); private: + void showmsg(char *msg, char *title, msg_icon icon); + QApplication *qapp; QWidget *parent; pthread_mutex_t mutex; |