📄 asyncserialengine.h
字号:
/*
* ============================================================================
* Name : CAsyncSerialEngine from AsyncSerialEngine.h
* Part of : AsyncSerial
* Created : 23.02.2006 by ToBeReplacedByAuthor
* Description:
* Declares engine for application.
* Version :
* Copyright: ToBeReplacedByCopyright
* ============================================================================
*/
#ifndef ASYNCSERIALENGINE_H
#define ASYNCSERIALENGINE_H
// INCLUDES
#include <e32base.h>
#include <c32comm.h>
// FORWARD DECLARATIONS
// CLASS DECLARATION
/**
* CAsyncSerialEngine class.
*
*/
class CAsyncSerialEngine : public CActive
{
public:
class MObserver
{
public:
virtual void OnCompleteL(TInt aError) = 0;
};
public: // Constructors and destructor
/**
* Two-phased constructor.
*/
static CAsyncSerialEngine* NewL(MObserver& aObserver);
/**
* Destructor.
*/
~CAsyncSerialEngine();
public: // New functions
void Receive(TDes8& aData);
protected: // Functions from CActive
void DoCancel();
void RunL();
private: // Constructors
/**
* Constructor
*/
CAsyncSerialEngine(MObserver& aObserver);
/**
* EPOC default constructor.
*/
void ConstructL();
private: // New functions
void InitializeL();
void OpenL();
void ConfigurateL();
void Close();
private: //data
MObserver& iObserver;
RCommServ iCommServ;
RComm iComm;
};
#endif
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -