Diffstat (limited to 'core/settings/security/security.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/settings/security/security.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/settings/security/security.h b/core/settings/security/security.h index 52d56de..b1a3eca 100644 --- a/core/settings/security/security.h +++ b/core/settings/security/security.h | |||
@@ -1,71 +1,72 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of 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 SECURITY_H | 20 | #ifndef SECURITY_H |
21 | #define SECURITY_H | 21 | #define SECURITY_H |
22 | 22 | ||
23 | #include "securitybase.h" | 23 | #include "securitybase.h" |
24 | 24 | ||
25 | class QPEDialogListener; | 25 | class QPEDialogListener; |
26 | 26 | ||
27 | class Security : public SecurityBase | 27 | class Security : public SecurityBase |
28 | { | 28 | { |
29 | Q_OBJECT | 29 | Q_OBJECT |
30 | 30 | ||
31 | public: | 31 | public: |
32 | static QString appName() { return QString::fromLatin1("security"); } | 32 | static QString appName() { return QString::fromLatin1("security"); } |
33 | Security( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 33 | Security( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
34 | ~Security(); | 34 | ~Security(); |
35 | 35 | ||
36 | void show(); | 36 | void show(); |
37 | 37 | ||
38 | protected: | 38 | protected: |
39 | void accept(); | 39 | void accept(); |
40 | void applySecurity(); | 40 | void applySecurity(); |
41 | void done(int); | 41 | void done(int); |
42 | 42 | ||
43 | private slots: | 43 | private slots: |
44 | void changePassCode(); | 44 | void changePassCode(); |
45 | void clearPassCode(); | 45 | void clearPassCode(); |
46 | void setSyncNet(const QString&); | 46 | void setSyncNet(const QString&); |
47 | void changeLoginName(int); | 47 | void changeLoginName(int); |
48 | void toggleAutoLogin(bool); | 48 | void toggleAutoLogin(bool); |
49 | void changeSyncApp(); | ||
49 | 50 | ||
50 | 51 | ||
51 | private: | 52 | private: |
52 | void loadUsers(void); | 53 | void loadUsers(void); |
53 | bool telnetAvailable() const; | 54 | bool telnetAvailable() const; |
54 | bool sshAvailable() const; | 55 | bool sshAvailable() const; |
55 | void updateGUI(); | 56 | void updateGUI(); |
56 | 57 | ||
57 | static void parseNet(const QString& sn,int& auth_peer,int& auth_peer_bits); | 58 | static void parseNet(const QString& sn,int& auth_peer,int& auth_peer_bits); |
58 | void selectNet(int auth_peer,int auth_peer_bits); | 59 | void selectNet(int auth_peer,int auth_peer_bits); |
59 | 60 | ||
60 | QString enterPassCode(const QString&); | 61 | QString enterPassCode(const QString&); |
61 | QString passcode; | 62 | QString passcode; |
62 | bool valid; | 63 | bool valid; |
63 | bool autoLogin; | 64 | bool autoLogin; |
64 | QString autoLoginName; | 65 | QString autoLoginName; |
65 | 66 | ||
66 | QPEDialogListener *dl; | 67 | QPEDialogListener *dl; |
67 | }; | 68 | }; |
68 | 69 | ||
69 | 70 | ||
70 | #endif // SECURITY_H | 71 | #endif // SECURITY_H |
71 | 72 | ||