common/tools/ats/smoketest/email/testutils/inc/T_UtilsConfigFileParserUtility.h
author Maciej Seroka <maciejs@symbian.org>
Fri, 30 Oct 2009 09:36:23 +0000
changeset 719 d5603c08781b
child 872 17498133d9ad
permissions -rw-r--r--
Added smoketest for email

/**
* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Symbian Foundation License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
* This is the header file for CT_MsgUtilsConfigFileParserUtility class
* 
*
*/





/**
 @file
*/



#ifndef __T_UTILS_CONFIG_FILE_PARSER_UTILITY_H__
#define __T_UTILS_CONFIG_FILE_PARSER_UTILITY_H__


// epoc includes
#include <e32base.h>


/**
This utility class used to parse a .txt(Email settings) file.
*/
class CT_MsgUtilsConfigFileParserUtility : public CBase
	{
public:
	 IMPORT_C static CT_MsgUtilsConfigFileParserUtility* NewL(const TDesC& aFileName);
	~CT_MsgUtilsConfigFileParserUtility();
	
	IMPORT_C TInt GetFieldAsInteger(const TDesC& aFieldName, TInt& aValue);
	IMPORT_C TInt GetFieldAsString(const TDesC& aFieldName, TPtrC& aString);
	IMPORT_C TInt GetFieldAsString8(const TDesC& aFieldName, TPtrC8& aString);

private:
	IMPORT_C CT_MsgUtilsConfigFileParserUtility();
	IMPORT_C void ConstructL(const TDesC& aFileName); 

private:
	RPointerArray<HBufC> iName;
	RPointerArray<HBufC> iContent;
	RPointerArray<HBufC8> iContent8;
	};
#endif //__T_UTILS_CONFIG_FILE_PARSER_UTILITY_H__