locationmgmt/networkgateway/src/netgateway.cpp
changeset 51 95c570bf4a05
parent 0 9cfd9a3ee49c
child 57 3267d9ea3e98
child 65 a796fdeeb33c
equal deleted inserted replaced
45:15a2125aa2f3 51:95c570bf4a05
   150 	RProcess process;
   150 	RProcess process;
   151 	iCloseDownRequestDetector = CLbsCloseDownRequestDetector::NewL(this, process.SecureId());
   151 	iCloseDownRequestDetector = CLbsCloseDownRequestDetector::NewL(this, process.SecureId());
   152 	
   152 	
   153 	iAdmin = CLbsAdmin::NewL();
   153 	iAdmin = CLbsAdmin::NewL();
   154 
   154 
       
   155 #if defined __WINSCW__ && defined SYMBIAN_CELLMO_CENTRIC
       
   156 	TBool locationManagementSupported(EFalse);
       
   157 #else
   155 #ifdef SYMBIAN_FEATURE_MANAGER
   158 #ifdef SYMBIAN_FEATURE_MANAGER
   156 	TBool locationManagementSupported = CFeatureDiscovery::IsFeatureSupportedL(NFeature::KLocationManagement);
   159 	TBool locationManagementSupported = CFeatureDiscovery::IsFeatureSupportedL(NFeature::KLocationManagement);
   157 #else
   160 #else
   158 	TBool locationManagementSupported(ETrue);
   161 	TBool locationManagementSupported(ETrue);
   159 #endif
   162 #endif // SYMBIAN_FEATURE_MANAGER
       
   163 #endif // __WINSCW__ && defined SYMBIAN_CELLMO_CENTRIC
       
   164 
   160 	if(locationManagementSupported)
   165 	if(locationManagementSupported)
   161 		{
   166 		{
   162 		iNetworkLocationChannel = CNetworkLocationChannel::NewL(*this);
   167 		iNetworkLocationChannel = CNetworkLocationChannel::NewL(*this);
   163 		iAgpsChannel = CAgpsChannel::NewL(*this);
   168 		iAgpsChannel = CAgpsChannel::NewL(*this);
   164 		iNetworkRegistrationStatusMonitor = CNetworkRegistrationStatusMonitor::NewL(*this);
   169 		iNetworkRegistrationStatusMonitor = CNetworkRegistrationStatusMonitor::NewL(*this);