secureswitools/swisistools/test/tinterpretsisinteg/tintsistef/tinterpretsisstep.cpp
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 /**
       
    20  @file tinterpretsisstep.cpp
       
    21 */
       
    22 #include "tinterpretsisstep.h"
       
    23 #include <test/testexecutelog.h>
       
    24 
       
    25 #include "sisregistrysession.h"
       
    26 #include "sisregistryentry.h"
       
    27 
       
    28 CInterpretsisStep::~CInterpretsisStep()
       
    29 	{
       
    30 	}
       
    31 
       
    32 CInterpretsisStep::CInterpretsisStep()
       
    33 	{
       
    34 	SetTestStepName(KInterpretsisStep);
       
    35 	}
       
    36 
       
    37 TVerdict CInterpretsisStep::doTestStepPreambleL()
       
    38 	{
       
    39 	INFO_PRINTF1(_L("Inside doTestStepPreambleL()"));
       
    40 	return TestStepResult();
       
    41 	}
       
    42 
       
    43 TVerdict CInterpretsisStep::doTestStepPostambleL()
       
    44 	{
       
    45 	INFO_PRINTF1(_L("Inside doTestStepPostambleL()"));
       
    46 	return TestStepResult();
       
    47 	}
       
    48 
       
    49 TVerdict CInterpretsisStep::doTestStepL()
       
    50 	{
       
    51 	__UHEAP_MARK;
       
    52 	INFO_PRINTF1(_L("Inside doTestStepL()"));
       
    53 	TInt uid;
       
    54 	GetHexFromConfig(ConfigSection(), _L("uid"), uid);
       
    55 	TUid regUid = {uid};
       
    56 	INFO_PRINTF1(_L("Inside doTestStep"));
       
    57 	Swi::RSisRegistrySession session;
       
    58 	User::LeaveIfError(session.Connect());
       
    59 	CleanupClosePushL(session);
       
    60 	Swi::RSisRegistryEntry entry;
       
    61 	User::LeaveIfError(entry.Open(session,regUid));
       
    62 	CleanupClosePushL(entry); 
       
    63 	TBool val=entry.RemovableL();
       
    64 	if(val)
       
    65 	 	{
       
    66 		INFO_PRINTF1(_L("NR flag unset"));
       
    67 		}
       
    68 		else
       
    69 		{
       
    70 		INFO_PRINTF1(_L("NR flag set"));
       
    71 		}
       
    72 	entry.Close();
       
    73 	CleanupStack::PopAndDestroy(&entry);
       
    74 	CleanupStack::PopAndDestroy(&session);	
       
    75 	__UHEAP_MARKEND;
       
    76 	return TestStepResult();
       
    77 	
       
    78 	}
       
    79 
       
    80