equal
deleted
inserted
replaced
25 const TUint32 KIgnorePathPartialKey = 0x00010000; |
25 const TUint32 KIgnorePathPartialKey = 0x00010000; |
26 const TUint32 KBootScanPartialKey = 0x00020000; |
26 const TUint32 KBootScanPartialKey = 0x00020000; |
27 const TUint32 KBootIgnorePartialKey = 0x00030000; |
27 const TUint32 KBootIgnorePartialKey = 0x00030000; |
28 const TUint32 KPartialRestorePartialKey = 0x00040000; |
28 const TUint32 KPartialRestorePartialKey = 0x00040000; |
29 const TUint32 KPartialRestoreIgnorePartialKey = 0x00050000; |
29 const TUint32 KPartialRestoreIgnorePartialKey = 0x00050000; |
|
30 const TUint32 KAlwaysScanPartialKey = 0x00060000; |
30 |
31 |
31 const TUint32 KRomScanEnabledKey = 0x00090000; |
32 const TUint32 KRomScanEnabledKey = 0x00090000; |
32 |
33 |
33 const TInt32 KThumbnailManagerCenrepUID = 0x102830B0; // TNM cenrep uid |
34 const TInt32 KThumbnailManagerCenrepUID = 0x102830B0; // TNM cenrep uid |
34 const TUint32 KEnableDaemon = 0x300; // from TNM |
35 const TUint32 KEnableDaemon = 0x300; // from TNM |
177 rep->Get( KEnableDaemon, aEnabled ); |
178 rep->Get( KEnableDaemon, aEnabled ); |
178 |
179 |
179 CleanupStack::PopAndDestroy( rep ); |
180 CleanupStack::PopAndDestroy( rep ); |
180 } |
181 } |
181 |
182 |
|
183 EXPORT_C void CHarvesterCenRepUtil::GetAlwaysScanOnBootPathsL( |
|
184 RPointerArray<TScanItem>& aPaths ) |
|
185 { |
|
186 GetItemsL( KAlwaysScanPartialKey, aPaths ); |
|
187 } |
|
188 |
182 void CHarvesterCenRepUtil::GetPathsL( TUint32 aPartialKey, RPointerArray<HBufC>& aPaths ) |
189 void CHarvesterCenRepUtil::GetPathsL( TUint32 aPartialKey, RPointerArray<HBufC>& aPaths ) |
183 { |
190 { |
184 CRepository* repo = CRepository::NewLC( KHarvesterRepoUid ); |
191 CRepository* repo = CRepository::NewLC( KHarvesterRepoUid ); |
185 RArray<TUint32> scanPathKeys; |
192 RArray<TUint32> scanPathKeys; |
186 CleanupClosePushL( scanPathKeys ); |
193 CleanupClosePushL( scanPathKeys ); |
225 { |
232 { |
226 continue; |
233 continue; |
227 } |
234 } |
228 TUint32 preinstalled = MdeConstants::MediaObject::ENotPreinstalled; |
235 TUint32 preinstalled = MdeConstants::MediaObject::ENotPreinstalled; |
229 |
236 |
230 if( path[ path.Length() - 1 ] != TChar('\\') ) |
|
231 { |
|
232 User::LeaveIfError( repo->GetMeta( scanPathKeys[i], preinstalled ) ); |
|
233 } |
|
234 TScanItem* item = new (ELeave) TScanItem(); |
237 TScanItem* item = new (ELeave) TScanItem(); |
235 CleanupStack::PushL( item ); |
238 CleanupStack::PushL( item ); |
236 item->iPath = path.AllocL(); |
239 item->iPath = path.AllocL(); |
237 item->iPreinstalled = preinstalled; |
240 item->iPreinstalled = preinstalled; |
238 CleanupStack::Pop( item ); |
241 CleanupStack::Pop( item ); |