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 Progress Dialogs. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MPPROGRESSDIALOGHANDLER_H |
|
20 #define MPPROGRESSDIALOGHANDLER_H |
|
21 |
|
22 #include "mpmpxcommondefs.h" |
|
23 #include "mpmpxcollectionviewdefs.h" |
|
24 |
|
25 class MpMpxCollectionFrameworkWrapper; |
|
26 class MpMpxHarvesterFrameworkWrapper; |
|
27 class HbProgressDialog; |
|
28 class HbPopup; |
|
29 |
|
30 #include <QObject> |
|
31 |
|
32 class MpProgressDialogHandler : public QObject |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 public: |
|
37 |
|
38 explicit MpProgressDialogHandler( MpMpxCollectionFrameworkWrapper *cwrapper, MpMpxHarvesterFrameworkWrapper *hwrapper , QObject *parent=0 ); |
|
39 virtual ~ MpProgressDialogHandler(); |
|
40 void scan(); |
|
41 bool isScanning(); |
|
42 |
|
43 void deleteSongs( QList<int> &selection ); |
|
44 |
|
45 |
|
46 signals: |
|
47 |
|
48 void deleteStarted(); |
|
49 void songsDeleted( bool success ); |
|
50 |
|
51 |
|
52 public slots: |
|
53 |
|
54 void cancelRequest(); |
|
55 void handleDeleteStarted( TCollectionContext context, TInt count ); |
|
56 void handleDeleteEnded( bool success ); |
|
57 void handleAddSongs(); |
|
58 void handleAddSongsFinished( bool success); |
|
59 void cancelScan(); |
|
60 void handleScanStarted(); |
|
61 void handleScanEnded( int numItemsAdded, int error ); |
|
62 void handleScanCountChanged(int count); |
|
63 void handleDiskEvent( MpxDiskEvents event ); |
|
64 void handleOutstandingPopupClosing(); |
|
65 |
|
66 |
|
67 private: |
|
68 |
|
69 void setOutstandingPopup( HbPopup *popup ); |
|
70 void clearOutstandingPopup( HbPopup *popup ); |
|
71 |
|
72 MpMpxCollectionFrameworkWrapper *mMpxCollectionWrapper; // Not own |
|
73 MpMpxHarvesterFrameworkWrapper *mMpxHarvesterWrapper; // Not own |
|
74 HbPopup *mOutStandingProgressNote; // Own |
|
75 TBool mDeleting; |
|
76 TBool mScanning; |
|
77 }; |
|
78 |
|
79 #endif // MPSONGDELETING_H |
|
80 |
|