|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Declaration of CFileSystemInfo class which is convenience class that is able to provide application private path information1 |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef FILE_SYSTEM_INFO_H |
|
21 #define FILE_SYSTEM_INFO_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * CFileSystemInfo is a convenience class that is able to provide |
|
30 * application private path information. |
|
31 */ |
|
32 class CFileSystemInfo : public CBase |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Constructs new instance of CFileSystemInfo class. |
|
37 * |
|
38 * @return Pointer to a new CFileSystemInfo object. |
|
39 * @leave KErrNotFound If multimediamenu application is not installed. |
|
40 */ |
|
41 static CFileSystemInfo* NewL(const TUid & aApplicationUid); |
|
42 |
|
43 /** |
|
44 * Constructs new instance of CFileSystemInfo class and leaves it in the cleanup stack. |
|
45 * |
|
46 * @return Pointer to a new CFileSystemInfo object. |
|
47 * @leave KErrNotFound If multimediamenu application is not installed. |
|
48 */ |
|
49 static CFileSystemInfo* NewLC(const TUid & aApplicationUid); |
|
50 |
|
51 /** |
|
52 * Default destructor. |
|
53 */ |
|
54 virtual ~CFileSystemInfo(); |
|
55 |
|
56 /** |
|
57 * Returns the application private path. The returned path will have a trailing backslash. |
|
58 */ |
|
59 TFileName PrivatePath() const; |
|
60 |
|
61 private: |
|
62 |
|
63 /** |
|
64 * Default constructor |
|
65 */ |
|
66 CFileSystemInfo(); |
|
67 |
|
68 /** |
|
69 * Second phase constructor. |
|
70 * |
|
71 * @leave KErrNotFound If multimediamenu application is not installed. |
|
72 */ |
|
73 void ConstructL(const TUid & aApplicationUid); |
|
74 |
|
75 private: |
|
76 |
|
77 /** Current private path */ |
|
78 TFileName iPrivatePath; |
|
79 |
|
80 }; |
|
81 |
|
82 #endif // FILE_SYSTEM_INFO_H |
|
83 |
|
84 // End of file |