common/tools/ats/smoketest/lbs/common/src/ctlbsshareddata.cpp
changeset 748 e13acd883fbe
child 872 17498133d9ad
equal deleted inserted replaced
747:76f9aaeefbab 748:e13acd883fbe
       
     1 // Copyright (c) 2006-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 CT_LbsSharedData.cpp
       
    15 // This file contains the shared data class for the Lbs  Test server
       
    16 // 
       
    17 //
       
    18 
       
    19 
       
    20 #include "ctlbsshareddata.h"
       
    21 
       
    22 /**
       
    23   Function : NewL
       
    24   Description : Constructor
       
    25   @internalTechnology
       
    26   @param :
       
    27   @return : N/A
       
    28   @precondition : none
       
    29   @postcondition : none
       
    30 */
       
    31 CT_LbsSharedData* CT_LbsSharedData::NewL()
       
    32 	{
       
    33 	CT_LbsSharedData* sharedData=new(ELeave) CT_LbsSharedData();
       
    34 	CleanupStack::PushL(sharedData);
       
    35 	sharedData->ConstructL();
       
    36 	CleanupStack::Pop(sharedData);
       
    37 
       
    38 	return sharedData;
       
    39 	}
       
    40 
       
    41 
       
    42 /**
       
    43   Function : ConstructL
       
    44   Description : Constructor
       
    45   @internalTechnology
       
    46   @param :
       
    47   @return : N/A
       
    48   @precondition : none
       
    49   @postcondition : none
       
    50 */
       
    51 void CT_LbsSharedData::ConstructL()
       
    52 	{
       
    53 	}
       
    54 
       
    55 
       
    56 /**
       
    57   Function : CT_LbsSharedData
       
    58   Description : Constructor
       
    59   @internalTechnology
       
    60   @param :
       
    61   @return : N/A
       
    62   @precondition : none
       
    63   @postcondition : none
       
    64 */
       
    65 CT_LbsSharedData::CT_LbsSharedData()
       
    66 	{
       
    67 	iTestModuleInUse = ETrue; // Default is to use the test module.
       
    68 	}
       
    69 	
       
    70 /**
       
    71   Function : ~CT_LbsSharedData
       
    72   Description : Destructor
       
    73   @internalTechnology
       
    74   @param :
       
    75   @return : N/A
       
    76   @precondition : none
       
    77   @postcondition : none
       
    78 */	
       
    79 CT_LbsSharedData::~CT_LbsSharedData()
       
    80 	{
       
    81 	// Clear arrays.
       
    82 	for (TInt i = 0; i < iVerifyPosInfoArr.Count(); ++i)
       
    83 		delete iVerifyPosInfoArr[i];
       
    84 	iVerifyPosInfoArr.Close();
       
    85 
       
    86 	for (TInt i = 0; i < iCurrentPosInfoArr.Count(); ++i)
       
    87 		delete iCurrentPosInfoArr[i];
       
    88 	iCurrentPosInfoArr.Close();
       
    89 		
       
    90 	//Clear logging arays
       
    91 	for (TInt i = 0; i < iSelfLocateLogInfoArr.Count(); ++i)
       
    92 		delete iSelfLocateLogInfoArr[i];	
       
    93 	iSelfLocateLogInfoArr.Close();
       
    94 	
       
    95 	for (TInt i = 0; i < iNetworkLocateLogInfoArr.Count(); ++i)
       
    96 		delete iNetworkLocateLogInfoArr[i];	
       
    97 	iNetworkLocateLogInfoArr.Close();
       
    98 	
       
    99 	for (TInt i = 0; i < iExternalLocateLogInfoArr.Count(); ++i)
       
   100 		delete iExternalLocateLogInfoArr[i];	
       
   101 	iExternalLocateLogInfoArr.Close();
       
   102 	
       
   103 	for (TInt i = 0; i < iX3PLocateLogInfoArr.Count(); ++i)
       
   104 		delete iX3PLocateLogInfoArr[i];	
       
   105 	iX3PLocateLogInfoArr.Close();
       
   106 	
       
   107 	for (TInt i = 0; i < iAssistanceDataLogInfoArr.Count(); ++i)
       
   108 		delete iAssistanceDataLogInfoArr[i];	
       
   109 	iAssistanceDataLogInfoArr.Close();
       
   110 	
       
   111 	}