sysstatemgmt/systemstatereferenceplugins/custcmd/src/cmdpublishstartupmode.cpp
branchRCL_3
changeset 20 1ddbe54d0645
parent 0 4e1aa6a622a0
equal deleted inserted replaced
19:94cb00198351 20:1ddbe54d0645
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   148                  iHiddenResetPckg())
   148                  iHiddenResetPckg())
   149                 {
   149                 {
   150                 DEBUGPRINT1A("Hidden reset detected");
   150                 DEBUGPRINT1A("Hidden reset detected");
   151                 startupReason = EUnknownReset;
   151                 startupReason = EUnknownReset;
   152                 }
   152                 }
       
   153 			else
       
   154 				{
       
   155 				err = iRepository->Set(KStartupDevLockStatus, EStartupDevLockNotSucess);
       
   156 				DEBUGPRINT1A("Normal Device Startup");
       
   157 				DEBUGPRINT2A("Setting KStartupDevLockStatus to EStartupDevLockNotSucess completed with error %d", err);
       
   158 				}
   153             
   159             
   154             // Publish startup reason
   160             // Publish startup reason
   155             err = RProperty::Set(CSsmUiSpecific::StartupPSUid(), KPSStartupReason, startupReason);
   161             err = RProperty::Set(CSsmUiSpecific::StartupPSUid(), KPSStartupReason, startupReason);
   156             if(KErrNone != err)
   162             if(KErrNone != err)
   157                 {
   163                 {