11
// maybe this should be elsewhere ...
12
typedef void (*callBackFP_t)(const char*, unsigned);
14
template <class T> class callBackImpl
22
void registerCallback(T fp)
24
if (fp != NULL) callbackFP = fp;
32
class IGSInterface : public callBackImpl<callBackFP_t>
36
virtual ~IGSInterface() { }
38
virtual bool isConnected()=0;
39
virtual bool openConnection(const char *host, unsigned port,
40
const char *user=0, const char *pass=0)=0;
41
virtual bool closeConnection()=0;
42
virtual void sendTextToHost(const char *txt)=0;
43
virtual const char* getUsername()=0;