|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * This class is responsible of formatting a directory entry to |
|
16 * a format that is displayable in a CAknSingleGraphicBtPopupMenuStyleListBox. |
|
17 * |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 #ifndef CFLDSINGLEGRAPHICENTRYFORMATTER_H |
|
24 #define CFLDSINGLEGRAPHICENTRYFORMATTER_H |
|
25 |
|
26 // INTERNAL INCLUDES |
|
27 #include "MFLDEntryFormatter.h" |
|
28 |
|
29 // EXTERNAL INCLUDES |
|
30 #include <e32base.h> |
|
31 #include <f32file.h> |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 class CFLDEntryRefererence; |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 |
|
39 /** |
|
40 * CDriveUtil |
|
41 * |
|
42 * CDriveUtil is used for getting drive information. |
|
43 */ |
|
44 NONSHARABLE_CLASS (CDriveUtil) : public CBase |
|
45 { |
|
46 public: |
|
47 static CDriveUtil* NewL(); |
|
48 virtual ~CDriveUtil(); |
|
49 |
|
50 private: |
|
51 CDriveUtil(); |
|
52 void ConstructL(); |
|
53 |
|
54 public: |
|
55 TBool IsMemoryCard(const TDesC& aFullPath); |
|
56 TBool IsMassStorage(const TDesC& aFullPath); |
|
57 |
|
58 private: |
|
59 RFs iFsSession; |
|
60 }; |
|
61 |
|
62 |
|
63 /** |
|
64 * This class is responsible of formatting a directory entry to |
|
65 * a format that is displayable in a CAknSingleGraphicBtPopupMenuStyleListBox. |
|
66 * |
|
67 * @lib FileList.lib |
|
68 * @since Series 60 2.6 |
|
69 */ |
|
70 NONSHARABLE_CLASS( CFLDSingleGraphicEntryFormatter ) : |
|
71 public CBase, public MFLDEntryFormatter |
|
72 { |
|
73 public: // // Functions from base classes |
|
74 |
|
75 CFLDSingleGraphicEntryFormatter(); |
|
76 |
|
77 /** |
|
78 * Destructor. |
|
79 */ |
|
80 virtual ~CFLDSingleGraphicEntryFormatter(); |
|
81 |
|
82 |
|
83 /** |
|
84 * From MFLDEntryFormatter |
|
85 */ |
|
86 void FormatL( CFLDEntryReference& aEntry ); |
|
87 |
|
88 /** |
|
89 * From MFLDEntryFormatter |
|
90 */ |
|
91 HBufC* FormatTextLC( const TDesC& aText ); |
|
92 |
|
93 private: |
|
94 CDriveUtil* iDriveUtil; |
|
95 }; |
|
96 |
|
97 #endif // CFLDSINGLEGRAPHICENTRYFORMATTER_H |
|
98 |
|
99 // End of File |