diff options
author | Treeki <treeki@gmail.com> | 2014-01-25 07:22:54 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2014-01-25 07:22:54 +0100 |
commit | cc847c2f7c8678c169a83c5b553d3d073ad869a4 (patch) | |
tree | 445d5f97c8fa9e11db8a0d5efbbc800d8d74eaa9 /bouncer/core.h | |
parent | d67fdae167bf5118b17d3bfaeb5f91929dfa812d (diff) | |
download | bounce4-cc847c2f7c8678c169a83c5b553d3d073ad869a4.tar.gz bounce4-cc847c2f7c8678c169a83c5b553d3d073ad869a4.zip |
add query windows
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); }; |