summaryrefslogtreecommitdiffstats
path: root/kmobile/kmobile.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch)
tree67208f7c145782a7e90b123b982ca78d88cc2c87 /kmobile/kmobile.h
downloadtdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz
tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmobile/kmobile.h')
-rw-r--r--kmobile/kmobile.h98
1 files changed, 98 insertions, 0 deletions
diff --git a/kmobile/kmobile.h b/kmobile/kmobile.h
new file mode 100644
index 00000000..059934c6
--- /dev/null
+++ b/kmobile/kmobile.h
@@ -0,0 +1,98 @@
+/*
+ * Copyright (C) 2003 Helge Deller <deller@kde.org>
+ */
+
+#ifndef _KMOBILE_H_
+#define _KMOBILE_H_
+
+#include <kapplication.h>
+#include <kmainwindow.h>
+#include <ktrader.h>
+
+#include "kmobileview.h"
+
+class KToggleAction;
+class SystemTray;
+
+/**
+ * This class serves as the main window for KMobile. It handles the
+ * menus, toolbars, and status bars.
+ *
+ * @short Main window class
+ */
+class KMobile : public KMainWindow
+{
+ Q_OBJECT
+public:
+ /**
+ * Default Constructor
+ */
+ KMobile();
+
+ /**
+ * Default Destructor
+ */
+ virtual ~KMobile();
+
+ KMobileView * mainView() const { return m_view; };
+
+protected:
+ /**
+ * This function is called when it is time for the app to save its
+ * properties for session management purposes.
+ */
+ void saveProperties(KConfig *);
+
+ /**
+ * This function is called when this app is restored. The KConfig
+ * object points to the session management config file that was saved
+ * with @ref saveProperties
+ */
+ void readProperties(KConfig *);
+
+public slots:
+
+ void saveAll();
+ void restoreAll();
+
+private slots:
+ void dockApplication();
+ void slotQuit();
+ void showMinimized();
+
+ void fileSave();
+ void optionsShowToolbar();
+ void optionsShowStatusbar();
+ void optionsConfigureKeys();
+ void optionsConfigureToolbars();
+
+ void addDevice();
+ void removeDevice();
+ void configDevice();
+
+ void renameDevice();
+
+ void optionsPreferences();
+
+ void newToolbarConfig();
+
+ void changeStatusbar(const QString& text);
+
+private:
+ void setupAccel();
+ void setupActions();
+
+ bool queryExit();
+ bool queryClose();
+
+private:
+ KConfig *m_config;
+
+ KMobileView *m_view;
+ SystemTray *m_systemTray;
+
+ KToggleAction *m_toolbarAction;
+ KToggleAction *m_statusbarAction;
+};
+
+#endif // _KMOBILE_H_