?? vrexengine.h
字號:
/*
* ============================================================================
* Name : CVRexEngine from VRexEngine.h
* Part of : Video Example
* Created : 30/08/2006 by Forum Nokia
* Implementation notes:
* Version : 2.0
* Copyright: Nokia Corporation, 2006
* ============================================================================
*/
#ifndef __VREXENGINE_H__
#define __VREXENGINE_H__
#include <e32base.h>
#include <f32file.h> // for CDir
#include <badesca.h> // for CDesCArray
#include <apmstd.h> // for TDataType
#include "VRexRecorderAdapter.h"
#include "VRexPlayerAdapter.h"
class CVideoPlayerAdapter;
class CVideoRecorderAdapter;
/**
* CVRexEng engine class.
*/
class CVRexEngine : public CBase
{
// Methods
public:
enum TEngineState
{
EInit = 0,
EPreview,
EPlay,
ERecord,
};
/**
* Two-phased constructor.
*/
static CVRexEngine* NewL();
/**
* Two-phased constructor.
*/
static CVRexEngine* NewLC();
/**
* Destructor.
*/
~CVRexEngine();
/**
* This method gets the video file name at the listbox position.
* @param aPosition, file position in listbox
* @param aName, file name
* @return void
*/
void GetVideoFilePathAndNameAtPosition(TInt aPosition, TDes &aName);
/**
* This method reads the appropriate directory list.
* @return file server response code.
*/
TInt StartFileList();
/**
* This method constructs the listbox items with directory
* information.
* @param aItems, listbox items
* @return void
*/
void GetFileListItemsL(CDesCArray* iItems);
/**
* This method sets which directory to list.
* @param aDirectory, directory to set
* @return void
*/
void SetDirectory(TInt aDirectory);
/**
* This method sets whether modification date or file size
* is shown. There is also an option for toggling the status.
* @param aSizeDate, set size or date
* @return void
*/
void SetSizeDate(TInt aSizeDate);
/**
* This method ends the file server session.
*/
void EndFileList();
/**
* This method returns current file name.
* @return TFileName
*/
TFileName CurrentFileName()
{
return iCurrentFileName;
}
/**
* This method sets engine state.
* @return TFileName
*/
void SetEngineState(TEngineState aEngineState)
{
iEngineState=aEngineState;
}
/**
* This method returns engine state.
* @return TFileName
*/
TEngineState EngineState()
{
return iEngineState;
}
private:
/**
* Standard EPOC 2nd phase constructor.
*/
void ConstructL();
/**
* Default constructor.
*/
CVRexEngine();
// Data members
public: // Public members are used to keep the example code simple
CVideoPlayerAdapter* iVPlayer;
CVideoRecorderAdapter* iVRecorder;
private:
TEngineState iEngineState;
private: //Data
// Define local CDir variable
CDir* iDirList;
// File server session
RFs iFsSession;
private: // variables
// Which directory to show
TInt iDirectory;
// Show date or size?
TInt iSizeDate;
//Current file name to play
TFileName iCurrentFileName;
};
#endif //__VREXENGINE_H__
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -