vrexengine.cpp

来自「S60官方视屏播放器程序」· C++ 代码 · 共 119 行

CPP
119
字号
/*
* ============================================================================
*  Name     : CVRexEngine from VRexEngine.cpp
*  Part of  : Video Recording Example (VRex)
*  Created  : 16.03.2004 by Nokia Forum
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

// INCLUDE FILES
#include "VRexEngine.h"
#include "VRexView.h"
#include "Videorecorderadapter.h"

/*
-----------------------------------------------------------------------------

	CVRexEngine* CVRexEngine::NewL()

	Description: Two-phased constructor.
	Comments   : 

    Return values: CVRexEngine

-----------------------------------------------------------------------------
*/
CVRexEngine* CVRexEngine::NewL(
	CVRexView* aView)
	{
	CVRexEngine* self = 
		CVRexEngine::NewLC(aView);
    CleanupStack::Pop(self);
	return self;
	}

/*
-----------------------------------------------------------------------------

	CVRexEngine* CVRexEngine::NewLC()

	Description: Two-phased constructor.
	Comments   : Leaves object in top of cleanup stack

    Return values: CVRexEngine

-----------------------------------------------------------------------------
*/
CVRexEngine* CVRexEngine::NewLC(
	CVRexView* aView)
	{
	CVRexEngine* self = 
		new (ELeave) CVRexEngine();
	CleanupStack::PushL(self);
	self->ConstructL(aView);
	return self;
	}

/*
-----------------------------------------------------------------------------

	void CVRexEngine::ConstructL(CVRexView* aView)

	Description: Second phase constructor.
	Comments   : 

    Return values: N/A

-----------------------------------------------------------------------------
*/
void CVRexEngine::ConstructL(CVRexView* aView)
	{
	iView = aView; 
	iVPlayer = CVideoPlayerAdapter::NewL(); 
	iVRecorder = CVideoRecorderAdapter::NewL(this);
	}

/*
-----------------------------------------------------------------------------

	CVRexEngine::CVRexEngine()

	Description: Constructor.
	Comments   : 

    Return values: N/A

-----------------------------------------------------------------------------
*/
CVRexEngine::CVRexEngine()
	{
	}

/*
-----------------------------------------------------------------------------

	CVRexEngine::~CVRexEngine()

	Description: Destructor.
	Comments   : 

    Return values: N/A

-----------------------------------------------------------------------------
*/
CVRexEngine::~CVRexEngine()
{
	iView = NULL;

	delete iVPlayer;
	iVPlayer = NULL;

	delete iVRecorder;
	iVRecorder = NULL;
}

// End of File  

⌨️ 快捷键说明

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