mpengine/inc/mpmpxharvesterframeworkwrapper.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 03 May 2010 12:29:20 +0300
changeset 22 ecf06a08d4d9
child 29 8192e5b5c935
permissions -rw-r--r--
Revision: 201015 Kit: 201018

/*
* 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: Wrapper for mpx harvester framework utilities.
*
*/

#ifndef MPMPXHARVESTERFRAMEWORKWRAPPER_H
#define MPMPXHARVESTERFRAMEWORKWRAPPER_H

#include <QObject>
#include "mpmpxcommondefs.h"
#include "mpcommondefs.h"

class MpMpxHarvesterFrameworkWrapperPrivate;
class MpSongScannerHelper;
class HbNotificationDialog;
class QStringList;
class QTranslator;

class MpMpxHarvesterFrameworkWrapper : public QObject
{
    Q_OBJECT

    friend class MpMpxHarvesterFrameworkWrapperPrivate;

public:

    explicit MpMpxHarvesterFrameworkWrapper( 
                MpCommon::MpViewMode viewMode=MpCommon::DefaultView, TUid hostUid = TUid::Uid( MpCommon::KMusicPlayerUid ), QObject *parent=0 );
    virtual ~MpMpxHarvesterFrameworkWrapper();

    void scan();
    void cancelScan();
    void checkForSystemEvents();

signals:

    void scanStarted();
    void scanEnded( int count, int error );
    void scanCountChanged( int count );

    void diskEvent( MpxDiskEvents event );
    void usbEvent( MpxUsbEvents event );

private:

    Q_DISABLE_COPY( MpMpxHarvesterFrameworkWrapper )
    MpMpxHarvesterFrameworkWrapperPrivate *d_ptr;

};

#endif // MPMPXHARVESTERFRAMEWORKWRAPPER_H