mpengine/tsrc/unittest_mpengine/stub/inc/mpmpxharvesterframeworkwrapper.h
changeset 48 af3740e3753f
child 55 f3930dda3342
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mpengine/tsrc/unittest_mpengine/stub/inc/mpmpxharvesterframeworkwrapper.h	Wed Aug 18 09:46:20 2010 +0300
@@ -0,0 +1,61 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Stub class for mpsongscanner unittest.
+*
+*/
+
+#ifndef MPMPXHARVESTERFRAMEWORKWRAPPER_H
+#define MPMPXHARVESTERFRAMEWORKWRAPPER_H
+
+#include <QObject>
+
+#include "mpmpxcommondefs.h"
+#include "mpcommondefs.h"
+
+class MpMpxHarvesterFrameworkWrapper : public QObject
+{
+    Q_OBJECT
+
+public:
+    explicit MpMpxHarvesterFrameworkWrapper( TUid hostUid = TUid::Uid( MpCommon::KMusicPlayerUid ), QObject *parent=0 );
+    virtual ~MpMpxHarvesterFrameworkWrapper();
+
+    // mock functions
+    void scan();
+    void cancelScan();
+    void checkForSystemEvents();
+
+    // unittest specific functions
+    void emitScanStarted();
+    void emitScanEnded( int count, int error );
+    void emitScanCountChanged( int count );
+    void emitDiskEvent();
+
+signals:
+    void scanStarted();
+    void scanEnded( int count, int error );
+    void scanCountChanged( int count );
+
+    void diskEvent( MpxDiskEvents event );
+    void usbEvent( MpxUsbEvents event );
+
+public:
+    bool     mScanRequested;
+    bool     mScanning;
+    int      mScanCount;
+    bool     mCheckSystemEventsRequested;
+
+};
+
+#endif // MPMPXHARVESTERFRAMEWORKWRAPPER_H