author | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
commit | 15318cad33835e4e2dc620d033e43cd930676cdd (patch) (unidiff) | |
tree | c2fa0399a2c47fda8e2cd0092c73a809d17f68eb /core/settings/security/security.h | |
download | opie-15318cad33835e4e2dc620d033e43cd930676cdd.zip opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2 |
Initial revision
Diffstat (limited to 'core/settings/security/security.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/settings/security/security.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/core/settings/security/security.h b/core/settings/security/security.h new file mode 100644 index 0000000..efc83a2 --- a/dev/null +++ b/core/settings/security/security.h | |||
@@ -0,0 +1,64 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
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 | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
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. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | #ifndef SECURITY_H | ||
21 | #define SECURITY_H | ||
22 | |||
23 | #include "securitybase.h" | ||
24 | |||
25 | class QPEDialogListener; | ||
26 | |||
27 | class Security : public SecurityBase | ||
28 | { | ||
29 | Q_OBJECT | ||
30 | |||
31 | public: | ||
32 | Security( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | ||
33 | ~Security(); | ||
34 | |||
35 | void show(); | ||
36 | |||
37 | protected: | ||
38 | void accept(); | ||
39 | void applySecurity(); | ||
40 | void done(int); | ||
41 | |||
42 | private slots: | ||
43 | void changePassCode(); | ||
44 | void clearPassCode(); | ||
45 | void setSyncNet(const QString&); | ||
46 | |||
47 | private: | ||
48 | bool telnetAvailable() const; | ||
49 | bool sshAvailable() const; | ||
50 | void updateGUI(); | ||
51 | |||
52 | static void parseNet(const QString& sn,int& auth_peer,int& auth_peer_bits); | ||
53 | void selectNet(int auth_peer,int auth_peer_bits); | ||
54 | |||
55 | QString enterPassCode(const QString&); | ||
56 | QString passcode; | ||
57 | bool valid; | ||
58 | |||
59 | QPEDialogListener *dl; | ||
60 | }; | ||
61 | |||
62 | |||
63 | #endif // SECURITY_H | ||
64 | |||