|
1 /* |
|
2 * Copyright (c) 2006-2007 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: Filter GFLM items |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_FILEMANAGERITEMFILTER_H |
|
20 #define C_FILEMANAGERITEMFILTER_H |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <f32file.h> |
|
26 #include "MGflmItemFilter.h" |
|
27 |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CFileManagerEngine; |
|
31 |
|
32 |
|
33 // CLASS DECLARATION |
|
34 /** |
|
35 * This class handles GFLM item filtering |
|
36 * |
|
37 * @lib FileManagerEngine.lib |
|
38 * @since 3.1 |
|
39 */ |
|
40 NONSHARABLE_CLASS(CFileManagerItemFilter) : public CBase, |
|
41 public MGflmItemFilter |
|
42 { |
|
43 |
|
44 public: // Constructors and destructor |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 */ |
|
48 static CFileManagerItemFilter* NewL( CFileManagerEngine& aEngine ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CFileManagerItemFilter(); |
|
54 |
|
55 public: // From MGflmItemFilter |
|
56 /** |
|
57 * @see MGflmItemFilter |
|
58 */ |
|
59 TBool FilterItemL( |
|
60 CGflmGroupItem* aItem, TInt aGroupId, CGflmDriveItem* aDrive ); |
|
61 |
|
62 private: |
|
63 /** |
|
64 * C++ default constructor. |
|
65 */ |
|
66 CFileManagerItemFilter( CFileManagerEngine& aEngine ); |
|
67 |
|
68 /** |
|
69 * By default Symbian 2nd phase constructor is private. |
|
70 */ |
|
71 void ConstructL(); |
|
72 |
|
73 private: // Data |
|
74 /** |
|
75 * Reference to file manager engine |
|
76 * Not own. |
|
77 */ |
|
78 CFileManagerEngine& iEngine; |
|
79 |
|
80 /** |
|
81 * For file name handling |
|
82 */ |
|
83 TFileName iFileNameBuffer; |
|
84 |
|
85 /** |
|
86 * Contains phone memory root path |
|
87 * Own. |
|
88 */ |
|
89 HBufC* iPhoneMemoryRootPath; |
|
90 |
|
91 /** |
|
92 * Contains phone memory default name |
|
93 * Own. |
|
94 */ |
|
95 HBufC* iInternalDefaultName; |
|
96 |
|
97 /** |
|
98 * Contains memory card default name |
|
99 * Own. |
|
100 */ |
|
101 HBufC* iRemovableDefaultName; |
|
102 |
|
103 }; |
|
104 |
|
105 #endif // C_FILEMANAGERITEMFILTER_H |
|
106 |
|
107 // End of File |