diff -r 9f5ae1728557 -r db3f5fa34ec7 messagingfw/msgtest/testutils/base/inc/msvtestconfig.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingfw/msgtest/testutils/base/inc/msvtestconfig.h Wed Nov 03 22:41:46 2010 +0530 @@ -0,0 +1,56 @@ +// Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __MSVTESTCONFIG_H__ +#define __MSVTESTCONFIG_H__ + +#include +#include + +const TInt KConfigSelectionGranularity = 8; + +class TMsvConfigEntry + { +public: + IMPORT_C TInt Set(const TDesC& aLine); + IMPORT_C TVersion Version() const; + IMPORT_C TInt Int() const; + // + inline const TDesC& Name() const; + inline const TDesC& String() const; + inline TUid Uid() const; + // +private: + TInt Find(const TDesC& aString, const TDesC& aFind); + TInt Int(TPtrC aPtr) const; + // + TBuf<128> iName; + TBuf<128> iValue; + }; + +class CMsvConfigEntrySelection : public CArrayFixFlat + { +public: + IMPORT_C static CMsvConfigEntrySelection* NewL(RFs& aFs, const TDesC& aFileName); + IMPORT_C TInt FindPos(const TDesC& aName) const; + IMPORT_C const TMsvConfigEntry* Find(const TDesC& aName) const; + // +private: + CMsvConfigEntrySelection(); + }; + +#include + +#endif