public:
+ /// Application return values
+ enum {
+ RC_Quit = 0, ///< Normal exit
+ RC_Error = 1, ///< Exit due to an error
+ RC_Restart = 2 ///< The application is restarting
+ };
+
+ /// Event that requests the eVaf application to quit
+ static char const * const EV_QUIT;
+
+ /// Event that requests the eVaf application to restart
+ static char const * const EV_RESTART;
+
+ /// Event informing that the eVaf application is ready
+ static char const * const EV_READY;
+
+ /// Event informing that the eVaf application is restarting
+ static char const * const EV_TERMINATING;
+
/// Interface constructor
iApp() : QObject() {}
*/
virtual QString const xmlFileName() const = 0;
+ /**
+ * Requests the eVaf application to restart.
+ *
+ * This function requests the eVaf application to restart itself. Restarting the application
+ * reloads all the plugins and re-initializes them.
+ */
+ virtual void restart() = 0;
+
+ /**
+ * Requests the eVaf application to quit.
+ * @param err If true, then indicates that the application exits due to a fatal error
+ *
+ * This function requests the eVaf application to quit.
+ */
+ virtual void quit(bool err = false) = 0;
+
+ /**
+ * Returns true if the eVaf application is ready.
+ */
+ virtual bool isReady() const = 0;
+
signals: