|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Expanded EAP type QT data structure |
|
16 * |
|
17 */ |
|
18 |
|
19 /* |
|
20 * %version: 1 % |
|
21 */ |
|
22 |
|
23 #ifndef EAPQTEXPANDEDEAPTYPE_H |
|
24 #define EAPQTEXPANDEDEAPTYPE_H |
|
25 |
|
26 #include <QByteArray> |
|
27 #include <QMetaType> |
|
28 |
|
29 #ifdef BUILD_EAP_QT_PLUGIN_INFO_DLL |
|
30 #define EAP_QT_EXPANDED_EAP_TYPE_EXPORT Q_DECL_EXPORT |
|
31 #else |
|
32 #define EAP_QT_EXPANDED_EAP_TYPE_EXPORT Q_DECL_IMPORT |
|
33 #endif |
|
34 |
|
35 class EapQtExpandedEapTypePrivate; |
|
36 // http://www.iana.org/assignments/eap-numbers |
|
37 class EAP_QT_EXPANDED_EAP_TYPE_EXPORT EapQtExpandedEapType |
|
38 { |
|
39 public: |
|
40 enum Type |
|
41 { |
|
42 TypeUndefined = 0, |
|
43 TypeEapAka, |
|
44 TypeEapFast, |
|
45 TypeEapGtc, |
|
46 TypeLeap, |
|
47 TypeEapMschapv2, |
|
48 TypePeap, |
|
49 TypeEapSim, |
|
50 TypeEapTls, |
|
51 TypeEapTtls, |
|
52 TypeProtectedSetup, |
|
53 TypePap, |
|
54 TypePlainMschapv2, |
|
55 // keep this as the last one |
|
56 TypeLast |
|
57 }; |
|
58 |
|
59 EapQtExpandedEapType(); |
|
60 EapQtExpandedEapType(const Type type); |
|
61 EapQtExpandedEapType(const QByteArray data); |
|
62 EapQtExpandedEapType(const EapQtExpandedEapType & type); |
|
63 ~EapQtExpandedEapType(); |
|
64 |
|
65 QByteArray eapExpandedData() const; |
|
66 Type type() const; |
|
67 |
|
68 EapQtExpandedEapType &operator=(const EapQtExpandedEapType &type); |
|
69 bool operator ==(const EapQtExpandedEapType &right_type_value) const; |
|
70 bool operator !=(const EapQtExpandedEapType &right_type_value) const; |
|
71 |
|
72 private: |
|
73 QScopedPointer<EapQtExpandedEapTypePrivate> d_ptr; |
|
74 }; |
|
75 |
|
76 // Make the class known to QMetaType to support using QVariant |
|
77 Q_DECLARE_METATYPE(EapQtExpandedEapType) |
|
78 |
|
79 #endif /* EAPQTEXTENDEDEAPTYPE_H */ |