realtimenetprots/sipfw/ProfileAgent/Server/Src/SipProfileServerCore.cpp
changeset 55 36ea1f90a3d8
parent 50 a003f0e60a07
--- a/realtimenetprots/sipfw/ProfileAgent/Server/Src/SipProfileServerCore.cpp	Tue Oct 19 05:33:24 2010 +0530
+++ b/realtimenetprots/sipfw/ProfileAgent/Server/Src/SipProfileServerCore.cpp	Thu Oct 21 15:53:21 2010 +0530
@@ -2361,7 +2361,7 @@
     {
     PROFILE_DEBUG1("CSIPProfileServerCore::CheckApnSwitchEnabledL" )
     TUint32 profileId = aProfile.Id();
-    
+    TBool result = EFalse;
     PROFILE_DEBUG3("CSIPProfileServerCore::CheckApnSwitchEnabledL, IapId", profileId )
     
     CSIPProfileCacheItem* item = ProfileCacheItem(profileId); 
@@ -2380,10 +2380,11 @@
             if (isIapGPRS)
             item->SetApnSwitchStatus(ETrue); //  Set Switch APN Enabled
             }
+            result = item->IsApnSwitchEnabled();
         } 
     PROFILE_DEBUG3("CSIPProfileServerCore::CheckApnSwitchEnabledL returns"
-                                                ,item->IsApnSwitchEnabled())
-    return item->IsApnSwitchEnabled(); 
+                                                ,result)
+    return result; 
     }
 
 // -----------------------------------------------------------------------------
@@ -2483,3 +2484,12 @@
         }
     return allowed;
     }
+
+// ----------------------------------------------------------------------------
+// CSIPProfileServerCore::GetProfileCacheCount() const
+// ----------------------------------------------------------------------------
+//
+TInt CSIPProfileServerCore::GetProfileCacheCount() const
+    {
+    return iProfileCache.Count();
+    }