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) (show whitespace changes)
-rw-r--r--core/launcher/desktop.h13
1 files changed, 11 insertions, 2 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,6 +37,7 @@ 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{
@@ -44,6 +45,9 @@ class DesktopApplication : public QPEApplication
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();
@@ -59,13 +63,16 @@ signals:
59 63
60protected: 64protected:
61#ifdef Q_WS_QWS 65#ifdef Q_WS_QWS
66
62 bool qwsEventFilter( QWSEvent * ); 67 bool qwsEventFilter( QWSEvent * );
63#endif 68#endif
69
64 void shutdown(); 70 void shutdown();
65 void restart(); 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);
@@ -76,10 +83,12 @@ private:
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
91{
83 Q_OBJECT 92 Q_OBJECT
84public: 93public:
85 Desktop(); 94 Desktop();