summaryrefslogtreecommitdiffstats
path: root/src/knowitapp.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 02:48:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 02:48:30 +0000
commite1481e0a7c066357dfb67136f331b5f069d94f3c (patch)
tree19599adc9a54e8295402ceb25d6f2ea42edea439 /src/knowitapp.h
downloadknowit-e1481e0a7c066357dfb67136f331b5f069d94f3c.tar.gz
knowit-e1481e0a7c066357dfb67136f331b5f069d94f3c.zip
Added abandoned KDE3 version of knowit
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knowit@1091582 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/knowitapp.h')
-rw-r--r--src/knowitapp.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/knowitapp.h b/src/knowitapp.h
new file mode 100644
index 0000000..f876202
--- /dev/null
+++ b/src/knowitapp.h
@@ -0,0 +1,45 @@
+/***************************************************************************
+ knowitApplication.h - description
+ -------------------
+ begin : wto maj 20 2003
+ copyright : (C) 2003 by Micha� Rudolf
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef __KNOWIT_APP_H__
+#define __KNOWIT_APP_H__
+#include <kuniqueapplication.h>
+
+class KnowitApplication : public KUniqueApplication
+{
+Q_OBJECT
+
+public:
+ KnowitApplication(bool allowStyles = true, bool GUIEnabled = true);
+ ~KnowitApplication();
+ /** Commits all Application-relevant data on shutdown.
+ *
+ * This function is called when the QSessionManager wants to close the
+ * Application. It is reimplemented to set the boolean sessionClose flag.
+ *
+ * @param sm The QSessionManager object.
+ */
+ virtual void commitData(QSessionManager& sm);
+ /** Returns TRUE if the Application is closed by the session manager. */
+ bool closeByLogout() {return(mcloseByLogout);}
+
+private:
+ bool mcloseByLogout;
+};
+
+#endif
+