]> vaikene.ee Git - evaf/blobdiff - src/libs/Common/iapp.h
Mac OS changes and switched to c++11.
[evaf] / src / libs / Common / iapp.h
index 098abafde39410119d5b86f61af2cb7ea74876d7..5a61edab0568af268a5252d50b73eb185f58b5ab 100644 (file)
@@ -3,7 +3,7 @@
  * @brief eVaf application interface
  * @author Enar Vaikene
  *
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
  *
  * This file is part of the eVaf C++ cross-platform application development framework.
  *
@@ -129,6 +129,15 @@ public:
      */
     virtual QString const xmlFileName() const = 0;
 
+    /**
+     * Enters the main event loop of the Qt application.
+     * @return Value returned by the Qt application
+     *
+     * This function enters the event loop of the Qt application. Use this function to start event handling
+     * instead of calling QCoreApplication::exec() or QApplication::exec() functions directly.
+     */
+    virtual int exec() = 0;
+
     /**
      * Requests the eVaf application to restart.
      *