sl@0: // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #include sl@0: sl@0: #ifndef __FILENAME_H__ sl@0: #define __FILENAME_H__ sl@0: sl@0: /** sl@0: * sl@0: * Heap based Filename sl@0: * sl@0: * Simply a CBase wrapper for TFilename sl@0: * sl@0: * @xxxx sl@0: * sl@0: */ sl@0: class CFileName : public CBase sl@0: { sl@0: sl@0: public: sl@0: CFileName() {}; sl@0: sl@0: static CFileName* NewL(); sl@0: static CFileName* NewLC(); sl@0: sl@0: public: sl@0: TFileName& operator=(const TPtrC& aPtr); sl@0: TFileName& operator=(const TText* aString); sl@0: TFileName& operator=(const TDesC& aDes); sl@0: TFileName& operator=(const TFileName& aBuf); sl@0: TFileName& operator=(const CFileName& aFilename); sl@0: sl@0: void Copy(const TDesC8 &aDes); sl@0: void Copy(const TDesC16 &aDes); sl@0: void Copy(const TUint16 *aBuf,TInt aLength); sl@0: void Copy(const TUint16 *aString); sl@0: sl@0: TInt Locate(TChar aChar) const; sl@0: sl@0: TPtrC16 Left(TInt aLength) const; sl@0: sl@0: public: sl@0: TFileName FileName() const; sl@0: sl@0: sl@0: private: sl@0: TFileName iBuf; sl@0: }; sl@0: sl@0: #endif //__FILENAME_H__