|
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include <e32base.h> |
|
17 |
|
18 #ifndef __FILENAME_H__ |
|
19 #define __FILENAME_H__ |
|
20 |
|
21 /** |
|
22 * |
|
23 * Heap based Filename |
|
24 * |
|
25 * Simply a CBase wrapper for TFilename |
|
26 * |
|
27 * @xxxx |
|
28 * |
|
29 */ |
|
30 class CFileName : public CBase |
|
31 { |
|
32 |
|
33 public: |
|
34 CFileName() {}; |
|
35 |
|
36 static CFileName* NewL(); |
|
37 static CFileName* NewLC(); |
|
38 |
|
39 public: |
|
40 TFileName& operator=(const TPtrC& aPtr); |
|
41 TFileName& operator=(const TText* aString); |
|
42 TFileName& operator=(const TDesC& aDes); |
|
43 TFileName& operator=(const TFileName& aBuf); |
|
44 TFileName& operator=(const CFileName& aFilename); |
|
45 |
|
46 void Copy(const TDesC8 &aDes); |
|
47 void Copy(const TDesC16 &aDes); |
|
48 void Copy(const TUint16 *aBuf,TInt aLength); |
|
49 void Copy(const TUint16 *aString); |
|
50 |
|
51 TInt Locate(TChar aChar) const; |
|
52 |
|
53 TPtrC16 Left(TInt aLength) const; |
|
54 |
|
55 public: |
|
56 TFileName FileName() const; |
|
57 |
|
58 |
|
59 private: |
|
60 TFileName iBuf; |
|
61 }; |
|
62 |
|
63 #endif //__FILENAME_H__ |