realtimenetprots/sipfw/ProfileAgent/Server/Src/SipProfileServerCore.cpp
changeset 55 36ea1f90a3d8
parent 50 a003f0e60a07
equal deleted inserted replaced
54:e4420734a2a0 55:36ea1f90a3d8
  2359 //
  2359 //
  2360 TBool CSIPProfileServerCore::CheckApnSwitchEnabledL( const CSIPConcreteProfile& aProfile )
  2360 TBool CSIPProfileServerCore::CheckApnSwitchEnabledL( const CSIPConcreteProfile& aProfile )
  2361     {
  2361     {
  2362     PROFILE_DEBUG1("CSIPProfileServerCore::CheckApnSwitchEnabledL" )
  2362     PROFILE_DEBUG1("CSIPProfileServerCore::CheckApnSwitchEnabledL" )
  2363     TUint32 profileId = aProfile.Id();
  2363     TUint32 profileId = aProfile.Id();
  2364     
  2364     TBool result = EFalse;
  2365     PROFILE_DEBUG3("CSIPProfileServerCore::CheckApnSwitchEnabledL, IapId", profileId )
  2365     PROFILE_DEBUG3("CSIPProfileServerCore::CheckApnSwitchEnabledL, IapId", profileId )
  2366     
  2366     
  2367     CSIPProfileCacheItem* item = ProfileCacheItem(profileId); 
  2367     CSIPProfileCacheItem* item = ProfileCacheItem(profileId); 
  2368     TUint32 snapId;
  2368     TUint32 snapId;
  2369     if(item && !item->IsSNAPConfigured( snapId )&& !item->IsApnSwitchEnabled())
  2369     if(item && !item->IsSNAPConfigured( snapId )&& !item->IsApnSwitchEnabled())
  2378             {
  2378             {
  2379             TBool isIapGPRS = iApnManager->IsIapGPRSL( aProfile.IapId() );
  2379             TBool isIapGPRS = iApnManager->IsIapGPRSL( aProfile.IapId() );
  2380             if (isIapGPRS)
  2380             if (isIapGPRS)
  2381             item->SetApnSwitchStatus(ETrue); //  Set Switch APN Enabled
  2381             item->SetApnSwitchStatus(ETrue); //  Set Switch APN Enabled
  2382             }
  2382             }
       
  2383             result = item->IsApnSwitchEnabled();
  2383         } 
  2384         } 
  2384     PROFILE_DEBUG3("CSIPProfileServerCore::CheckApnSwitchEnabledL returns"
  2385     PROFILE_DEBUG3("CSIPProfileServerCore::CheckApnSwitchEnabledL returns"
  2385                                                 ,item->IsApnSwitchEnabled())
  2386                                                 ,result)
  2386     return item->IsApnSwitchEnabled(); 
  2387     return result; 
  2387     }
  2388     }
  2388 
  2389 
  2389 // -----------------------------------------------------------------------------
  2390 // -----------------------------------------------------------------------------
  2390 // CSIPProfileServerCore::CheckIapSettings
  2391 // CSIPProfileServerCore::CheckIapSettings
  2391 // -----------------------------------------------------------------------------
  2392 // -----------------------------------------------------------------------------
  2481             allowed = EFalse;
  2482             allowed = EFalse;
  2482             }
  2483             }
  2483         }
  2484         }
  2484     return allowed;
  2485     return allowed;
  2485     }
  2486     }
       
  2487 
       
  2488 // ----------------------------------------------------------------------------
       
  2489 // CSIPProfileServerCore::GetProfileCacheCount() const
       
  2490 // ----------------------------------------------------------------------------
       
  2491 //
       
  2492 TInt CSIPProfileServerCore::GetProfileCacheCount() const
       
  2493     {
       
  2494     return iProfileCache.Count();
       
  2495     }