lbs/common/src/ctlbsstepcreateupdateinfo.cpp
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // @file ctlbsstep_createupdateinfo.cpp
       
    15 // This is the class implementation for the Notify Position Update Tests
       
    16 // 
       
    17 //
       
    18  
       
    19 #include "ctlbsstepcreateupdateinfo.h"
       
    20 
       
    21 #include "tlbsutils.h"
       
    22 
       
    23 
       
    24 _LIT(KUpdateInfoFile, "update_info_file");
       
    25 
       
    26 /**
       
    27  * Constructor
       
    28  */
       
    29 CT_LbsStep_CreateUpdateInfo::CT_LbsStep_CreateUpdateInfo(CT_LbsServer& aParent) : CT_LbsStep(aParent)
       
    30 	{
       
    31 	SetTestStepName(KLbsStep_CreateUpdateInfo);
       
    32 	}
       
    33 
       
    34 
       
    35 /**
       
    36 Static Constructor
       
    37 */
       
    38 CT_LbsStep_CreateUpdateInfo* CT_LbsStep_CreateUpdateInfo::New(CT_LbsServer& aParent)
       
    39 	{
       
    40 	return new CT_LbsStep_CreateUpdateInfo(aParent);
       
    41 	// Note the lack of ELeave.
       
    42 	// This means that having insufficient memory will return NULL;
       
    43 	}
       
    44 
       
    45 
       
    46 /**
       
    47  * @return - TVerdict code
       
    48  * Override of base class pure virtual
       
    49  * Our implementation only gets called if the base class doTestStepPreambleL() did
       
    50  * not leave. That being the case, the current test result value will be EPass.
       
    51  */
       
    52 TVerdict CT_LbsStep_CreateUpdateInfo::doTestStepL()
       
    53 	{
       
    54 	INFO_PRINTF1(_L(">>CT_LbsStep_CreateUpdateInfo::doTestStepL()"));
       
    55 
       
    56 	if (TestStepResult() == EPass)
       
    57 		{
       
    58 		TPtrC configFileName;
       
    59 		GetStringFromConfig(ConfigSection(), KUpdateInfoFile, configFileName);
       
    60 		RPointerArray<TAny>& updateInfoArr = iParent.iSharedData->iUpdateArr;
       
    61 		//Populate the array by extracting the data from the ini file	
       
    62 		}
       
    63 
       
    64 	INFO_PRINTF1(_L("&lt;&lt;CT_LbsStep_CreateUpdateInfo::doTestStepL()"));
       
    65 
       
    66 	return TestStepResult();
       
    67 	}