mpengine/tsrc/unittest_mpengine/stub/src/mpmpxharvesterframeworkwrapper.cpp
changeset 48 af3740e3753f
child 55 f3930dda3342
equal deleted inserted replaced
42:79c49924ae23 48:af3740e3753f
       
     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 #include "stub/inc/mpmpxharvesterframeworkwrapper.h"
       
    19 
       
    20 /*!
       
    21  Stub function.
       
    22  */
       
    23 MpMpxHarvesterFrameworkWrapper::MpMpxHarvesterFrameworkWrapper( TUid hostUid, QObject *parent )
       
    24     : QObject( parent ),
       
    25       mScanRequested( false ),
       
    26       mScanning( false ),
       
    27       mScanCount( -1 ),
       
    28       mCheckSystemEventsRequested( false )
       
    29 {
       
    30     Q_UNUSED( hostUid );
       
    31 }
       
    32 
       
    33 
       
    34 /*!
       
    35  Stub function.
       
    36  */
       
    37 MpMpxHarvesterFrameworkWrapper::~MpMpxHarvesterFrameworkWrapper()
       
    38 {
       
    39 }
       
    40 
       
    41 /*!
       
    42  Stub function.
       
    43  */
       
    44 void MpMpxHarvesterFrameworkWrapper::scan()
       
    45 {
       
    46     mScanRequested = true;
       
    47 }
       
    48 
       
    49 /*!
       
    50  Stub function.
       
    51  */
       
    52 void MpMpxHarvesterFrameworkWrapper::cancelScan()
       
    53 {
       
    54     mScanRequested = false;
       
    55 }
       
    56 
       
    57 /*!
       
    58  Stub function.
       
    59  */
       
    60 void MpMpxHarvesterFrameworkWrapper::checkForSystemEvents()
       
    61 {
       
    62     mCheckSystemEventsRequested = true;
       
    63 }
       
    64 
       
    65 /*!
       
    66  Stub function.
       
    67  */
       
    68 void MpMpxHarvesterFrameworkWrapper::emitScanStarted()
       
    69 {
       
    70     mScanning = true;
       
    71     emit scanStarted();
       
    72 }
       
    73 
       
    74 /*!
       
    75  Stub function.
       
    76  */
       
    77 void MpMpxHarvesterFrameworkWrapper::emitScanEnded( int count, int error )
       
    78 {
       
    79     mScanning = false;
       
    80     emit scanEnded( count, error );
       
    81 }
       
    82 
       
    83 /*!
       
    84  Stub function.
       
    85  */
       
    86 void MpMpxHarvesterFrameworkWrapper::emitScanCountChanged( int count )
       
    87 {
       
    88     emit scanCountChanged( count );
       
    89 }
       
    90 
       
    91 /*!
       
    92  Stub function.
       
    93  */
       
    94 void MpMpxHarvesterFrameworkWrapper::emitDiskEvent()
       
    95 {
       
    96     emit diskEvent( DiskInserted );
       
    97 }