coreapplicationuis/SysAp/Src/OfflineModeController/SysApOfflineModeControllerImpl.cpp
--- a/coreapplicationuis/SysAp/Src/OfflineModeController/SysApOfflineModeControllerImpl.cpp Fri Jun 11 13:48:03 2010 +0300
+++ b/coreapplicationuis/SysAp/Src/OfflineModeController/SysApOfflineModeControllerImpl.cpp Wed Jun 23 18:22:59 2010 +0300
@@ -54,9 +54,9 @@
{
TRACES( RDebug::Print( _L("CSysApOfflineModeController::ConstructL") ) );
// Check the active profile
- TInt activeProfile( iSysApAppUi.ActiveProfileId() );
- activeProfile = iSysApAppUi.ActiveProfileId();
- if ( activeProfile == KOfflineModeProfileId )
+// TInt activeProfile( iSysApAppUi.ActiveProfileId() );
+// activeProfile = iSysApAppUi.ActiveProfileId();
+// if ( activeProfile == KOfflineModeProfileId )
{
iOfflineModeActive = ETrue;
}
@@ -104,7 +104,7 @@
if ( err )
{
- iSysApAppUi.RestoreProfileL( EFalse );
+// iSysApAppUi.RestoreProfileL( EFalse );
iSysApAppUi.ShowUiNoteL( ECannotActivateOfflineModeNote );
}
else
@@ -144,7 +144,7 @@
if ( err )
{
- iSysApAppUi.RestoreProfileL( ETrue );
+// iSysApAppUi.RestoreProfileL( ETrue );
iSysApAppUi.ShowUiNoteL( ECannotDeactivateOfflineModeNote );
}
else
@@ -233,6 +233,7 @@
TInt btToBeActivated = iSysApAppUi.CenRepController().GetInt( KCRUidCoreApplicationUIsSysAp,
KSysApBtStatusBeforeOfflineMode,
&err );
+
if ( err )
{
TRACES( RDebug::Print( _L("CSysApOfflineModeController::BtActiveBeforeOfflineMode: ERROR: %d" ), err ) );
@@ -241,6 +242,7 @@
else
{
return ( TBool ) btToBeActivated;
+ //return ETrue;
}
}
@@ -253,6 +255,7 @@
return BtActiveBeforeOfflineMode();
}
+
// End of File