equal
deleted
inserted
replaced
|
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: Music Player song scanner. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MPSONGSCANNER_H |
|
20 #define MPSONGSCANNER_H |
|
21 |
|
22 class MpMpxFrameworkWrapper; |
|
23 class HbProgressDialog; |
|
24 |
|
25 #include <QObject> |
|
26 #include "mpmpxcommondefs.h" |
|
27 |
|
28 class MpSongScanner : public QObject |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 |
|
34 explicit MpSongScanner( MpMpxFrameworkWrapper *wrapper, QObject *parent=0 ); |
|
35 virtual ~MpSongScanner(); |
|
36 |
|
37 void scan(); |
|
38 bool isScanning(); |
|
39 |
|
40 public slots: |
|
41 |
|
42 void cancelScan(); |
|
43 void handleScanStarted(); |
|
44 void handleScanEnded( int numItemsAdded, int error ); |
|
45 void handleScanCountChanged(int count); |
|
46 void handleDiskEvent( MpxDiskEvents event ); |
|
47 void handleProgressNoteClosing(); |
|
48 |
|
49 private: |
|
50 |
|
51 MpMpxFrameworkWrapper *mMpxWrapper; // Not own |
|
52 HbProgressDialog *mScanProgressNote; // Own |
|
53 TBool mScanning; |
|
54 |
|
55 }; |
|
56 |
|
57 #endif // MPSONGSCANNER_H |
|
58 |