📄 igsinterface.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 + -