]> vaikene.ee Git - evaf/blobdiff - src/libs/Common/app.h
Numeric character and character entity references are now also supported when convert...
[evaf] / src / libs / Common / app.h
index 3bcde5aaa045c422acaeff53658b9529e40c6be7..34f7a5d73d7bec77413cb717ccae869a1d511b7a 100644 (file)
@@ -25,6 +25,8 @@
 #include <QObject>
 #include <QString>
 
+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