summaryrefslogtreecommitdiff
path: root/core/launcher/desktop.h
authorharlekin <harlekin>2002-10-22 21:41:42 (UTC)
committer harlekin <harlekin>2002-10-22 21:41:42 (UTC)
commite4297ff151693e07313ea036de91ad3c788c5e26 (patch) (unidiff)
tree564bf451b6e6319944e3e793631f93d879031c74 /core/launcher/desktop.h
parent4381aaf653750f4a51a816ff419be70059b2857d (diff)
downloadopie-e4297ff151693e07313ea036de91ad3c788c5e26.zip
opie-e4297ff151693e07313ea036de91ad3c788c5e26.tar.gz
opie-e4297ff151693e07313ea036de91ad3c788c5e26.tar.bz2
launcher side of the support for new light and power settings
Diffstat (limited to 'core/launcher/desktop.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/desktop.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/core/launcher/desktop.h b/core/launcher/desktop.h
index 04c2f61..15d8ef7 100644
--- a/core/launcher/desktop.h
+++ b/core/launcher/desktop.h
@@ -59,53 +59,58 @@ signals:
59 void power(); 59 void power();
60 void symbol(); 60 void symbol();
61 void numLockStateToggle(); 61 void numLockStateToggle();
62 void capsLockStateToggle(); 62 void capsLockStateToggle();
63 void prepareForRestart(); 63 void prepareForRestart();
64 64
65protected: 65protected:
66#ifdef Q_WS_QWS 66#ifdef Q_WS_QWS
67 67
68 bool qwsEventFilter( QWSEvent * ); 68 bool qwsEventFilter( QWSEvent * );
69#endif 69#endif
70 70
71 void shutdown(); 71 void shutdown();
72 void restart(); 72 void restart();
73 73
74public slots: 74public slots:
75 virtual void desktopMessage ( const QCString &msg, const QByteArray &data ); 75 virtual void desktopMessage ( const QCString &msg, const QByteArray &data );
76 virtual void systemMessage ( const QCString &msg, const QByteArray &data ); 76 virtual void systemMessage ( const QCString &msg, const QByteArray &data );
77 77
78protected slots: 78protected slots:
79 void shutdown( ShutdownImpl::Type ); 79 void shutdown( ShutdownImpl::Type );
80 void psTimeout(); 80 void psTimeout();
81 void sendCard(); 81 void sendCard();
82private: 82private:
83 DesktopPowerAlerter *pa; 83 void reloadPowerWarnSettings();
84 PowerStatus *ps; 84 DesktopPowerAlerter *pa;
85 QTimer *cardSendTimer; 85 PowerStatus *ps;
86 QCopChannel *channel; 86 QTimer *cardSendTimer;
87 QPEScreenSaver *m_screensaver; 87 QCopChannel *channel;
88 QPEScreenSaver *m_screensaver;
89 QTimer * m_timer;
90 int m_powerVeryLow;
91 int m_powerCritical;
92
88}; 93};
89 94
90 95
91class Desktop : public QWidget 96class Desktop : public QWidget
92{ 97{
93 Q_OBJECT 98 Q_OBJECT
94public: 99public:
95 Desktop(); 100 Desktop();
96 ~Desktop(); 101 ~Desktop();
97 102
98 static bool screenLocked(); 103 static bool screenLocked();
99 104
100 void show(); 105 void show();
101 void checkMemory(); 106 void checkMemory();
102 107
103 void keyClick(); 108 void keyClick();
104 void screenClick(); 109 void screenClick();
105 static void soundAlarm(); 110 static void soundAlarm();
106 111
107public slots: 112public slots:
108 void raiseDatebook(); 113 void raiseDatebook();
109 void raiseContacts(); 114 void raiseContacts();
110 void raiseMenu(); 115 void raiseMenu();
111 void raiseLauncher(); 116 void raiseLauncher();