54 */ |
54 */ |
55 void StartPluginL(); |
55 void StartPluginL(); |
56 void StartHarvestingL(const TDesC& aQualifiedBaseAppClass); |
56 void StartHarvestingL(const TDesC& aQualifiedBaseAppClass); |
57 |
57 |
58 /** |
58 /** |
59 * CreateFileIndexItemL sends a file for indexing |
59 * CreateContentIndexItemL sends a file for indexing contents |
60 * @aFilename full path and filename of the file to be indexed |
60 * @aFilename full path and filename of the file to be indexed |
61 * @aActionType action to be taken on the file |
61 * @aActionType action to be taken on the file |
62 */ |
62 */ |
63 void CreateFileIndexItemL(const TDesC& aFilename, TCPixActionType aActionType); |
63 void CreateContentIndexItemL(const TDesC& aFilename, TCPixActionType aActionType); |
|
64 /** |
|
65 * CreateFolderIndexItemL sends a folder/file for indexing |
|
66 * @aFilename full path and filename of the file to be indexed |
|
67 * @aActionType action to be taken on the file |
|
68 */ |
|
69 void CreateFolderFileIndexItemL(const TDesC& aFilename, TCPixActionType aActionType, TBool aIsDir = ETrue); |
|
70 private: |
|
71 /** |
|
72 * CreateCpixDocumentL creates a document file |
|
73 * @aFilePath full path of the file/folder to be indexed |
|
74 */ |
|
75 CSearchDocument* CreateCpixDocumentL(const TDesC& aFilePath, TBool aIsDir); |
|
76 |
|
77 /** |
|
78 * IsFileTypeMedia checks for vaild extention type to be indexed |
|
79 * @aExt file extention |
|
80 */ |
|
81 TBool IsFileTypeMedia(const TDesC& aExt); |
64 |
82 |
65 public: |
83 public: |
66 // |
84 // |
67 // New Functions |
85 // New Functions |
68 // |
86 // |
103 * FormBaseAppClass - constructs a baseAppClass for the given drive. |
121 * FormBaseAppClass - constructs a baseAppClass for the given drive. |
104 * @aMedia drive to form the baseAppClass for. |
122 * @aMedia drive to form the baseAppClass for. |
105 * @aBaseAppClass return descriptor containing the baseAppClass |
123 * @aBaseAppClass return descriptor containing the baseAppClass |
106 * returns KErrNone on success or a standard error code |
124 * returns KErrNone on success or a standard error code |
107 */ |
125 */ |
108 static TInt FormBaseAppClass(TDriveNumber aMedia, TDes& aBaseAppClass); |
126 static TInt FormBaseAppClass(TDriveNumber aMedia,const TDesC& aGenericAppClass, TDes& aBaseAppClass); |
109 |
127 |
110 |
128 |
111 /** |
129 /** |
112 * DatabasePathL - Forms IndexDb path. |
130 * DatabasePathL - Forms IndexDb path. |
113 * @param aMedia - The drive for which the path should be constructed. |
131 * @param aMedia - The drive for which the path should be constructed. |
114 * returns pointer to the IndexDb path. |
132 * returns pointer to the IndexDb path. |
115 */ |
133 */ |
116 HBufC* DatabasePathLC(TDriveNumber aMedia); |
134 HBufC* DatabasePathLC(TDriveNumber aMedia,const TDesC& aPath); |
117 |
135 |
118 protected: |
136 protected: |
119 CFilePlugin(); |
137 CFilePlugin(); |
120 void ConstructL(); |
138 void ConstructL(); |
121 |
139 |
122 private: |
140 private: |
123 // CPix database |
141 // CPix database |
124 CCPixIndexer* iIndexer[EDriveZ+1]; // EDriveZ enum value is 25, so add 1. |
142 CCPixIndexer* iIndexer[EDriveZ+1]; // EDriveZ enum value is 25, so add 1. |
|
143 |
|
144 CCPixIndexer* iFolderIndexer[EDriveZ+1]; |
125 |
145 |
126 // File system session |
146 // File system session |
127 RFs iFs; |
147 RFs iFs; |
128 |
148 |
129 // Harvester |
149 // Harvester |
132 // Monitor |
152 // Monitor |
133 TBool iIsMonitorInit; |
153 TBool iIsMonitorInit; |
134 CFileMonitor* iMonitor; |
154 CFileMonitor* iMonitor; |
135 |
155 |
136 // MMC monitor |
156 // MMC monitor |
137 CMMCMonitor* iMmcMonitor; |
157 CMMCMonitor* iMmcMonitor; |
138 |
158 |
139 #ifdef __PERFORMANCE_DATA |
159 #ifdef __PERFORMANCE_DATA |
140 TTime iStartTime[26];// for the all drives |
160 TTime iStartTime[26];// for the all drives |
141 TTime iCompleteTime; |
161 TTime iCompleteTime; |
142 void UpdatePerformaceDataL(TDriveNumber aMedia); |
162 void UpdatePerformaceDataL(TDriveNumber aMedia); |
143 TInt i; |
163 TInt i; |