-rw-r--r-- | core/launcher/desktop.h | 13 |
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 @@ -36,15 +36,19 @@ class PowerStatus; class QCopBridge; class TransferServer; class DesktopPowerAlerter; class PackageSlave; +class QPEScreenSaver; class DesktopApplication : public QPEApplication { Q_OBJECT public: DesktopApplication( int& argc, char **argv, Type t ); ~DesktopApplication(); + + static void switchLCD ( bool on ); // only for togglePower in Desktop + signals: void home(); void datebook(); void contacts(); @@ -58,15 +62,18 @@ signals: void prepareForRestart(); protected: #ifdef Q_WS_QWS + bool qwsEventFilter( QWSEvent * ); #endif + void shutdown(); void restart(); public slots: - void receive( const QCString &msg, const QByteArray &data ); + virtual void desktopMessage ( const QCString &msg, const QByteArray &data ); + virtual void systemMessage ( const QCString &msg, const QByteArray &data ); protected slots: void shutdown(ShutdownImpl::Type); void psTimeout(); @@ -75,12 +82,14 @@ private: DesktopPowerAlerter *pa; PowerStatus *ps; QTimer *cardSendTimer; QCopChannel *channel; + QPEScreenSaver *m_screensaver; }; -class Desktop : public QWidget { +class Desktop : public QWidget +{ Q_OBJECT public: Desktop(); ~Desktop(); |