diff options
Diffstat (limited to '')
-rw-r--r-- | bouncer/core.h | 20 |
1 files changed, 20 insertions, 0 deletions
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<std::string, Channel *> channels; + std::map<std::string, Query *> 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); }; |