From 05d41da56882a14b44648c8daed5f50979154c16 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 12 Oct 2014 21:37:33 +0300 Subject: Add basic support for chat channels. --- src/gui/windows/chatwindow.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/gui/windows/chatwindow.h') diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h index d6b89fbd1..313a65803 100644 --- a/src/gui/windows/chatwindow.h +++ b/src/gui/windows/chatwindow.h @@ -38,6 +38,7 @@ #include class Button; +class ChannelTab; class ChatTab; class ChatInput; class ColorListModel; @@ -198,8 +199,16 @@ class ChatWindow final : public Window, WhisperTab *getWhisperTab(const std::string &nick) const A_WARN_UNUSED; + ChannelTab *addChannelTab(const std::string &name, + const bool switchTo = false) A_WARN_UNUSED; + + ChatTab *addChatTab(const std::string &name, + const bool switchTo = false) A_WARN_UNUSED; + void removeAllWhispers(); + void removeAllChannels(); + void ignoreAllWhispers(); bool resortChatLog(std::string line, ChatMsgType::Type own, @@ -219,6 +228,8 @@ class ChatWindow final : public Window, void saveState() const; + bool saveTab(const int num, ChatTab *const tab) const; + void loadCustomList(); void loadGMCommands(); @@ -332,8 +343,11 @@ class ChatWindow final : public Window, bool addCurrentToHistory(); typedef std::map TabMap; + typedef std::map ChannelMap; + /** Manage whisper tabs */ TabMap mWhispers; + ChannelMap mChannels; typedef History::iterator HistoryIterator; History mHistory; /**< Command history. */ -- cgit v1.2.3-60-g2f50