epoc32/include/testconfigfileparser.inl
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 /*
     2 * Copyright (c) 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 "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 #ifndef TEST_SCRIPTS_INL_
    19 #define TEST_SCRIPTS_INL_
    20 
    21 inline const RPointerArray<CTestConfigSection>& CTestConfig::Sections() const
    22 	{
    23 	return iSections;
    24 	}
    25 
    26 inline RPointerArray<CTestConfigSection>& CTestConfig::Sections()
    27 	{
    28 	return iSections;
    29 	}
    30 
    31 inline const TDesC8& CTestConfigSection::SectionName() const
    32 	{
    33 	return *iSectionName;
    34 	}
    35 
    36 inline const TDesC8& CTestConfigItem::Item() const
    37 	{
    38 	return *iItem;
    39 	}
    40 
    41 inline void CTestConfigSection::SetDefaultsL(const CTestConfigSection& aDefaults)
    42 	{
    43 	CTestConfigSection* def = aDefaults.CopyLC();
    44 	CleanupStack::Pop(def);
    45 	delete iDefaults;
    46 	iDefaults = NULL;
    47 	iDefaults = def;
    48 	}
    49 
    50 
    51 inline const TDesC8& CTestConfigItem::Value() const
    52 	{
    53 	return *iValue;
    54 	}
    55 
    56 
    57 inline CTestConfigItem* CTestConfigItem::CopyLC() const
    58 	{
    59 	return NewLC(iParent, *iItem, *iValue);
    60 	}
    61 
    62 
    63 
    64 #endif