From cc847c2f7c8678c169a83c5b553d3d073ad869a4 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 25 Jan 2014 07:22:54 +0100 Subject: add query windows --- bouncer/core.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'bouncer/core.h') diff --git a/bouncer/core.h b/bouncer/core.h index 6b73067..5a43215 100644 --- a/bouncer/core.h +++ b/bouncer/core.h @@ -111,6 +111,24 @@ public: void disconnected(); }; +class Query : public Window { +public: + Query(IRCServer *_server, const char *_partner); + + IRCServer *server; + std::string partner; + + virtual const char *getTitle() const; + virtual int getType() const; + virtual void handleUserInput(const char *str); + + void handleQuit(const char *message); + void handlePrivmsg(const char *str); + + void showNickChange(const UserRef &user, const char *newNick); + void renamePartner(const char *_partner); +}; + class SocketRWCommon { @@ -295,6 +313,7 @@ public: StatusWindow status; std::map channels; + std::map queries; IRCNetworkConfig config; @@ -326,6 +345,7 @@ private: void processISupport(const char *str); Channel *findChannel(const char *name, bool createIfNeeded); + Query *findQuery(const char *name, bool createIfNeeded); }; -- cgit v1.2.3