35
|
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 |
void init( TUid hostUid );
|
|
41 |
|
|
42 |
public: //from MMPXPlaybackObserver
|
|
43 |
void HandlePlaybackMessage( CMPXMessage *aMessage, TInt aError );
|
|
44 |
|
|
45 |
public: //from MMPXPlaybackCallback
|
|
46 |
void HandlePropertyL( TMPXPlaybackProperty aProperty, TInt aValue, TInt aError );
|
|
47 |
void HandleSubPlayerNamesL( TUid aPlayer, const MDesCArray *aSubPlayers,
|
|
48 |
TBool aComplete, TInt aError );
|
|
49 |
void HandleMediaL( const CMPXMedia& aProperties, TInt aError );
|
|
50 |
|
|
51 |
public:
|
|
52 |
MpSongData *songData();
|
|
53 |
void retrieveSong();
|
|
54 |
|
|
55 |
private:
|
|
56 |
void DoInitL();
|
|
57 |
void doRetrieveSongL();
|
|
58 |
|
|
59 |
private:
|
|
60 |
MpMpxDetailsFrameworkWrapper *q_ptr; //not owned
|
|
61 |
MpSongData *iSongData; // not owned
|
|
62 |
MMPXPlaybackUtility *iPlaybackUtility; // owned
|
|
63 |
TUid mHostUid;
|
|
64 |
};
|
|
65 |
|
|
66 |
|
|
67 |
#endif /* MPMPXDETAILSFRAMEWORKWRAPPER_P_H_ */
|