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: Framework wrapper - Private. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MPMPXDETAILSFRAMEWORKWRAPPER_P_H_ |
|
20 #define MPMPXDETAILSFRAMEWORKWRAPPER_P_H_ |
|
21 |
|
22 #include <qobject> |
|
23 #include <mpxplaybackobserver.h> |
|
24 |
|
25 //forward declartions |
|
26 class MMPXPlaybackUtility; |
|
27 class MpMpxDetailsFrameworkWrapper; |
|
28 class CMPXMedia; |
|
29 class MpSongData; |
|
30 |
|
31 //class declaration |
|
32 class MpMpxDetailsFrameworkWrapperPrivate : public MMPXPlaybackObserver, |
|
33 public MMPXPlaybackCallback |
|
34 { |
|
35 |
|
36 public: |
|
37 explicit MpMpxDetailsFrameworkWrapperPrivate( MpMpxDetailsFrameworkWrapper *qq ); |
|
38 virtual ~MpMpxDetailsFrameworkWrapperPrivate(); |
|
39 |
|
40 public: //from MMPXPlaybackObserver |
|
41 void HandlePlaybackMessage( CMPXMessage *aMessage, TInt aError ); |
|
42 |
|
43 public: //from MMPXPlaybackCallback |
|
44 void HandlePropertyL( TMPXPlaybackProperty aProperty, TInt aValue, TInt aError ); |
|
45 void HandleSubPlayerNamesL( TUid aPlayer, const MDesCArray *aSubPlayers, |
|
46 TBool aComplete, TInt aError ); |
|
47 void HandleMediaL( const CMPXMedia& aProperties, TInt aError ); |
|
48 |
|
49 public: |
|
50 MpSongData *songData(); |
|
51 void retrieveSong(); |
|
52 |
|
53 private: |
|
54 void constructProviderL(); |
|
55 void destructProviderL(); |
|
56 void doRetrieveSongL(); |
|
57 |
|
58 private: |
|
59 MpMpxDetailsFrameworkWrapper *q_ptr; //not owned |
|
60 MpSongData *iSongData; // not owned |
|
61 MMPXPlaybackUtility *iPlaybackUtility; // owned |
|
62 }; |
|
63 |
|
64 |
|
65 #endif /* MPMPXDETAILSFRAMEWORKWRAPPER_P_H_ */ |
|