X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2FGUI%2Fexithandler.h;fp=src%2Fmain%2Fgui%2Fmain.h;h=e1ccd41c8e00c6ae5514a34faaa029e87f218fff;hb=4d81227da330c21c7aa0badc88bd5ad4467067fb;hp=46daca764d3ed55911b918fd1a3bae2d5b348e71;hpb=5815060246f84e8efdf3143b4e8c7d00778168cf;p=evaf
diff --git a/src/main/gui/main.h b/src/main/GUI/exithandler.h
similarity index 54%
rename from src/main/gui/main.h
rename to src/main/GUI/exithandler.h
index 46daca7..e1ccd41 100644
--- a/src/main/gui/main.h
+++ b/src/main/GUI/exithandler.h
@@ -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
*
@@ -16,35 +17,23 @@
* Agreement provided with the Software.
*/
-#ifndef __GUI_MAIN_H
-#define __GUI_MAIN_H
-
-#include
+#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