mpengine/tsrc/unittest_mpmpxplaybackframeworkwrapper/stub/inc/mpxplaybackutility.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 18 Aug 2010 09:46:20 +0300
changeset 48 af3740e3753f
parent 32 c163ef0b758d
child 55 f3930dda3342
permissions -rw-r--r--
Revision: 201031 Kit: 201033

/*
* 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: mpxplaybackutility stub for testing mpmpxframeworkwrapper
*
*/


#ifndef MMPXPLAYBACKUTILITY_H
#define MMPXPLAYBACKUTILITY_H

#include <mpxplaybackframeworkdefs.h>
#include <mpxcommonframeworkdefs.h>
#include <badesca.h>
#include <mpxattribute.h>
#include <mpxattributespecs.h>

//Forward declarations
class CMPXCollectionPlaylist;
class MMPXPlaybackObserver;  
class MMPXPlaybackCallback;

class MMPXSource
{
public:
    //MMPXSource interface for playback utility stub
    virtual CMPXCollectionPlaylist* PlaylistL()=0;
    virtual void MediaL(const TArray<TMPXAttribute>& aAttrs,
                    MMPXPlaybackCallback& aCallback)=0;

 
};

class MMPXPlaybackUtility: public MMPXSource
{
public:

    // Stub functions
    MMPXPlaybackUtility();
    ~MMPXPlaybackUtility();
    static MMPXPlaybackUtility* UtilityL(const TUid& aModeId = KPbModeDefault);
    void AddObserverL(MMPXPlaybackObserver& aObs);
    void RemoveObserverL(MMPXPlaybackObserver& aObs);
    void Close();
    void CommandL(TMPXPlaybackCommand aCmd,TInt aData=0);
    void CommandL(CMPXCommand& aCmd, MMPXPlaybackCallback* aCallback=NULL);
    void PropertyL(MMPXPlaybackCallback& aCallback, TMPXPlaybackProperty aProperty);
    MMPXSource* Source();
     void SetL(TMPXPlaybackProperty aProperty, TInt aValue);
    TMPXPlaybackState StateL() const;
    // Stub function from MMPXSource
    CMPXCollectionPlaylist* PlaylistL();
    void MediaL(const TArray<TMPXAttribute>& aAttrs,
                    MMPXPlaybackCallback& aCallback);
    void InitL(RFile& aShareableFile);
    void InitL(const TDesC& aUri,const TDesC8* aType=NULL);
    

public:

    TInt                    iValue;
    TInt                    iComandData;
    TMPXPlaybackProperty    iProperty;
    MMPXPlaybackObserver*   iObs;
    TMPXPlaybackCommand     iCmd;
    CMPXCommand*            iCMPXCmd;
    TMPXPlaybackState       iState;
    RArray<TMPXAttribute>*  iAttrs;
    bool                    iInitialized;
    bool                    iReturnSource;
};

#endif      // MMPXPLAYBACKUTILITY_H