|
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: Wrapper for mpx harvester framework utilities. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MPMPXHARVESTERFRAMEWORKWRAPPER_H |
|
19 #define MPMPXHARVESTERFRAMEWORKWRAPPER_H |
|
20 |
|
21 #include <QObject> |
|
22 #include "mpmpxcommondefs.h" |
|
23 #include "mpcommondefs.h" |
|
24 |
|
25 class MpMpxHarvesterFrameworkWrapperPrivate; |
|
26 class MpSongScannerHelper; |
|
27 class HbNotificationDialog; |
|
28 class QStringList; |
|
29 class QTranslator; |
|
30 |
|
31 class MpMpxHarvesterFrameworkWrapper : public QObject |
|
32 { |
|
33 Q_OBJECT |
|
34 |
|
35 friend class MpMpxHarvesterFrameworkWrapperPrivate; |
|
36 |
|
37 public: |
|
38 |
|
39 explicit MpMpxHarvesterFrameworkWrapper( |
|
40 MpCommon::MpViewMode viewMode=MpCommon::DefaultView, TUid hostUid = TUid::Uid( MpCommon::KMusicPlayerUid ), QObject *parent=0 ); |
|
41 virtual ~MpMpxHarvesterFrameworkWrapper(); |
|
42 |
|
43 void scan(); |
|
44 void cancelScan(); |
|
45 void checkForSystemEvents(); |
|
46 |
|
47 signals: |
|
48 |
|
49 void scanStarted(); |
|
50 void scanEnded( int count, int error ); |
|
51 void scanCountChanged( int count ); |
|
52 |
|
53 void diskEvent( MpxDiskEvents event ); |
|
54 void usbEvent( MpxUsbEvents event ); |
|
55 |
|
56 private: |
|
57 |
|
58 Q_DISABLE_COPY( MpMpxHarvesterFrameworkWrapper ) |
|
59 MpMpxHarvesterFrameworkWrapperPrivate *d_ptr; |
|
60 |
|
61 }; |
|
62 |
|
63 #endif // MPMPXHARVESTERFRAMEWORKWRAPPER_H |