mpengine/tsrc/unittest_mpsongscanner/stub/inc/mpmpxharvesterframeworkwrapper.h
changeset 37 eb79a7c355bf
equal deleted inserted replaced
36:a0afa279b8fe 37:eb79a7c355bf
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Stub class for mpsongscanner unittest.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPMPXHARVESTERFRAMEWORKWRAPPER_H
       
    19 #define MPMPXHARVESTERFRAMEWORKWRAPPER_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 #include "mpmpxcommondefs.h"
       
    24 
       
    25 class MpMpxHarvesterFrameworkWrapper : public QObject
       
    26 {
       
    27     Q_OBJECT
       
    28 
       
    29 public:
       
    30     explicit MpMpxHarvesterFrameworkWrapper( QObject *parent=0 );
       
    31     virtual ~MpMpxHarvesterFrameworkWrapper();
       
    32 
       
    33     // mock functions
       
    34     void scan();
       
    35     void cancelScan();
       
    36     void checkForSystemEvents();
       
    37 
       
    38     // unittest specific functions
       
    39     void emitScanStarted();
       
    40     void emitScanEnded( int count, int error );
       
    41     void emitScanCountChanged( int count );
       
    42     void emitDiskEvent();
       
    43 
       
    44 signals:
       
    45     void scanStarted();
       
    46     void scanEnded( int count, int error );
       
    47     void scanCountChanged( int count );
       
    48 
       
    49     void diskEvent( MpxDiskEvents event );
       
    50 
       
    51 public:
       
    52     bool     mScanRequested;
       
    53     bool     mScanning;
       
    54     int      mScanCount;
       
    55     bool     mCheckSystemEventsRequested;
       
    56 
       
    57 };
       
    58 
       
    59 #endif // MPMPXHARVESTERFRAMEWORKWRAPPER_H