X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;f=src%2Flibs%2FCommon%2Fiapp.h;h=5a61edab0568af268a5252d50b73eb185f58b5ab;hb=HEAD;hp=098abafde39410119d5b86f61af2cb7ea74876d7;hpb=be0e791df48f5a8c9bb4c16f65b62e41e1149552;p=evaf
diff --git a/src/libs/Common/iapp.h b/src/libs/Common/iapp.h
index 098abaf..5a61eda 100644
--- a/src/libs/Common/iapp.h
+++ b/src/libs/Common/iapp.h
@@ -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.
*