--- a/mpengine/src/mpsongscanner.cpp Thu Sep 02 20:24:03 2010 +0300
+++ b/mpengine/src/mpsongscanner.cpp Fri Sep 17 08:28:52 2010 +0300
@@ -59,7 +59,7 @@
{
TX_ENTRY
connect( mMpxHarvesterWrapper, SIGNAL( scanStarted() ),
- this, SIGNAL( scanStarted() ), Qt::QueuedConnection );
+ this, SLOT( handleScanStarted() ), Qt::QueuedConnection );
connect( mMpxHarvesterWrapper, SIGNAL( scanEnded( int, int ) ),
this, SLOT( handleScanEnded( int, int ) ), Qt::QueuedConnection );
connect( mMpxHarvesterWrapper, SIGNAL( scanCountChanged( int ) ),
@@ -116,12 +116,24 @@
}
/*!
+ Slot called upon notification from MPX Harvesting FW indicating start of
+ scanning process.
+ */
+void MpSongScanner::handleScanStarted()
+{
+ TX_ENTRY
+ mScanning = true;
+ emit scanStarted();
+ TX_EXIT
+}
+
+/*!
Slot called upon notification from MPX Harvesting FW indicating end of
scanning process.
*/
void MpSongScanner::handleScanEnded( int numItemsAdded, int error )
{
- TX_ENTRY
+ TX_ENTRY_ARGS("error=" << error << ", numItemsAdded=" << numItemsAdded);
if (error == KErrDiskFull) {
emit scanFinished( ScanErrorDiskFull, 0 );
mScanning = false;