From 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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 --- kmobile/kmobile.h | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 kmobile/kmobile.h (limited to 'kmobile/kmobile.h') diff --git a/kmobile/kmobile.h b/kmobile/kmobile.h new file mode 100644 index 000000000..059934c61 --- /dev/null +++ b/kmobile/kmobile.h @@ -0,0 +1,98 @@ +/* + * Copyright (C) 2003 Helge Deller + */ + +#ifndef _KMOBILE_H_ +#define _KMOBILE_H_ + +#include +#include +#include + +#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_ -- cgit v1.2.1