diff -r 4f7c2c944637 -r 1b9c53e0c846 sources/network/rconsession.h --- a/sources/network/rconsession.h Fri May 15 18:36:22 2015 +0300 +++ b/sources/network/rconsession.h Fri May 15 20:03:35 2015 +0300 @@ -91,28 +91,27 @@ class RCONSession { public: + RCONSession (class Interface* iface); ~RCONSession(); - METHOD address() const -> const IPAddress&; - METHOD connect (IPAddress address) -> void; - METHOD disconnect() -> void; - METHOD handle_packet (Bytestream& packet, const IPAddress& from) -> void; - METHOD process_server_updates (Bytestream& packet) -> void; - METHOD num_admins() const -> int; - METHOD send (const Bytestream& packet) -> void; - METHOD send_hello() -> void; - METHOD send_password() -> void; - METHOD set_password (const String& password) -> void; - METHOD socket() -> UDPSocket*; - METHOD tick() -> void; - METHOD bump_last_ping() -> void; - METHOD send_command (const String& message) -> bool; - METHOD state() const -> RCONSessionState; - METHOD level() const -> const String&; - METHOD is_active() const -> bool; - METHOD request_tab_complete (const String& part) -> void; - - static METHOD get_session() -> RCONSession*; + const IPAddress& address() const; + void connect (IPAddress address); + void disconnect(); + void handle_packet (Bytestream& packet, const IPAddress& from); + void process_server_updates (Bytestream& packet); + int num_admins() const; + void send (const Bytestream& packet); + void send_hello(); + void send_password(); + void set_password (const String& password); + UDPSocket* socket(); + void tick(); + void bump_last_ping(); + bool send_command (const String& message); + RCONSessionState state() const; + const String& level() const; + bool is_active() const; + void request_tab_complete (const String& part); private: RCONSession(); @@ -128,4 +127,5 @@ int m_numAdmins; String m_level; String m_lastTabComplete; + class Interface* m_interface; };