-rw-r--r-- | core/launcher/shutdownimpl.h | 15 |
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 | ||
25 | class QTimer; | 25 | class QTimer; |
26 | class QLabel; | ||
27 | class QProgressBar; | ||
26 | 28 | ||
27 | class ShutdownImpl : public Shutdown | 29 | class ShutdownImpl : public QWidget |
28 | { | 30 | { |
29 | Q_OBJECT | 31 | Q_OBJECT |
30 | public: | 32 | public: |
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 | ||
35 | signals: | 37 | signals: |
36 | void shutdown( ShutdownImpl::Type ); | 38 | void shutdown( ShutdownImpl::Type ); |
37 | 39 | ||
38 | private slots: | 40 | private slots: |
39 | void buttonClicked( int ); | 41 | void buttonClicked( int ); |
40 | void cancelClicked(); | 42 | void cancelClicked(); |
41 | void timeout(); | 43 | void timeout(); |
42 | 44 | ||
43 | private: | 45 | private: |
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 | ||