|
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 |
|
27 class MpMpxHarvesterFrameworkWrapper : public QObject |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 friend class MpMpxHarvesterFrameworkWrapperPrivate; |
|
32 |
|
33 public: |
|
34 |
|
35 explicit MpMpxHarvesterFrameworkWrapper( TUid hostUid = TUid::Uid( MpCommon::KMusicPlayerUid ), QObject *parent=0 ); |
|
36 virtual ~MpMpxHarvesterFrameworkWrapper(); |
|
37 |
|
38 void scan(); |
|
39 void cancelScan(); |
|
40 void checkForSystemEvents(); |
|
41 |
|
42 signals: |
|
43 |
|
44 void scanStarted(); |
|
45 void scanEnded( int count, int error ); |
|
46 void scanCountChanged( int count ); |
|
47 |
|
48 void diskEvent( MpxDiskEvents event ); |
|
49 void usbEvent( MpxUsbEvents event ); |
|
50 |
|
51 private: |
|
52 |
|
53 Q_DISABLE_COPY( MpMpxHarvesterFrameworkWrapper ) |
|
54 MpMpxHarvesterFrameworkWrapperPrivate *d_ptr; |
|
55 |
|
56 }; |
|
57 |
|
58 #endif // MPMPXHARVESTERFRAMEWORKWRAPPER_H |