diff -r 000000000000 -r 40261b775718 mmtestenv/mmtestfw/Source/TestFramework/Filename.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmtestenv/mmtestfw/Source/TestFramework/Filename.h Tue Feb 02 01:56:55 2010 +0200 @@ -0,0 +1,63 @@ +// Copyright (c) 2002-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: +// + +#include + +#ifndef __FILENAME_H__ +#define __FILENAME_H__ + +/** + * + * Heap based Filename + * + * Simply a CBase wrapper for TFilename + * + * @xxxx + * + */ +class CFileName : public CBase + { + +public: + CFileName() {}; + + static CFileName* NewL(); + static CFileName* NewLC(); + +public: + TFileName& operator=(const TPtrC& aPtr); + TFileName& operator=(const TText* aString); + TFileName& operator=(const TDesC& aDes); + TFileName& operator=(const TFileName& aBuf); + TFileName& operator=(const CFileName& aFilename); + + void Copy(const TDesC8 &aDes); + void Copy(const TDesC16 &aDes); + void Copy(const TUint16 *aBuf,TInt aLength); + void Copy(const TUint16 *aString); + + TInt Locate(TChar aChar) const; + + TPtrC16 Left(TInt aLength) const; + +public: + TFileName FileName() const; + + +private: + TFileName iBuf; + }; + +#endif //__FILENAME_H__