equal
deleted
inserted
replaced
52 * navigation information. |
52 * navigation information. |
53 */ |
53 */ |
54 class WlanSecuritySetting |
54 class WlanSecuritySetting |
55 { |
55 { |
56 public: |
56 public: |
|
57 //! Enumerated value defined by CMManagerShim::WlanSecMode |
57 int mode; |
58 int mode; |
|
59 |
|
60 //! true, if passkey is required, false otherwise |
58 bool usePsk; |
61 bool usePsk; |
|
62 |
|
63 /*! |
|
64 * Identifier of the next page associated with this security mode. |
|
65 * Page ids are defined in WlanWizardPageInternal::WlanPageIds |
|
66 */ |
59 int nextPageId; |
67 int nextPageId; |
60 |
68 |
61 bool operator==(const WlanSecuritySetting& setting) const { |
69 bool operator==(const WlanSecuritySetting& setting) const { |
62 return (mode == setting.mode && |
70 return (mode == setting.mode && |
63 usePsk == setting.usePsk && |
71 usePsk == setting.usePsk && |
70 * setup suppport information. |
78 * setup suppport information. |
71 */ |
79 */ |
72 class WlanNetworkSetting |
80 class WlanNetworkSetting |
73 { |
81 { |
74 public: |
82 public: |
|
83 //! Enumerated value defined by CMManagerShim::WlanConnMode |
75 int mode; |
84 int mode; |
|
85 |
|
86 //! true, if hidden, false otherwise |
76 bool hidden; |
87 bool hidden; |
|
88 |
|
89 //! true, if supported, false otherwise |
77 bool wpsSupported; |
90 bool wpsSupported; |
78 |
91 |
79 bool operator==(const WlanNetworkSetting& setting) const { |
92 bool operator==(const WlanNetworkSetting& setting) const { |
80 return (mode == setting.mode && |
93 return (mode == setting.mode && |
81 hidden == setting.hidden && |
94 hidden == setting.hidden && |
108 void build(const QList<WlanScanResult> &results); |
121 void build(const QList<WlanScanResult> &results); |
109 const WlanSecuritySetting &getSecMode(WlanNetworkSetting netMode, int index = 0) const; |
122 const WlanSecuritySetting &getSecMode(WlanNetworkSetting netMode, int index = 0) const; |
110 int netModes() const; |
123 int netModes() const; |
111 int secModes(WlanNetworkSetting netMode) const; |
124 int secModes(WlanNetworkSetting netMode) const; |
112 QList<WlanNetworkSetting> getNetModes() const; |
125 QList<WlanNetworkSetting> getNetModes() const; |
|
126 bool wpsSelected() const; |
113 |
127 |
114 private: |
128 private: |
115 // Disabling implicit assignment operator |
129 // Disabling implicit assignment operator |
116 WlanWizardScanList &operator=(const WlanWizardScanList &); |
130 WlanWizardScanList &operator=(const WlanWizardScanList &); |
117 |
131 |
118 private: |
132 private: |
119 QHash<WlanNetworkSetting, QList<WlanSecuritySetting> > mOpenOptions; |
133 QHash<WlanNetworkSetting, QList<WlanSecuritySetting> > mOpenOptions; |
|
134 bool mWpsSelected; |
120 }; |
135 }; |
121 |
136 |
122 /*! |
137 /*! |
123 * This macro makes WlanWizardScanList QVariant-compatible. |
138 * This macro makes WlanWizardScanList QVariant-compatible. |
124 */ |
139 */ |