|
1 /* |
|
2 * Copyright (c) 2008 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: This file defines class CFileSystemInfo. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef FILE_SYSTEM_INFO_H |
|
20 #define FILE_SYSTEM_INFO_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * CFileSystemInfo is a convenience class that is able to provide |
|
29 * application private path information. |
|
30 */ |
|
31 class CFileSystemInfo : public CBase |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * Constructs new instance of CFileSystemInfo class. |
|
36 * |
|
37 * @return Pointer to a new CFileSystemInfo object. |
|
38 * @leave KErrNotFound If multimediamenu application is not installed. |
|
39 */ |
|
40 static CFileSystemInfo* NewL(const TUid & aApplicationUid); |
|
41 |
|
42 /** |
|
43 * Constructs new instance of CFileSystemInfo class and leaves it in the cleanup stack. |
|
44 * |
|
45 * @return Pointer to a new CFileSystemInfo object. |
|
46 * @leave KErrNotFound If multimediamenu application is not installed. |
|
47 */ |
|
48 static CFileSystemInfo* NewLC(const TUid & aApplicationUid); |
|
49 |
|
50 /** |
|
51 * Default destructor. |
|
52 */ |
|
53 virtual ~CFileSystemInfo(); |
|
54 |
|
55 /** |
|
56 * Returns the application private path. The returned path will have a trailing backslash. |
|
57 */ |
|
58 TFileName PrivatePath() const; |
|
59 |
|
60 private: |
|
61 |
|
62 /** |
|
63 * Default constructor |
|
64 */ |
|
65 CFileSystemInfo(); |
|
66 |
|
67 /** |
|
68 * Second phase constructor. |
|
69 * |
|
70 * @leave KErrNotFound If multimediamenu application is not installed. |
|
71 */ |
|
72 void ConstructL(const TUid & aApplicationUid); |
|
73 |
|
74 private: |
|
75 |
|
76 /** Current private path */ |
|
77 TFileName iPrivatePath; |
|
78 |
|
79 }; |
|
80 |
|
81 #endif // FILE_SYSTEM_INFO_H |
|
82 |
|
83 // End of file |