videoplayback/videoplaybackview/tsrc/testvideoplaybackview/stub/inc/mpxvideoviewwrapper.h
author hgs
Fri, 23 Jul 2010 11:10:06 +0300
changeset 49 824471cb468a
parent 44 518105d52e45
child 50 21fe8338c6bf
permissions -rw-r--r--
201029

/*
* Copyright (c) 2008 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:  MPX Video base playback view
*
*/

// Version : %version:  8 %



// This file defines the API for .dll

#ifndef __MPXVIDEOVIEWWRAPPER_H__
#define __MPXVIDEOVIEWWRAPPER_H__

//  Include Files

#include <e32base.h>	// CBase
#include <e32std.h>	 // TBuf
#include <mpxcollectionobserver.h>


#include "videoplaybackcontrol.hrh"

//  Constants

//  Forward Declarations
class VideoBasePlaybackView;
class VideoPlaybackViewFileDetails;
class CMPXCollectionUtility;
class CMPXMedia;
class CMPXCollectionPlaylist;


//  Class Definitions

class CMPXVideoViewWrapper : public CBase,
                             public MMPXCollectionObserver
{
    public:
        static CMPXVideoViewWrapper* NewL( VideoBasePlaybackView* aView );
        virtual ~CMPXVideoViewWrapper();

    private:
        CMPXVideoViewWrapper( VideoBasePlaybackView* aView );
        void ConstructL();

        void SetFileDetails(TBool aDefault);

    public:
        void HandleCommandL( TInt aCommand );

        TBool IsLive();

        TBool IsPlaylist();

        TBool IsMultiItemPlaylist();

        void RequestMediaL();

        void CreateGeneralPlaybackCommandL( int aCmd );

        void ActivateClosePlayerActiveObject();

        void IssueVideoAppForegroundCmdL( TBool aForeground );
        
        inline void HandleOpenL( const CMPXMedia& /*aEntries*/,
                                 TInt /*aIndex*/,
                                 TBool /*aComplete*/,
                                 TInt /*aError*/ ) {}

        inline void HandleOpenL( const CMPXCollectionPlaylist& /*aPlaylist*/, TInt /*aError*/ ) {}        
        
        inline void HandleCollectionMediaL( const CMPXMedia& /*aMedia*/, TInt /*aError*/ ) {}
        
        TInt GetMediaId();


    public: // data

        VideoBasePlaybackView*           iView;
        TBool                            iMediaRequested;
        VideoPlaybackViewFileDetails*    iFileDetails;
        TBool                            iClosePlayerAO;
        TBool                            iForeground;
        TInt                             iCommand;
        TInt                             iPlayPosition;
};

#endif  // __MPXVIDEOVIEWWRAPPER_H__

// EOF