equal
deleted
inserted
replaced
230 WRITELOG( "CHarvesterAO::ConstructL() - begin" ); |
230 WRITELOG( "CHarvesterAO::ConstructL() - begin" ); |
231 |
231 |
232 CActiveScheduler::Add( this ); |
232 CActiveScheduler::Add( this ); |
233 |
233 |
234 User::LeaveIfError( iFs.Connect() ); |
234 User::LeaveIfError( iFs.Connect() ); |
235 |
|
236 // Pump up priority for getting the MDE session up as fast as possible for other |
|
237 // initialization to continue |
|
238 RProcess process; |
|
239 process.SetPriority( EPriorityForeground ); |
|
240 process.Close(); |
|
241 |
235 |
242 // Setting up MdE Session |
236 // Setting up MdE Session |
243 iMdESession = CMdESession::NewL( *this ); |
237 iMdESession = CMdESession::NewL( *this ); |
244 |
238 |
245 iBackupSubscriber = CBackupSubscriber::NewL( *this ); |
239 iBackupSubscriber = CBackupSubscriber::NewL( *this ); |
1261 // |
1255 // |
1262 void CHarvesterAO::HandleSessionOpened( CMdESession& aSession, TInt aError ) |
1256 void CHarvesterAO::HandleSessionOpened( CMdESession& aSession, TInt aError ) |
1263 { |
1257 { |
1264 WRITELOG( "HarvesterThread::HandleSessionOpened()" ); |
1258 WRITELOG( "HarvesterThread::HandleSessionOpened()" ); |
1265 |
1259 |
1266 // Revert back to default Harvester process priority when MDE Session is up and running |
|
1267 RProcess process; |
|
1268 process.SetPriority( EPriorityBackground ); |
|
1269 process.Close(); |
|
1270 |
|
1271 if ( KErrNone == aError ) |
1260 if ( KErrNone == aError ) |
1272 { |
1261 { |
1273 TBool isTNMDaemonEnabled( EFalse ); |
1262 TBool isTNMDaemonEnabled( EFalse ); |
1274 TRAP_IGNORE( CHarvesterCenRepUtil::IsThumbnailDaemonEnabledL( isTNMDaemonEnabled ) ); |
1263 TRAP_IGNORE( CHarvesterCenRepUtil::IsThumbnailDaemonEnabledL( isTNMDaemonEnabled ) ); |
1275 |
1264 |
1422 // --------------------------------------------------------------------------- |
1411 // --------------------------------------------------------------------------- |
1423 // HandleSessionError |
1412 // HandleSessionError |
1424 // --------------------------------------------------------------------------- |
1413 // --------------------------------------------------------------------------- |
1425 // |
1414 // |
1426 void CHarvesterAO::HandleSessionError( CMdESession& /*aSession*/, TInt aError ) |
1415 void CHarvesterAO::HandleSessionError( CMdESession& /*aSession*/, TInt aError ) |
1427 { |
1416 { |
1428 if ( KErrNone != aError ) |
1417 if ( KErrNone != aError ) |
1429 { |
1418 { |
1430 WRITELOG1( "HarvesterThread::HandleSessionError() - Error: %d!", aError ); |
1419 WRITELOG1( "HarvesterThread::HandleSessionError() - Error: %d!", aError ); |
1431 } |
1420 } |
1432 } |
1421 } |
2832 } |
2821 } |
2833 } |
2822 } |
2834 return EFalse; |
2823 return EFalse; |
2835 } |
2824 } |
2836 |
2825 |
|
2826 void CHarvesterAO::RemoveBlacklistedFile( CHarvesterData* aItem ) |
|
2827 { |
|
2828 if( iMdeSessionInitialized ) |
|
2829 { |
|
2830 TRAP_IGNORE( iMdESession->RemoveObjectL( aItem->Uri() ) ); |
|
2831 } |
|
2832 } |
|
2833 |