summaryrefslogtreecommitdiff
path: root/core/launcher/shutdownimpl.h
authorsandman <sandman>2002-06-27 01:44:44 (UTC)
committer sandman <sandman>2002-06-27 01:44:44 (UTC)
commit6d0df38a805c5560b0815df62b212d4be0913154 (patch) (unidiff)
tree3d6e276d877c4bfe2f1960ec62465cb5122bcade /core/launcher/shutdownimpl.h
parented8d1696ca8f0407cb7e6b91cc8d410dede5ccdc (diff)
downloadopie-6d0df38a805c5560b0815df62b212d4be0913154.zip
opie-6d0df38a805c5560b0815df62b212d4be0913154.tar.gz
opie-6d0df38a805c5560b0815df62b212d4be0913154.tar.bz2
Made the launcher dialog "liquid compatible":
remvoed the ui file and hand-coded the gui with smarter palette handling.
Diffstat (limited to 'core/launcher/shutdownimpl.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/shutdownimpl.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/core/launcher/shutdownimpl.h b/core/launcher/shutdownimpl.h
index 54668f3..462f347 100644
--- a/core/launcher/shutdownimpl.h
+++ b/core/launcher/shutdownimpl.h
@@ -11,40 +11,45 @@
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20#ifndef SHUTDOWNIMPL_H 20#ifndef SHUTDOWNIMPL_H
21#define SHUTDOWNIMPL_H 21#define SHUTDOWNIMPL_H
22 22
23#include "shutdown.h" 23#include <qwidget.h>
24 24
25class QTimer; 25class QTimer;
26class QLabel;
27class QProgressBar;
26 28
27class ShutdownImpl : public Shutdown 29class ShutdownImpl : public QWidget
28{ 30{
29 Q_OBJECT 31 Q_OBJECT
30public: 32public:
31 ShutdownImpl( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 33 ShutdownImpl( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
32 34
33 enum Type { ShutdownSystem, RebootSystem, RestartDesktop, TerminateDesktop }; 35 enum Type { ShutdownSystem, RebootSystem, RestartDesktop, TerminateDesktop };
34 36
35signals: 37signals:
36 void shutdown( ShutdownImpl::Type ); 38 void shutdown( ShutdownImpl::Type );
37 39
38private slots: 40private slots:
39 void buttonClicked( int ); 41 void buttonClicked( int );
40 void cancelClicked(); 42 void cancelClicked();
41 void timeout(); 43 void timeout();
42 44
43private: 45private:
44 QTimer *timer; 46 QTimer *m_timer;
45 int progress; 47 int m_counter;
46 Type operation; 48 Type m_operation;
49
50 QLabel * m_info;
51 QProgressBar *m_progress;
47}; 52};
48 53
49#endif 54#endif
50 55