igsinterface.h
来自「qgo-1.5.4-r3.tar.gz linux下一个很好玩的游戏」· C头文件 代码 · 共 46 行
H
46 行
/** IGSInterface.h*/#ifndef IGSINTERFACE_H#define IGSINTERFACE_H#include <qstring.h>// maybe this should be elsewhere ...typedef void (*callBackFP_t)(QString);template <class T> class callBackImpl {public: callBackImpl() { callbackFP = NULL; } void registerCallback(T fp) { if (fp != NULL) callbackFP = fp; }; protected: T callbackFP;};class IGSInterface : public callBackImpl<callBackFP_t>{public: IGSInterface() { } virtual ~IGSInterface() { } virtual bool isConnected()=0; virtual bool openConnection(const char *host, unsigned port, const char *user=0, const char *pass=0)=0; virtual bool closeConnection()=0; virtual void sendTextToHost(QString, bool)=0; virtual const char* getUsername()=0; virtual void setTextCodec(QString)=0;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?