X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;ds=sidebyside;f=src%2Flibs%2FCommon%2Fapp.h;h=34f7a5d73d7bec77413cb717ccae869a1d511b7a;hb=8958311b9f05fc65cdf9e528db8b4b32a94eb24a;hp=3bcde5aaa045c422acaeff53658b9529e40c6be7;hpb=be0e791df48f5a8c9bb4c16f65b62e41e1149552;p=evaf
diff --git a/src/libs/Common/app.h b/src/libs/Common/app.h
index 3bcde5a..34f7a5d 100644
--- a/src/libs/Common/app.h
+++ b/src/libs/Common/app.h
@@ -25,6 +25,8 @@
#include
#include
+class QEvent;
+
namespace eVaf {
namespace Common {
namespace Internal {
@@ -48,6 +50,8 @@ public:
*/
bool init();
+ virtual bool event(QEvent *);
+
/*
iApp interface
*/
@@ -57,6 +61,8 @@ public:
virtual QString const xmlFileName() const;
+ virtual int exec();
+
virtual void restart();
virtual void quit(bool err = false);
@@ -78,7 +84,7 @@ public:
virtual QString const qtPluginsDir() const;
-private:
+private: // Members
/// Flag indicating that the eVaf application is ready
bool mReady;
@@ -113,6 +119,17 @@ private:
/// Name of the documentation directory
mutable QString mDocDir;
+ /// Event numbers
+ uint mEvQuit;
+ uint mEvRestart;
+ uint mEvReady;
+ uint mEvTerminating;
+
+
+private: // Methods
+
+ void setReady(bool value);
+
};
} // namespace eVaf::Common::Internal