equal
deleted
inserted
replaced
162 CIPProtoDeftSubConnectionProvider::CIPProtoDeftSubConnectionProvider(ESock::CSubConnectionProviderFactoryBase& aFactory) |
162 CIPProtoDeftSubConnectionProvider::CIPProtoDeftSubConnectionProvider(ESock::CSubConnectionProviderFactoryBase& aFactory) |
163 :CCoreSubConnectionProvider(aFactory, IPProtoDeftSCpr::stateMap::Self()), |
163 :CCoreSubConnectionProvider(aFactory, IPProtoDeftSCpr::stateMap::Self()), |
164 ALegacySubConnectionActiveApiExt(this), |
164 ALegacySubConnectionActiveApiExt(this), |
165 TIfStaticFetcherNearestInHierarchy(this), |
165 TIfStaticFetcherNearestInHierarchy(this), |
166 iNotify(NULL), |
166 iNotify(NULL), |
167 iControl(NULL) |
167 iControl(NULL), |
|
168 iNetworkConfigurationState(EFalse) |
168 { |
169 { |
169 LOG_NODE_CREATE(KIPProtoDeftScprTag, CIPProtoDeftSubConnectionProvider); |
170 LOG_NODE_CREATE(KIPProtoDeftScprTag, CIPProtoDeftSubConnectionProvider); |
170 } |
171 } |
171 |
172 |
172 void CIPProtoDeftSubConnectionProvider::ConstructL() |
173 void CIPProtoDeftSubConnectionProvider::ConstructL() |
193 return prov; |
194 return prov; |
194 } |
195 } |
195 |
196 |
196 CIPProtoDeftSubConnectionProvider::~CIPProtoDeftSubConnectionProvider() |
197 CIPProtoDeftSubConnectionProvider::~CIPProtoDeftSubConnectionProvider() |
197 { |
198 { |
|
199 // In case network is not configured i.e. AP might get close in case for WIFi for an example, DHCP registration |
|
200 //will get failed. There is not point listening to such Progresses. So can notification and delete |
|
201 //delete CNetCfgExtNotify pointer). |
|
202 if(iNetworkConfigurationState == EFalse) |
|
203 { |
|
204 if(iNotify) |
|
205 { |
|
206 delete iNotify; |
|
207 iNotify = NULL; |
|
208 } |
|
209 } |
198 if (iControl) |
210 if (iControl) |
199 delete iControl; |
211 delete iControl; |
|
212 //incase registration is successful and Network is configured. |
200 if (iNotify) |
213 if (iNotify) |
|
214 { |
201 delete iNotify; |
215 delete iNotify; |
|
216 iNotify = NULL; |
|
217 } |
202 |
218 |
203 LOG_NODE_DESTROY(KIPProtoDeftScprTag, CIPProtoDeftSubConnectionProvider); |
219 LOG_NODE_DESTROY(KIPProtoDeftScprTag, CIPProtoDeftSubConnectionProvider); |
204 } |
220 } |
205 |
221 |
206 void CIPProtoDeftSubConnectionProvider::ReturnInterfacePtrL(ADataMonitoringProtocolReq*& aInterface) |
222 void CIPProtoDeftSubConnectionProvider::ReturnInterfacePtrL(ADataMonitoringProtocolReq*& aInterface) |