mpengine/inc/mpmpxdetailsframeworkwrapper_p.h
changeset 29 8192e5b5c935
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mpengine/inc/mpmpxdetailsframeworkwrapper_p.h	Thu May 27 12:49:57 2010 +0300
@@ -0,0 +1,67 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Framework wrapper - Private.
+*
+*/
+
+
+#ifndef MPMPXDETAILSFRAMEWORKWRAPPER_P_H_
+#define MPMPXDETAILSFRAMEWORKWRAPPER_P_H_
+
+#include <QObject>
+#include <mpxplaybackobserver.h>
+
+//forward declartions
+class MMPXPlaybackUtility;
+class MpMpxDetailsFrameworkWrapper;
+class CMPXMedia;
+class MpSongData;
+
+//class declaration
+class MpMpxDetailsFrameworkWrapperPrivate : public MMPXPlaybackObserver,
+                                            public MMPXPlaybackCallback
+{
+
+public:
+    explicit MpMpxDetailsFrameworkWrapperPrivate( MpMpxDetailsFrameworkWrapper *qq );
+    virtual ~MpMpxDetailsFrameworkWrapperPrivate();
+    
+    void init( TUid hostUid );
+    
+public: //from MMPXPlaybackObserver
+    void HandlePlaybackMessage( CMPXMessage *aMessage, TInt aError );
+    
+public: //from MMPXPlaybackCallback
+    void HandlePropertyL( TMPXPlaybackProperty aProperty, TInt aValue, TInt aError );
+    void HandleSubPlayerNamesL( TUid aPlayer, const MDesCArray *aSubPlayers,
+                                TBool aComplete, TInt aError );
+    void HandleMediaL( const CMPXMedia& aProperties, TInt aError );
+    
+public:
+    MpSongData *songData();
+    void retrieveSong();
+    
+private:
+    void DoInitL();
+    void doRetrieveSongL();
+    
+private:
+    MpMpxDetailsFrameworkWrapper             *q_ptr; //not owned
+    MpSongData                               *iSongData; // not owned
+    MMPXPlaybackUtility                      *iPlaybackUtility; // owned
+    TUid                                     mHostUid;
+};
+
+
+#endif /* MPMPXDETAILSFRAMEWORKWRAPPER_P_H_ */