author | zecke <zecke> | 2003-08-28 14:45:44 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-28 14:45:44 (UTC) |
commit | b2929c823a2ec7d64b879266bebf2c648753c995 (patch) (unidiff) | |
tree | 42d0d4285fee784ed1f11a7734d4141c909403ad | |
parent | 5665c2c773a82b6c8a13ae7019a1d60bc0ab7778 (diff) | |
download | opie-b2929c823a2ec7d64b879266bebf2c648753c995.zip opie-b2929c823a2ec7d64b879266bebf2c648753c995.tar.gz opie-b2929c823a2ec7d64b879266bebf2c648753c995.tar.bz2 |
Use Opies version
-rw-r--r-- | core/launcher/shutdownimpl.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/launcher/shutdownimpl.h b/core/launcher/shutdownimpl.h index 12b859d..07f797e 100644 --- a/core/launcher/shutdownimpl.h +++ b/core/launcher/shutdownimpl.h | |||
@@ -1,57 +1,57 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of the Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
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 <qwidget.h> | 23 | #include <qwidget.h> |
24 | 24 | ||
25 | class QTimer; | 25 | class QTimer; |
26 | class QLabel; | 26 | class QLabel; |
27 | class QProgressBar; | 27 | class QProgressBar; |
28 | 28 | ||
29 | class ShutdownImpl : public QWidget | 29 | class ShutdownImpl : public QWidget |
30 | { | 30 | { |
31 | Q_OBJECT | 31 | Q_OBJECT |
32 | public: | 32 | public: |
33 | ShutdownImpl( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 33 | ShutdownImpl( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
34 | 34 | ||
35 | enum Type { ShutdownSystem, RebootSystem, RestartDesktop, TerminateDesktop }; | 35 | enum Type { ShutdownSystem, RebootSystem, RestartDesktop, TerminateDesktop }; |
36 | 36 | ||
37 | virtual void hide ( ); | 37 | virtual void hide ( ); |
38 | 38 | ||
39 | signals: | 39 | signals: |
40 | void shutdown( ShutdownImpl::Type ); | 40 | void shutdown( ShutdownImpl::Type ); |
41 | 41 | ||
42 | private slots: | 42 | private slots: |
43 | void buttonClicked( int ); | 43 | void buttonClicked( int ); |
44 | void cancelClicked(); | 44 | void cancelClicked(); |
45 | void timeout(); | 45 | void timeout(); |
46 | 46 | ||
47 | private: | 47 | private: |
48 | QTimer *m_timer; | 48 | QTimer *m_timer; |
49 | int m_counter; | 49 | int m_counter; |
50 | Type m_operation; | 50 | Type m_operation; |
51 | 51 | ||
52 | QLabel * m_info; | 52 | QLabel * m_info; |
53 | QProgressBar *m_progress; | 53 | QProgressBar *m_progress; |
54 | }; | 54 | }; |
55 | 55 | ||
56 | #endif | 56 | #endif |
57 | 57 | ||