activeconsole.h
来自「OggPlay for Symbian 是symbian上的一个媒体播放程序的源」· C头文件 代码 · 共 62 行
H
62 行
#ifndef CACTIVECONSOLE
#define CACTIVECONSOLE 1
#include <e32cons.h>
//////////////////////////////////////////////////////////////////////////////
//
// -----> CActiveConsole (definition)
//
// An abstract class which provides the facility to issue key requests.
//
//////////////////////////////////////////////////////////////////////////////
class CActiveConsole : public CActive
{
public:
// Construction
CActiveConsole(CConsoleBase* aConsole);
void ConstructL();
// Destruction
~CActiveConsole();
// Issue request
void RequestCharacter();
// Cancel request.
// Defined as pure virtual by CActive;
// implementation provided by this class.
void DoCancel();
// Service completed request.
// Defined as pure virtual by CActive;
// implementation provided by this class,
void RunL();
// Called from RunL() - an implementation must be provided
// by derived classes to handle the completed request
virtual void ProcessKeyPress(TChar aChar) = 0;
protected:
// Data members defined by this class
CConsoleBase* iConsole; // A console for reading from
TInt iAction;
enum { EWaitForKey=100,
EWaitForStop};
};
class CEventHandler : public CActiveConsole
{
public:
CEventHandler(CConsoleBase* aConsole);
private:
void ProcessKeyPress(TChar aChar);
};
#define OUTFILE 0
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?