realtimenetprots/sipfw/ProfileAgent/Server/Src/SipProfileCacheItem.cpp
branchRCL_3
changeset 20 a7d1e54a7332
parent 16 43c4dec3cb1f
child 26 822e1f077722
equal deleted inserted replaced
19:8517a9ac4a23 20:a7d1e54a7332
    85 	{
    85 	{
    86 	iIsRfsInprogress = EFalse;
    86 	iIsRfsInprogress = EFalse;
    87 	iIsVpnInUse = EFalse;
    87 	iIsVpnInUse = EFalse;
    88 	iInitialApnSelected = EFalse;
    88 	iInitialApnSelected = EFalse;
    89 	iApnSwitchEnabled = EFalse;
    89 	iApnSwitchEnabled = EFalse;
       
    90 	iIsOfflineInitiated = EFalse;
    90 	iDeltaTimerEntry.Set(iDeltaTimerCallBack);
    91 	iDeltaTimerEntry.Set(iDeltaTimerCallBack);
    91 	}
    92 	}
    92 
    93 
    93 // -----------------------------------------------------------------------------
    94 // -----------------------------------------------------------------------------
    94 // CSIPProfileCacheItem::ConstructL
    95 // CSIPProfileCacheItem::ConstructL
  1355 	// State is informed as ERegistrationInProgress to get registration
  1356 	// State is informed as ERegistrationInProgress to get registration
  1356 	// error event event in client.
  1357 	// error event event in client.
  1357 	iServerCore.SendErrorEvent(
  1358 	iServerCore.SendErrorEvent(
  1358 		*this, CSIPConcreteProfile::ERegistrationInProgress, KErrCancel );
  1359 		*this, CSIPConcreteProfile::ERegistrationInProgress, KErrCancel );
  1359 	}
  1360 	}
  1360 // -----------------------------------------------------------------------------
       
  1361 // CSIPProfileCacheItem::ResetShutdownvariable
       
  1362 // -----------------------------------------------------------------------------
       
  1363 //
       
  1364 void CSIPProfileCacheItem::ResetShutdownvariable()
       
  1365     {    
       
  1366     iIsShutdownInitiated = EFalse;
       
  1367     }
       
  1368 
  1361 
  1369 // -----------------------------------------------------------------------------
  1362 // -----------------------------------------------------------------------------
  1370 // CSIPProfileCacheItem::DefaultSNAPL
  1363 // CSIPProfileCacheItem::DefaultSNAPL
  1371 // This function will return the ID of the default SNAP.
  1364 // This function will return the ID of the default SNAP.
  1372 // -----------------------------------------------------------------------------
  1365 // -----------------------------------------------------------------------------
  1382 		cmManager.ReadDefConnL( defConn );
  1375 		cmManager.ReadDefConnL( defConn );
  1383 		aSnapId = defConn.iId;	
  1376 		aSnapId = defConn.iId;	
  1384 		PROFILE_DEBUG3("CSIPProfileCacheItem::DefaultSNAPL with Value: ", aSnapId)
  1377 		PROFILE_DEBUG3("CSIPProfileCacheItem::DefaultSNAPL with Value: ", aSnapId)
  1385 		CleanupStack::PopAndDestroy();
  1378 		CleanupStack::PopAndDestroy();
  1386 	}
  1379 	}
       
  1380 
       
  1381 // -----------------------------------------------------------------------------
       
  1382 // CSIPProfileCacheItem::OfflineInitiated
       
  1383 // -----------------------------------------------------------------------------
       
  1384 //
       
  1385 void CSIPProfileCacheItem::OfflineInitiated(TBool aOfflineInitiated)
       
  1386     {
       
  1387     if(aOfflineInitiated)
       
  1388         {
       
  1389         iIsOfflineInitiated = ETrue;
       
  1390         iCurrentState->ShutdownInitiated(*this);
       
  1391         }
       
  1392     else
       
  1393         iIsOfflineInitiated = EFalse;    
       
  1394     }
       
  1395 
       
  1396 // -----------------------------------------------------------------------------
       
  1397 // CSIPProfileCacheItem::IsOfflineInitiated
       
  1398 // -----------------------------------------------------------------------------
       
  1399 //
       
  1400 TBool CSIPProfileCacheItem::IsOfflineInitiated() const
       
  1401     {
       
  1402     return iIsOfflineInitiated;
       
  1403     }
       
  1404