/**
- * @file main/gui/main.h
- * @brief The main eVaf GUI application class
+ * @file main/GUI/exithandler.h
+ * @brief Exit handlers for the eVaf main executable
+ * @author Enar Vaikene
*
* Copyright (c) 2011 Enar Vaikene
*
* Agreement provided with the Software.
*/
-#ifndef __GUI_MAIN_H
-#define __GUI_MAIN_H
-
-#include <QApplication>
+#ifndef __GUI_EXITHANDLER_H
+# define __GUI_EXITHANDLER_H
+namespace eVaf {
+namespace GUI {
+namespace Internal {
/**
- * The main eVaf GUI application.
+ * Installs an exit handler for the selected platform.
*
- * eVafGUI is the main GUI executable. It provides an empty GUI application
- * that is used to load other eVaf modules.
- */
-namespace eVafGUI {
-
-/**
- * The main eVaf GUI application class.
+ * Exit handler quits or restarts the application when a corresponding signal
+ * is received.
*/
-class Application : public QApplication
-{
- Q_OBJECT
-
-public:
-
- Application(int & argc, char ** argv);
-
- virtual ~Application();
-
-};
+bool installExitHandler();
-} // namespace eVafGUI
+} // namespace eVaf::GUI::Internal
+} // namespace eVaf::GUI
+} // namespace eVaf
-#endif // main.h
+#endif // exithandler.h