videoplayerengine.h

来自「《基于Symbian OS的手机开发与应用实践》这本书的配套源码。」· C头文件 代码 · 共 85 行

H
85
字号
/*
* ============================================================================
*  Name     : CVideoPlayerEngine from VideoPlayerEngine.h
*  Part of  : VideoPlayer
*  Created  : 31.01.2006 by ToBeReplacedByAuthor
*  Description:
*     Declares engine for application.
*  Version  :
*  Copyright: ToBeReplacedByCopyright
* ============================================================================
*/

#ifndef VIDEOPLAYERENGINE_H
#define VIDEOPLAYERENGINE_H

// INCLUDES
#include <e32base.h>
#include <videoplayer.h>

// CONSTANTS

// FORWARD DECLARATIONS


// CLASS DECLARATION

/**
*  CVideoPlayerEngine application class.
*/
class CVideoPlayerEngine : public CBase, public MVideoPlayerUtilityObserver
    {
    public: // Observer interface
        class MObserver
            {
            public:
                virtual void OnComplete(TInt aError) = 0;
            };

    public: // Constructors and destructor
        /**
        * Two-phased constructor.
        */
        static CVideoPlayerEngine* NewL(MObserver& aObserver, RWindowBase& aWindow);

        /**
        * Destructor.
        */
        virtual ~CVideoPlayerEngine();

    public: // Functions from base classes

    public: // Functions from MVideoPlayerUtilityObserver
        void MvpuoOpenComplete(TInt aError);
        void MvpuoPrepareComplete(TInt aError);
        void MvpuoFrameReady(CFbsBitmap& aFrame,TInt aError);
        void MvpuoPlayComplete(TInt aError);
        void MvpuoEvent(const TMMFEvent& aEvent);

    public: // New functions
        void PlayL(const TFileName& aFileName);
        void Play();
        void PauseL();
        void Stop();

    protected:  // New functions

    protected:  // Functions from base classes

    private:
        /**
        * EPOC default constructor.
        */
        CVideoPlayerEngine(MObserver& aObserver, RWindowBase& aWindow);
        void ConstructL();

    private: // member variables
        MObserver& iObserver;
        RWindowBase& iWindow;
        CVideoPlayerUtility* iVideoPlayer;
    };

#endif

// End of File

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?