app/tsrc/unittest_mpglobalpopuphandler/stub/inc/mpsongscanner.h
changeset 48 af3740e3753f
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 for song scanner.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPSONGSCANNER_H
       
    20 #define MPSONGSCANNER_H
       
    21 
       
    22 class MpMpxHarvesterFrameworkWrapper;
       
    23 
       
    24 #include <QObject>
       
    25 
       
    26 class MpSongScanner : public QObject
       
    27 {
       
    28     Q_OBJECT
       
    29 
       
    30 public:
       
    31     enum ScanError{
       
    32         ScanErrorNone,
       
    33         ScanGeneralError,
       
    34         ScanErrorDiskFull,
       
    35         ScanInterrupted
       
    36     };
       
    37     
       
    38     MpSongScanner();
       
    39     virtual ~MpSongScanner();
       
    40 
       
    41     void scan( bool automaticScan );
       
    42     bool isAutomaticScan();
       
    43     
       
    44 signals:
       
    45     void scanStarted();
       
    46     void scanCountChanged( int count );
       
    47     void scanFinished( int error, int itemsAdded );    
       
    48 
       
    49 public:
       
    50     bool                                 mAutomaticScan;
       
    51 };
       
    52 
       
    53 #endif // MPSONGSCANNER_H
       
    54