sources/network/rconsession.h

branch
protocol5
changeset 106
7b156b764d11
parent 104
a76af67a3a4b
parent 92
39947c46ed17
child 130
9f54db6f9922
--- a/sources/network/rconsession.h	Sat Jan 09 02:35:00 2016 +0200
+++ b/sources/network/rconsession.h	Sat Jan 09 17:41:21 2016 +0200
@@ -32,6 +32,7 @@
 #include "ipaddress.h"
 #include "udpsocket.h"
 #include "bytestream.h"
+BEGIN_ZFC_NAMESPACE
 
 // -------------------------------------------------------------------------------------------------
 //
@@ -97,7 +98,7 @@
 class RCONSession
 {
 public:
-	RCONSession (class Interface* iface);
+	RCONSession();
 	~RCONSession();
 
 	const IPAddress& address() const;
@@ -118,12 +119,11 @@
 	const String& level() const;
 	bool is_active() const;
 	void request_tab_complete (const String& part);
+	void set_interface (class Interface* iface);
 	void request_watch (const String& cvar);
 	void request_watch (const StringList& cvars);
 
 private:
-	RCONSession();
-
 	RCONSessionState m_state;
 	IPAddress m_address;
 	UDPSocket m_socket;
@@ -137,3 +137,5 @@
 	String m_lastTabComplete;
 	class Interface* m_interface;
 };
+
+END_ZFC_NAMESPACE

mercurial