equal
deleted
inserted
replaced
71 class AccessPointsAvailabilityScanner; |
71 class AccessPointsAvailabilityScanner; |
72 |
72 |
73 class SymbianNetworkConfigurationPrivate : public QNetworkConfigurationPrivate |
73 class SymbianNetworkConfigurationPrivate : public QNetworkConfigurationPrivate |
74 { |
74 { |
75 public: |
75 public: |
76 enum Bearer { |
|
77 BearerEthernet, |
|
78 BearerWLAN, |
|
79 Bearer2G, |
|
80 BearerCDMA2000, |
|
81 BearerWCDMA, |
|
82 BearerHSPA, |
|
83 BearerBluetooth, |
|
84 BearerWiMAX, |
|
85 BearerUnknown = -1 |
|
86 }; |
|
87 |
|
88 SymbianNetworkConfigurationPrivate(); |
76 SymbianNetworkConfigurationPrivate(); |
89 ~SymbianNetworkConfigurationPrivate(); |
77 ~SymbianNetworkConfigurationPrivate(); |
90 |
|
91 QString bearerName() const; |
|
92 |
78 |
93 inline TUint32 numericIdentifier() const |
79 inline TUint32 numericIdentifier() const |
94 { |
80 { |
95 QMutexLocker locker(&mutex); |
81 QMutexLocker locker(&mutex); |
96 return numericId; |
82 return numericId; |
107 QMutexLocker locker(&mutex); |
93 QMutexLocker locker(&mutex); |
108 return mappingName; |
94 return mappingName; |
109 } |
95 } |
110 |
96 |
111 QString mappingName; |
97 QString mappingName; |
112 |
|
113 Bearer bearer; |
|
114 |
98 |
115 // So called IAP id from the platform. Remains constant as long as the |
99 // So called IAP id from the platform. Remains constant as long as the |
116 // platform is aware of the configuration ie. it is stored in the databases |
100 // platform is aware of the configuration ie. it is stored in the databases |
117 // --> does not depend on whether connections are currently open or not. |
101 // --> does not depend on whether connections are currently open or not. |
118 // In practice is the same for the lifetime of the QNetworkConfiguration. |
102 // In practice is the same for the lifetime of the QNetworkConfiguration. |
152 |
136 |
153 QNetworkConfigurationPrivatePointer defaultConfiguration(); |
137 QNetworkConfigurationPrivatePointer defaultConfiguration(); |
154 |
138 |
155 QStringList accessPointConfigurationIdentifiers(); |
139 QStringList accessPointConfigurationIdentifiers(); |
156 |
140 |
|
141 QNetworkConfigurationPrivatePointer configurationFromSsid(const QString &ssid); |
|
142 |
|
143 // For QNetworkSessionPrivateImpl to indicate about state changes |
|
144 void configurationStateChangeReport(TUint32 accessPointId, QNetworkSession::State newState); |
|
145 |
157 Q_SIGNALS: |
146 Q_SIGNALS: |
158 void onlineStateChanged(bool isOnline); |
147 void onlineStateChanged(bool isOnline); |
159 |
148 |
160 void configurationStateChanged(TUint32 accessPointId, TUint32 connMonId, |
149 void configurationStateChanged(quint32 accessPointId, quint32 connMonId, |
161 QNetworkSession::State newState); |
150 QNetworkSession::State newState); |
162 |
151 |
163 public Q_SLOTS: |
152 public Q_SLOTS: |
164 void updateConfigurations(); |
153 void updateConfigurations(); |
165 void delayedConfigurationUpdate(); |
154 void delayedConfigurationUpdate(); |
201 void DoCancel(); |
190 void DoCancel(); |
202 |
191 |
203 private: |
192 private: |
204 // MConnectionMonitorObserver |
193 // MConnectionMonitorObserver |
205 void EventL(const CConnMonEventBase& aEvent); |
194 void EventL(const CConnMonEventBase& aEvent); |
206 // For QNetworkSessionPrivate to indicate about state changes |
195 #ifdef SNAP_FUNCTIONALITY_AVAILABLE |
207 void configurationStateChangeReport(TUint32 accessPointId, |
196 QNetworkConfigurationPrivatePointer configurationFromEasyWlan(TUint32 apId, |
208 QNetworkSession::State newState); |
197 TUint connectionId); |
209 #ifdef OCC_FUNCTIONALITY_AVAILABLE |
|
210 QNetworkConfigurationPrivatePointer configurationFromEasyWlan(TUint32 apId, TUint connectionId); |
|
211 #endif |
198 #endif |
212 |
199 |
213 private: // Data |
200 private: // Data |
214 bool iFirstUpdate; |
201 bool iFirstUpdate; |
215 CCommsDatabase* ipCommsDB; |
202 CCommsDatabase* ipCommsDB; |
225 |
212 |
226 QNetworkConfigurationPrivatePointer defaultConfig; |
213 QNetworkConfigurationPrivatePointer defaultConfig; |
227 |
214 |
228 friend class QNetworkSessionPrivate; |
215 friend class QNetworkSessionPrivate; |
229 friend class AccessPointsAvailabilityScanner; |
216 friend class AccessPointsAvailabilityScanner; |
230 friend class QNetworkSessionPrivateImpl; |
|
231 |
217 |
232 #ifdef SNAP_FUNCTIONALITY_AVAILABLE |
218 #ifdef SNAP_FUNCTIONALITY_AVAILABLE |
233 RCmManager iCmManager; |
219 RCmManager iCmManager; |
234 #endif |
220 #endif |
235 }; |
221 }; |