diff options
Diffstat (limited to 'src/gui/windows/chatwindow.h')
-rw-r--r-- | src/gui/windows/chatwindow.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 <set> 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<const std::string, WhisperTab*> TabMap; + typedef std::map<const std::string, ChannelTab*> ChannelMap; + /** Manage whisper tabs */ TabMap mWhispers; + ChannelMap mChannels; typedef History::iterator HistoryIterator; History mHistory; /**< Command history. */ |