~ubuntu-branches/ubuntu/jaunty/plasma-widget-network-manager/jaunty-updates

« back to all changes in this revision

Viewing changes to libs/storage/settings/802-11-wireless-security.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2009-02-10 16:33:42 UTC
  • Revision ID: james.westby@ubuntu.com-20090210163342-y22tcldf0fuyqqm9
Tags: upstream-0.0+svn924363
ImportĀ upstreamĀ versionĀ 0.0+svn924363

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// This file is generated by kconfig_compiler from 802-11-wireless-security.kcfg.
 
2
// All changes you do to this file will be lost.
 
3
#ifndef KNM_WIRELESSSECURITYSETTING_H
 
4
#define KNM_WIRELESSSECURITYSETTING_H
 
5
 
 
6
#include <kglobal.h>
 
7
#include <kdebug.h>
 
8
#include <kcoreconfigskeleton.h>
 
9
#include "setting.h"
 
10
#include "knm_export.h"
 
11
namespace Knm {
 
12
 
 
13
class KNM_EXPORT WirelessSecuritySetting : public Setting
 
14
{
 
15
  public:
 
16
    class EnumSecurityType
 
17
    {
 
18
      public:
 
19
      enum type { None, WEP40, WEP128, DynamicWEP, WPAPSK, WPAEAP, COUNT };
 
20
    };
 
21
    class EnumKeymgmt
 
22
    {
 
23
      public:
 
24
      enum type { None, Ieee8021x, WPANone, WPAPSK, WPAEAP, COUNT };
 
25
    };
 
26
    class EnumAuthalg
 
27
    {
 
28
      public:
 
29
      enum type { open, shared, leap, COUNT };
 
30
    };
 
31
 
 
32
    WirelessSecuritySetting( );
 
33
    ~WirelessSecuritySetting();
 
34
 
 
35
    QString name() const;
 
36
 
 
37
    bool hasSecrets() const;
 
38
 
 
39
    /**
 
40
      Set Security type
 
41
    */
 
42
    void setSecurityType( int v )
 
43
    {
 
44
        mSecurityType = v;
 
45
    }
 
46
 
 
47
    /**
 
48
      Get Security type
 
49
    */
 
50
    int securityType() const
 
51
    {
 
52
      return mSecurityType;
 
53
    }
 
54
 
 
55
    /**
 
56
      Set Key management
 
57
    */
 
58
    void setKeymgmt( int v )
 
59
    {
 
60
        mKeymgmt = v;
 
61
    }
 
62
 
 
63
    /**
 
64
      Get Key management
 
65
    */
 
66
    int keymgmt() const
 
67
    {
 
68
      return mKeymgmt;
 
69
    }
 
70
 
 
71
    /**
 
72
      Set WEP TX key index
 
73
    */
 
74
    void setWeptxkeyindex( uint v )
 
75
    {
 
76
        mWeptxkeyindex = v;
 
77
    }
 
78
 
 
79
    /**
 
80
      Get WEP TX key index
 
81
    */
 
82
    uint weptxkeyindex() const
 
83
    {
 
84
      return mWeptxkeyindex;
 
85
    }
 
86
 
 
87
    /**
 
88
      Set Authentication algorithm
 
89
    */
 
90
    void setAuthalg( int v )
 
91
    {
 
92
        mAuthalg = v;
 
93
    }
 
94
 
 
95
    /**
 
96
      Get Authentication algorithm
 
97
    */
 
98
    int authalg() const
 
99
    {
 
100
      return mAuthalg;
 
101
    }
 
102
 
 
103
    /**
 
104
      Set Protocols
 
105
    */
 
106
    void setProto( const QStringList & v )
 
107
    {
 
108
        mProto = v;
 
109
    }
 
110
 
 
111
    /**
 
112
      Get Protocols
 
113
    */
 
114
    QStringList proto() const
 
115
    {
 
116
      return mProto;
 
117
    }
 
118
 
 
119
    /**
 
120
      Set Pairwise
 
121
    */
 
122
    void setPairwise( const QStringList & v )
 
123
    {
 
124
        mPairwise = v;
 
125
    }
 
126
 
 
127
    /**
 
128
      Get Pairwise
 
129
    */
 
130
    QStringList pairwise() const
 
131
    {
 
132
      return mPairwise;
 
133
    }
 
134
 
 
135
    /**
 
136
      Set Group
 
137
    */
 
138
    void setGroup( const QStringList & v )
 
139
    {
 
140
        mGroup = v;
 
141
    }
 
142
 
 
143
    /**
 
144
      Get Group
 
145
    */
 
146
    QStringList group() const
 
147
    {
 
148
      return mGroup;
 
149
    }
 
150
 
 
151
    /**
 
152
      Set LEAP Username
 
153
    */
 
154
    void setLeapusername( const QString & v )
 
155
    {
 
156
        mLeapusername = v;
 
157
    }
 
158
 
 
159
    /**
 
160
      Get LEAP Username
 
161
    */
 
162
    QString leapusername() const
 
163
    {
 
164
      return mLeapusername;
 
165
    }
 
166
 
 
167
    /**
 
168
      Set WEP key 0
 
169
    */
 
170
    void setWepkey0( const QString & v )
 
171
    {
 
172
        mWepkey0 = v;
 
173
    }
 
174
 
 
175
    /**
 
176
      Get WEP key 0
 
177
    */
 
178
    QString wepkey0() const
 
179
    {
 
180
      return mWepkey0;
 
181
    }
 
182
 
 
183
    /**
 
184
      Set WEP key 1
 
185
    */
 
186
    void setWepkey1( const QString & v )
 
187
    {
 
188
        mWepkey1 = v;
 
189
    }
 
190
 
 
191
    /**
 
192
      Get WEP key 1
 
193
    */
 
194
    QString wepkey1() const
 
195
    {
 
196
      return mWepkey1;
 
197
    }
 
198
 
 
199
    /**
 
200
      Set WEP key 2
 
201
    */
 
202
    void setWepkey2( const QString & v )
 
203
    {
 
204
        mWepkey2 = v;
 
205
    }
 
206
 
 
207
    /**
 
208
      Get WEP key 2
 
209
    */
 
210
    QString wepkey2() const
 
211
    {
 
212
      return mWepkey2;
 
213
    }
 
214
 
 
215
    /**
 
216
      Set WEP key 3
 
217
    */
 
218
    void setWepkey3( const QString & v )
 
219
    {
 
220
        mWepkey3 = v;
 
221
    }
 
222
 
 
223
    /**
 
224
      Get WEP key 3
 
225
    */
 
226
    QString wepkey3() const
 
227
    {
 
228
      return mWepkey3;
 
229
    }
 
230
 
 
231
    /**
 
232
      Set PSK
 
233
    */
 
234
    void setPsk( const QString & v )
 
235
    {
 
236
        mPsk = v;
 
237
    }
 
238
 
 
239
    /**
 
240
      Get PSK
 
241
    */
 
242
    QString psk() const
 
243
    {
 
244
      return mPsk;
 
245
    }
 
246
 
 
247
    /**
 
248
      Set LEAP Password
 
249
    */
 
250
    void setLeappassword( const QString & v )
 
251
    {
 
252
        mLeappassword = v;
 
253
    }
 
254
 
 
255
    /**
 
256
      Get LEAP Password
 
257
    */
 
258
    QString leappassword() const
 
259
    {
 
260
      return mLeappassword;
 
261
    }
 
262
 
 
263
    /**
 
264
      Set WEP Passphrase
 
265
    */
 
266
    void setWeppassphrase( const QString & v )
 
267
    {
 
268
        mWeppassphrase = v;
 
269
    }
 
270
 
 
271
    /**
 
272
      Get WEP Passphrase
 
273
    */
 
274
    QString weppassphrase() const
 
275
    {
 
276
      return mWeppassphrase;
 
277
    }
 
278
 
 
279
  protected:
 
280
 
 
281
    // 802-11-wireless-security
 
282
    int mSecurityType;
 
283
    int mKeymgmt;
 
284
    uint mWeptxkeyindex;
 
285
    int mAuthalg;
 
286
    QStringList mProto;
 
287
    QStringList mPairwise;
 
288
    QStringList mGroup;
 
289
    QString mLeapusername;
 
290
    QString mWepkey0;
 
291
    QString mWepkey1;
 
292
    QString mWepkey2;
 
293
    QString mWepkey3;
 
294
    QString mPsk;
 
295
    QString mLeappassword;
 
296
    QString mWeppassphrase;
 
297
 
 
298
  private:
 
299
};
 
300
 
 
301
}
 
302
 
 
303
#endif
 
304