summaryrefslogtreecommitdiff
path: root/core/launcher/desktop.h
authorsandman <sandman>2002-09-06 19:31:52 (UTC)
committer sandman <sandman>2002-09-06 19:31:52 (UTC)
commitc9f7e21a3897b4a02c6eb460286eacbfafbba06f (patch) (unidiff)
tree9fa814c402f35184f029cf4de3e0b69e5c58c958 /core/launcher/desktop.h
parent088a233d52f2b06b6f478e73776eb2b430b2a1a5 (diff)
downloadopie-c9f7e21a3897b4a02c6eb460286eacbfafbba06f.zip
opie-c9f7e21a3897b4a02c6eb460286eacbfafbba06f.tar.gz
opie-c9f7e21a3897b4a02c6eb460286eacbfafbba06f.tar.bz2
Last part of the LCD control changes:
- Added the screen-saver part of libqpe to the DesktopApplication object - Cleaned up the remaining mess - reformated with astyle
Diffstat (limited to 'core/launcher/desktop.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/desktop.h133
1 files changed, 71 insertions, 62 deletions
diff --git a/core/launcher/desktop.h b/core/launcher/desktop.h
index 9bc4be9..b9ff39f 100644
--- a/core/launcher/desktop.h
+++ b/core/launcher/desktop.h
@@ -37,98 +37,107 @@ class QCopBridge;
37class TransferServer; 37class TransferServer;
38class DesktopPowerAlerter; 38class DesktopPowerAlerter;
39class PackageSlave; 39class PackageSlave;
40class QPEScreenSaver;
40 41
41class DesktopApplication : public QPEApplication 42class DesktopApplication : public QPEApplication
42{ 43{
43 Q_OBJECT 44 Q_OBJECT
44public: 45public:
45 DesktopApplication( int& argc, char **argv, Type t ); 46 DesktopApplication( int& argc, char **argv, Type t );
46 ~DesktopApplication(); 47 ~DesktopApplication();
48
49 static void switchLCD ( bool on ); // only for togglePower in Desktop
50
47signals: 51signals:
48 void home(); 52 void home();
49 void datebook(); 53 void datebook();
50 void contacts(); 54 void contacts();
51 void launch(); 55 void launch();
52 void email(); 56 void email();
53 void backlight(); 57 void backlight();
54 void power(); 58 void power();
55 void symbol(); 59 void symbol();
56 void numLockStateToggle(); 60 void numLockStateToggle();
57 void capsLockStateToggle(); 61 void capsLockStateToggle();
58 void prepareForRestart(); 62 void prepareForRestart();
59 63
60protected: 64protected:
61#ifdef Q_WS_QWS 65#ifdef Q_WS_QWS
62 bool qwsEventFilter( QWSEvent * ); 66
67 bool qwsEventFilter( QWSEvent * );
63#endif 68#endif
64 void shutdown(); 69
65 void restart(); 70 void shutdown();
71 void restart();
66 72
67public slots: 73public slots:
68 void receive( const QCString &msg, const QByteArray &data ); 74 virtual void desktopMessage ( const QCString &msg, const QByteArray &data );
75 virtual void systemMessage ( const QCString &msg, const QByteArray &data );
69 76
70protected slots: 77protected slots:
71 void shutdown(ShutdownImpl::Type); 78 void shutdown( ShutdownImpl::Type );
72 void psTimeout(); 79 void psTimeout();
73 void sendCard(); 80 void sendCard();
74private: 81private:
75 DesktopPowerAlerter *pa; 82 DesktopPowerAlerter *pa;
76 PowerStatus *ps; 83 PowerStatus *ps;
77 QTimer *cardSendTimer; 84 QTimer *cardSendTimer;
78 QCopChannel *channel; 85 QCopChannel *channel;
86 QPEScreenSaver *m_screensaver;
79}; 87};
80 88
81 89
82class Desktop : public QWidget { 90class Desktop : public QWidget
83 Q_OBJECT 91{
92 Q_OBJECT
84public: 93public:
85 Desktop(); 94 Desktop();
86 ~Desktop(); 95 ~Desktop();
87 96
88 static bool screenLocked(); 97 static bool screenLocked();
89 98
90 void show(); 99 void show();
91 void checkMemory(); 100 void checkMemory();
92 101
93 void keyClick(); 102 void keyClick();
94 void screenClick(); 103 void screenClick();
95 static void soundAlarm(); 104 static void soundAlarm();
96 105
97public slots: 106public slots:
98 void raiseDatebook(); 107 void raiseDatebook();
99 void raiseContacts(); 108 void raiseContacts();
100 void raiseMenu(); 109 void raiseMenu();
101 void raiseLauncher(); 110 void raiseLauncher();
102 void raiseEmail(); 111 void raiseEmail();
103 void execAutoStart(); 112 void execAutoStart();
104 void togglePower(); 113 void togglePower();
105 void toggleLight(); 114 void toggleLight();
106 void toggleNumLockState(); 115 void toggleNumLockState();
107 void toggleCapsLockState(); 116 void toggleCapsLockState();
108 void toggleSymbolInput(); 117 void toggleSymbolInput();
109 void terminateServers(); 118 void terminateServers();
110 void rereadVolumes(); 119 void rereadVolumes();
111 120
112protected: 121protected:
113 void executeOrModify(const QString& appLnkFile); 122 void executeOrModify( const QString& appLnkFile );
114 void styleChange( QStyle & ); 123 void styleChange( QStyle & );
115 void timerEvent( QTimerEvent *e ); 124 void timerEvent( QTimerEvent *e );
116 bool eventFilter( QObject *, QEvent * ); 125 bool eventFilter( QObject *, QEvent * );
117 126
118 QWidget *bg; 127 QWidget *bg;
119 Launcher *launcher; 128 Launcher *launcher;
120 TaskBar *tb; 129 TaskBar *tb;
121 130
122private: 131private:
123 void startTransferServer(); 132 void startTransferServer();
124 bool recoverMemory(); 133 bool recoverMemory();
125 134
126 QCopBridge *qcopBridge; 135 QCopBridge *qcopBridge;
127 TransferServer *transferServer; 136 TransferServer *transferServer;
128 PackageSlave *packageSlave; 137 PackageSlave *packageSlave;
129 138
130 QDateTime suspendTime; 139 QDateTime suspendTime;
131 bool keyclick,touchclick,alarmsound; 140 bool keyclick, touchclick, alarmsound;
132}; 141};
133 142
134 143