[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepim-runtime/KDE/4.8] agents/nepomukfeeder: Qualify status enums so updates work
From:       Will Stephenson <wstephenson () kde ! org>
Date:       2012-02-21 21:48:14
Message-ID: 20120221214814.B54E2A60A6 () git ! kde ! org
[Download RAW message or body]

Git commit ea38afe51a945167d94489888002a070a096f4c7 by Will Stephenson.
Committed on 21/02/2012 at 22:49.
Pushed by wstephens into branch 'KDE/4.8'.

Qualify status enums so updates work

M  +7    -7    agents/nepomukfeeder/nepomukfeederagent.cpp

http://commits.kde.org/kdepim-runtime/ea38afe51a945167d94489888002a070a096f4c7

diff --git a/agents/nepomukfeeder/nepomukfeederagent.cpp b/agents/nepomukfeeder/nepomukfeederagent.cpp
index 676fe3a..0808ee3 100644
--- a/agents/nepomukfeeder/nepomukfeederagent.cpp
+++ b/agents/nepomukfeeder/nepomukfeederagent.cpp
@@ -199,7 +199,7 @@ void NepomukFeederAgent::selfTest()
     KConfigGroup cfgGrp( &config, "akonadi_nepomuk_email_feeder" );
     if ( !cfgGrp.readEntry( "Enabled", true ) ) {
       checkOnline();
-      emit status( Broken, i18n( "Indexing has been disabled by you." ) );
+      emit status( AgentBase::Broken, i18n( "Indexing has been disabled by you." ) );
       return;
     }
   }
@@ -215,7 +215,7 @@ void NepomukFeederAgent::selfTest()
       mNepomukStartupTimeout.start();
       // wait for Nepomuk to start
       checkOnline();
-      emit status( Broken, i18n( "Waiting for the Nepomuk server to start..." ) );
+      emit status( AgentBase::Broken, i18n( "Waiting for the Nepomuk server to start..." ) );
       return;
     }
   }
@@ -224,7 +224,7 @@ void NepomukFeederAgent::selfTest()
     if ( mNepomukStartupAttempted && mNepomukStartupTimeout.isActive() ) {
       // still waiting for Nepomuk to start
       setOnline( false );
-      emit status( Broken, i18n( "Waiting for the Nepomuk server to start..." ) );
+      emit status( AgentBase::Broken, i18n( "Waiting for the Nepomuk server to start..." ) );
       return;
     } else {
       errorMessages.append( i18n( "Nepomuk is not running." ) );
@@ -246,13 +246,13 @@ void NepomukFeederAgent::selfTest()
       mQueue.setReindexing(false);
       QTimer::singleShot( 0, this, SLOT(updateAll()) );
     } else {
-      emit status( Idle, i18n( "Ready to index data." ) );
+      emit status( AgentBase::Idle, i18n( "Ready to index data." ) );
     }
     return;
   }
 
   checkOnline();
-  emit status( Broken, i18n( "Nepomuk is not operational: %1", errorMessages.join( " " ) ) );
+  emit status( AgentBase::Broken, i18n( "Nepomuk is not operational: %1", errorMessages.join( " " ) ) );
 }
 
 void NepomukFeederAgent::disableIdleDetection( bool value )
@@ -306,7 +306,7 @@ void NepomukFeederAgent::systemIdle()
   if ( mIdleDetectionDisabled )
     return;
 
-  emit status( Idle, i18n( "System idle, ready to index data." ) );
+  emit status( AgentBase::Idle, i18n( "System idle, ready to index data." ) );
   mSystemIsIdle = true;
   KIdleTime::instance()->catchNextResumeEvent();
   mQueue.setIndexingSpeed( FeederQueue::FullSpeed );
@@ -317,7 +317,7 @@ void NepomukFeederAgent::systemResumed()
   if ( mIdleDetectionDisabled )
     return;
 
-  emit status( Idle, i18n( "System busy, indexing suspended." ) );
+  emit status( AgentBase::Idle, i18n( "System busy, indexing suspended." ) );
   mSystemIsIdle = false;
   mQueue.setIndexingSpeed( FeederQueue::ReducedSpeed );
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic