⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 igsinterface.h

📁 qgo-1.5.4-r3.tar.gz linux下一个很好玩的游戏
💻 H
字号:
/** 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -