]> vaikene.ee Git - evaf/blobdiff - src/main/GUI/exithandler.h
More work on the common library and the main GUI application.
[evaf] / src / main / GUI / exithandler.h
similarity index 54%
rename from src/main/gui/main.h
rename to src/main/GUI/exithandler.h
index 46daca764d3ed55911b918fd1a3bae2d5b348e71..e1ccd41c8e00c6ae5514a34faaa029e87f218fff 100644 (file)
@@ -1,6 +1,7 @@
 /**
- * @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