equal
deleted
inserted
replaced
44 */ |
44 */ |
45 |
45 |
46 // External function prototypes |
46 // External function prototypes |
47 |
47 |
48 // Local constants |
48 // Local constants |
|
49 const QString iapIdentifierPrefix = "I_"; |
49 |
50 |
50 // ======== LOCAL FUNCTIONS ======== |
51 // ======== LOCAL FUNCTIONS ======== |
51 |
52 |
52 // ======== MEMBER FUNCTIONS ======== |
53 // ======== MEMBER FUNCTIONS ======== |
53 |
54 |
84 Destructor. |
85 Destructor. |
85 */ |
86 */ |
86 WlanLoginEngine::~WlanLoginEngine() |
87 WlanLoginEngine::~WlanLoginEngine() |
87 { |
88 { |
88 OstTraceFunctionEntry0(WLANLOGINENGINE_DESTRUCTOR_ENTRY); |
89 OstTraceFunctionEntry0(WLANLOGINENGINE_DESTRUCTOR_ENTRY); |
89 |
90 |
90 mNetworkSession->close(); |
91 if (mNetworkSession) { |
|
92 mNetworkSession->close(); |
|
93 } |
91 |
94 |
92 OstTraceFunctionExit0(WLANLOGINENGINE_DESTRUCTOR_EXIT); |
95 OstTraceFunctionExit0(WLANLOGINENGINE_DESTRUCTOR_EXIT); |
93 } |
96 } |
94 |
97 |
95 |
98 |
226 OstTraceFunctionEntry0(WLANLOGINENGINE_OPENSESSION_ENTRY); |
229 OstTraceFunctionEntry0(WLANLOGINENGINE_OPENSESSION_ENTRY); |
227 |
230 |
228 setEngineState(WlanLoginEngine::OpeningNetworkSession); |
231 setEngineState(WlanLoginEngine::OpeningNetworkSession); |
229 |
232 |
230 //Get configuration that matches the provided IAP |
233 //Get configuration that matches the provided IAP |
231 QNetworkConfiguration netConfiguration = mNetConfigurationManager->configurationFromIdentifier(QString::number(mIap)); |
234 //Note that identifier must be given in format I_ + IAP ID |
|
235 QNetworkConfiguration netConfiguration = mNetConfigurationManager->configurationFromIdentifier(iapIdentifierPrefix + QString::number(mIap)); |
232 |
236 |
233 OstTrace1( |
237 OstTrace1( |
234 TRACE_NORMAL, |
238 TRACE_NORMAL, |
235 WLANLOGINENGINE_OPENSESSION_CONFIGURATION_IDENTIFIER_TRACE, |
239 WLANLOGINENGINE_OPENSESSION_CONFIGURATION_IDENTIFIER_TRACE, |
236 "WlanLoginEngine::openSession;netConfiguration identifier=%d", |
240 "WlanLoginEngine::openSession;netConfiguration identifier=%d", |