sources/network/rconsession.h

branch
experimental
changeset 41
9ab869656b9e
parent 40
cf85b5f77541
child 71
4f7c2c944637
--- a/sources/network/rconsession.h	Mon Dec 15 20:18:56 2014 +0200
+++ b/sources/network/rconsession.h	Mon Dec 15 20:19:18 2014 +0200
@@ -37,7 +37,7 @@
 //
 enum
 {
-	RCON_PROTOCOL_VERSION = 3
+	RCON_PROTOCOL_VERSION = 4
 };
 
 // -------------------------------------------------------------------------------------------------
@@ -51,6 +51,8 @@
 	SVRC_INVALIDPASSWORD,
 	SVRC_MESSAGE,
 	SVRC_UPDATE,
+	SVRC_TABCOMPLETE,
+	SVRC_TOOMANYTABCOMPLETES,
 };
 
 // -------------------------------------------------------------------------------------------------
@@ -62,6 +64,7 @@
 	CLRC_COMMAND,
 	CLRC_PONG,
 	CLRC_DISCONNECT,
+	CLRC_TABCOMPLETE,
 };
 
 // -------------------------------------------------------------------------------------------------
@@ -107,6 +110,7 @@
 	METHOD state() const -> RCONSessionState;
 	METHOD level() const -> const String&;
 	METHOD is_active() const -> bool;
+	METHOD request_tab_complete (const String& part) -> void;
 
 	static METHOD new_session() -> RCONSession*;
 	static METHOD get_session() -> RCONSession*;
@@ -124,4 +128,5 @@
 	String m_hostname;
 	int m_numAdmins;
 	String m_level;
+	String m_lastTabComplete;
 };

mercurial