sources/interface.h

changeset 111
51c93a0cc317
parent 109
e4966d7e615d
child 115
bb7ef7c33dad
--- a/sources/interface.h	Sun Jan 10 19:38:11 2016 +0200
+++ b/sources/interface.h	Sun Jan 10 20:04:28 2016 +0200
@@ -60,6 +60,7 @@
 	void tab_complete (const String& part, String complete);
 	RCONSession* get_session() { return &Session; }
 	void handle_command(const String& input);
+	void disconnected();
 
 	void vprint (const char* fmtstr, va_list args);
 	void __cdecl print (const char* fmtstr, ...);
@@ -81,7 +82,7 @@
 	int OutputScroll;
 	String Title;
 	InputState CurrentInputState;
-	std::function<void (void)> DisconnectConfirmFunction;
+	std::function<void(bool)> DisconnectConfirmFunction;
 	IPAddress CurrentAddress;
 	String StatusBarText;
 	StringList PlayerNames;
@@ -89,7 +90,7 @@
 	RCONSession Session;
 
 	void render_titlebar();
-	void safe_disconnect (std::function<void()> afterwards);
+	void safe_disconnect (std::function<void(bool)> afterwards);
 	int render_colorline (int y, int x0, int width, const ColoredLine& line, bool allowWrap);
 	int nicklist_width();
 	void render_output();
@@ -108,6 +109,7 @@
 	void yank (int a, int b);
 	int find_previous_word();
 	int find_next_word();
+	void reset_title();
 };
 
 END_ZFC_NAMESPACE
\ No newline at end of file

mercurial