sysstatemgmt/systemstatereferenceplugins/custcmd/src/swppolicy_simstatus.cpp
changeset 12 e978f818f9bd
parent 0 4e1aa6a622a0
equal deleted inserted replaced
0:4e1aa6a622a0 12:e978f818f9bd
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-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".
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 // Name        : strtsimstatusmgr.cpp
       
    15 // Part of     : System Startup / Starter
       
    16 // Implementation of TStrtSimStatusMgr class.
    14 // Implementation of TStrtSimStatusMgr class.
    17 // Version     : %version: 7 %
       
    18 // This material, including documentation and any related computer
       
    19 // programs, is protected by copyright controlled by Nokia.  All
       
    20 // rights are reserved.  Copying, including reproducing, storing,
       
    21 // adapting or translating, any or all of this material requires the
       
    22 // prior written consent of Nokia.  This material also contains
       
    23 // confidential information which may not be disclosed to others
       
    24 // without the prior written consent of Nokia.
       
    25 // Template version: 4.1
       
    26 // Nokia Core OS *
       
    27 //
    15 //
    28 
    16 
    29 
    17 
    30 
    18 
    31 
    19 
    35  @released
    23  @released
    36 */
    24 */
    37 
    25 
    38 #include "ssmuiproviderdll.h"
    26 #include "ssmuiproviderdll.h"
    39 #include "swppolicy_simstatus.h"
    27 #include "swppolicy_simstatus.h"
       
    28 #include "ssmdebug.h"
    40 
    29 
    41 #include <ssm/ssmswppolicy.h>
    30 #include <ssm/ssmswppolicy.h>
    42 #include <ssm/ssmstatemanager.h>
    31 #include <ssm/ssmstatemanager.h>
    43 #include <ssm/ssmcommandlist.h>
    32 #include <ssm/ssmcommandlist.h>
    44 #include <ssm/startupdomainpskeys.h>
    33 #include <ssm/startupdomainpskeys.h>
   219 
   208 
   220 void CSimStatuspolicy::HandleCleReturnValue(const TSsmSwp& aSwp, TInt aError, TInt aSeverity, TRequestStatus& aStatus)
   209 void CSimStatuspolicy::HandleCleReturnValue(const TSsmSwp& aSwp, TInt aError, TInt aSeverity, TRequestStatus& aStatus)
   221 	{
   210 	{
   222 	(void)aSwp;
   211 	(void)aSwp;
   223 	(void)aSeverity;
   212 	(void)aSeverity;
       
   213 	(void)aError;
   224 	
   214 	
   225 	TRequestStatus* rs = &aStatus;
   215 	TRequestStatus* rs = &aStatus;
       
   216 #if defined(_DEBUG)
       
   217 	if(KErrNone != aError)
       
   218 		{
       
   219 		DEBUGPRINT3A("ERROR: Request SwP change for SIM status (SwP key %d) completed with error %d", aSwp.Key(), aError);
       
   220 		}
       
   221 	//Complete the status with the error which inturn panics SSM server	
   226 	User::RequestComplete(rs, aError);
   222 	User::RequestComplete(rs, aError);
       
   223 #else // _DEBUG
       
   224 	//Completing the status with KErrNone to avoid panic in SSM server
       
   225 	User::RequestComplete(rs, KErrNone);
       
   226 #endif // _DEBUG
   227 	}
   227 	}
   228 
   228 
   229 void CSimStatuspolicy::HandleCleReturnValueCancel()
   229 void CSimStatuspolicy::HandleCleReturnValueCancel()
   230 	{
   230 	{
   231 	}
   231 	}