sources/interface.h

changeset 192
94c67ae846fc
parent 191
2e6cbacafdc7
child 195
be953e1621d9
equal deleted inserted replaced
191:2e6cbacafdc7 192:94c67ae846fc
47 INPUTSTATE_PASSWORD, 47 INPUTSTATE_PASSWORD,
48 INPUTSTATE_CONFIRM_DISCONNECTION, 48 INPUTSTATE_CONFIRM_DISCONNECTION,
49 }; 49 };
50 50
51 Interface(); 51 Interface();
52 virtual ~Interface();
52 void connect(std::string address, std::string password); 53 void connect(std::string address, std::string password);
53 void disconnected(); 54 void disconnected();
54 RCONSession* getSession() { return &m_session; } 55 RCONSession* getSession() { return &m_session; }
55 void handleCommand(const std::string& input); 56 void handleCommand(const std::string& input, bool *shouldquit);
56 void handleInput(); 57 void handleInput(bool *shouldquit);
57 void needRefresh(); 58 void needRefresh();
58 void __cdecl print(const char* fmtstr, ...) GNUATTRIBUTE((format(printf, 2, 3))); 59 void __cdecl print(const char* fmtstr, ...) GNUATTRIBUTE((format(printf, 2, 3)));
59 void __cdecl printWarning(const char* fmtstr, ...) GNUATTRIBUTE((format(printf, 2, 3))); 60 void __cdecl printWarning(const char* fmtstr, ...) GNUATTRIBUTE((format(printf, 2, 3)));
60 void __cdecl printError(const char* fmtstr, ...) GNUATTRIBUTE((format(printf, 2, 3))); 61 void __cdecl printError(const char* fmtstr, ...) GNUATTRIBUTE((format(printf, 2, 3)));
61 void __cdecl printText(const char* fmtstr, ...) GNUATTRIBUTE((format(printf, 2, 3))); 62 void __cdecl printText(const char* fmtstr, ...) GNUATTRIBUTE((format(printf, 2, 3)));

mercurial