📄 vrexengine.cpp
字号:
/*
* ============================================================================
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -