15 * EAP method configuration QT interface |
15 * EAP method configuration QT interface |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 /* |
19 /* |
20 * %version: 1 % |
20 * %version: 21 % |
21 */ |
21 */ |
22 |
22 |
23 #include <QList> |
23 #include <QList> |
24 |
24 |
25 #include "eapqtconfiginterface.h" |
25 #include <eapqtconfiginterface.h> |
|
26 #include <eapqtexpandedeaptype.h> |
|
27 |
|
28 #include "eapqtconfiginterface_p.h" |
26 #include "cpeapplugininterface.h" |
29 #include "cpeapplugininterface.h" |
27 #include "eapqtplugininfo.h" |
|
28 |
30 |
29 //---------------------------------------------------------------------------- |
31 //---------------------------------------------------------------------------- |
30 // EapQtConfigInterface |
32 // EapQtConfigInterface |
31 //---------------------------------------------------------------------------- |
33 //---------------------------------------------------------------------------- |
32 |
34 |
33 // stub implementation for now |
|
34 |
35 |
35 EapQtConfigInterface::EapQtConfigInterface(const EapBearerType /* bearerType */, const int /* databaseIndex */) |
36 EapQtConfigInterface::EapQtConfigInterface() : |
|
37 d_ptr(new EapQtConfigInterfacePrivate) |
|
38 { |
|
39 } |
|
40 |
|
41 EapQtConfigInterface::EapQtConfigInterface(const EapBearerType bearerType, const int iapId) : |
|
42 d_ptr(new EapQtConfigInterfacePrivate(bearerType, iapId)) |
36 { |
43 { |
37 } |
44 } |
38 |
45 |
39 EapQtConfigInterface::~EapQtConfigInterface() |
46 EapQtConfigInterface::~EapQtConfigInterface() |
40 { |
47 { |
|
48 // d_ptr is scoped pointer, deleted automatically |
|
49 } |
|
50 |
|
51 bool EapQtConfigInterface::setConfigurationReference(const int iapId) const |
|
52 { |
|
53 return d_ptr->setConfigurationReference(iapId); |
41 } |
54 } |
42 |
55 |
43 QList<EapQtPluginInfo> EapQtConfigInterface::supportedOuterTypes() const |
56 QList<EapQtPluginInfo> EapQtConfigInterface::supportedOuterTypes() const |
44 { |
57 { |
45 // stub |
58 return d_ptr->supportedOuterTypes(); |
46 QList<EapQtPluginInfo> tmp; |
|
47 return tmp; |
|
48 } |
59 } |
49 |
60 |
50 CpBaseSettingView *EapQtConfigInterface::uiInstance(const EapQtPluginHandle& /* pluginInfo */) const |
61 QList<EapQtPluginInfo> EapQtConfigInterface::supportedInnerTypes(const EapQtPluginHandle outerType) const |
51 { |
62 { |
52 // stub |
63 return d_ptr->supportedInnerTypes(outerType); |
53 return NULL; |
|
54 } |
64 } |
|
65 |
|
66 QList<EapQtCertificateInfo> EapQtConfigInterface::certificateAuthorityCertificates() const |
|
67 { |
|
68 return d_ptr->certificateAuthorityCertificates(); |
|
69 } |
|
70 |
|
71 QList<EapQtCertificateInfo> EapQtConfigInterface::userCertificates() const |
|
72 { |
|
73 return d_ptr->userCertificates(); |
|
74 } |
|
75 |
|
76 CpBaseSettingView *EapQtConfigInterface::uiInstance(const EapQtPluginHandle& outerHandle, |
|
77 const EapQtPluginHandle &pluginHandle) const |
|
78 { |
|
79 return d_ptr->uiInstance(outerHandle, pluginHandle); |
|
80 } |
|
81 |
|
82 QList<EapQtPluginHandle> EapQtConfigInterface::selectedOuterTypes() const |
|
83 { |
|
84 return d_ptr->selectedOuterTypes(); |
|
85 } |
|
86 |
|
87 bool EapQtConfigInterface::isSupportedOuterType(const EapQtPluginHandle& handle) const |
|
88 { |
|
89 return d_ptr->isSupportedOuterType(handle); |
|
90 } |
|
91 |
|
92 bool EapQtConfigInterface::isSupportedInnerType(const EapQtPluginHandle& outerHandle, |
|
93 const EapQtPluginHandle& innerHandle) const |
|
94 { |
|
95 return d_ptr->isSupportedInnerType(outerHandle, innerHandle); |
|
96 } |
|
97 |
|
98 bool EapQtConfigInterface::setSelectedOuterTypes(const QList<EapQtPluginHandle>& outerHandles) const |
|
99 { |
|
100 return d_ptr->setSelectedOuterTypes(outerHandles); |
|
101 } |
|
102 |
|
103 bool EapQtConfigInterface::readConfiguration(const EapQtPluginHandle& outerHandle, |
|
104 const EapQtPluginHandle& pluginHandle, EapQtConfig &config) const |
|
105 { |
|
106 return d_ptr->readConfiguration(outerHandle, pluginHandle, config); |
|
107 } |
|
108 |
|
109 bool EapQtConfigInterface::saveConfiguration(const EapQtPluginHandle& pluginInfo, |
|
110 EapQtConfig &config) const |
|
111 { |
|
112 return d_ptr->saveConfiguration(pluginInfo, config); |
|
113 } |
|
114 |
|
115 bool EapQtConfigInterface::deleteConfiguration() const |
|
116 { |
|
117 return d_ptr->deleteConfiguration(); |
|
118 } |
|
119 |
|
120 EapQtValidator *EapQtConfigInterface::validatorEap(EapQtExpandedEapType type, |
|
121 EapQtConfig::SettingsId id) |
|
122 { |
|
123 return d_ptr->validatorEap(type, id); |
|
124 } |