blob: f9bfefb38b77f0b8d00452dd70b3cf46208ac9e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
/*
* 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 TQString& 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_
|