|
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 global popup handler. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MPGLOBALPOPUPHANDLER_H |
|
19 #define MPGLOBALPOPUPHANDLER_H |
|
20 |
|
21 #include <QObject> |
|
22 |
|
23 class HbPopup; |
|
24 class HbAction; |
|
25 class MpEngine; |
|
26 class MpSongScanner; |
|
27 |
|
28 class MpGlobalPopupHandler : public QObject |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 MpGlobalPopupHandler( QObject *parent = 0 ); |
|
34 virtual ~MpGlobalPopupHandler(); |
|
35 |
|
36 void cancelOngoingPopup(); |
|
37 |
|
38 public slots: |
|
39 |
|
40 // Scanning related dialogs |
|
41 void handleLibraryAboutToUpdate(); |
|
42 void launchScanDialog(); |
|
43 void scanCountChanged( int count ); |
|
44 void handleScanFinished( int error, int itemsAdded ); |
|
45 |
|
46 // Usb related dialogs |
|
47 void launchUnableToCotinueDueUsb(); |
|
48 void launchUsbBlockingNote(); |
|
49 void closeUsbBlockingNote(); |
|
50 void launchRefreshLibraryRequest(); |
|
51 void launchMTPInfoDialog(); |
|
52 void hanldeMTPInfoDialogFinished( HbAction *selectedAction ); |
|
53 |
|
54 void outstandingPopupClosing(); |
|
55 |
|
56 private: |
|
57 void launchScanFinishedDialog( bool ok, int itemsAdded ); |
|
58 void launchDiskFullDialog(); |
|
59 void setOutstandingPopup( HbPopup *popup ); |
|
60 |
|
61 private: |
|
62 HbPopup *mOutstandingPopup; // Own |
|
63 MpEngine *mMpEngine; // Not own |
|
64 MpSongScanner *mMpSongScanner; // Not own |
|
65 }; |
|
66 |
|
67 #endif // MPGLOBALPOPUPHANDLER_H |
|
68 |