summaryrefslogtreecommitdiff
path: root/src/gui/windows/chatwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-12 21:37:33 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-12 21:37:33 +0300
commit05d41da56882a14b44648c8daed5f50979154c16 (patch)
tree49a5cc44067e8b60dc0f2273c1be82b2585b61e0 /src/gui/windows/chatwindow.h
parent77e6c8639ae17554874d2de9fbdca35a99e51765 (diff)
downloadplus-05d41da56882a14b44648c8daed5f50979154c16.tar.gz
plus-05d41da56882a14b44648c8daed5f50979154c16.tar.bz2
plus-05d41da56882a14b44648c8daed5f50979154c16.tar.xz
plus-05d41da56882a14b44648c8daed5f50979154c16.zip
Add basic support for chat channels.
Diffstat (limited to 'src/gui/windows/chatwindow.h')
-rw-r--r--src/gui/windows/chatwindow.h14
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. */