--- a/harvester/server/src/harvesterao.cpp Wed Mar 31 22:19:07 2010 +0300
+++ b/harvester/server/src/harvesterao.cpp Wed Apr 14 16:24:03 2010 +0300
@@ -232,12 +232,6 @@
CActiveScheduler::Add( this );
User::LeaveIfError( iFs.Connect() );
-
- // Pump up priority for getting the MDE session up as fast as possible for other
- // initialization to continue
- RProcess process;
- process.SetPriority( EPriorityForeground );
- process.Close();
// Setting up MdE Session
iMdESession = CMdESession::NewL( *this );
@@ -1263,11 +1257,6 @@
{
WRITELOG( "HarvesterThread::HandleSessionOpened()" );
- // Revert back to default Harvester process priority when MDE Session is up and running
- RProcess process;
- process.SetPriority( EPriorityBackground );
- process.Close();
-
if ( KErrNone == aError )
{
TBool isTNMDaemonEnabled( EFalse );
@@ -1424,7 +1413,7 @@
// ---------------------------------------------------------------------------
//
void CHarvesterAO::HandleSessionError( CMdESession& /*aSession*/, TInt aError )
- {
+ {
if ( KErrNone != aError )
{
WRITELOG1( "HarvesterThread::HandleSessionError() - Error: %d!", aError );
@@ -2834,3 +2823,11 @@
return EFalse;
}
+void CHarvesterAO::RemoveBlacklistedFile( CHarvesterData* aItem )
+ {
+ if( iMdeSessionInitialized )
+ {
+ TRAP_IGNORE( iMdESession->RemoveObjectL( aItem->Uri() ) );
+ }
+ }
+