summaryrefslogtreecommitdiff
path: root/src/gui/widgets/chattab.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-20 12:19:11 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-21 21:09:08 +0300
commitc483cf600e74e7d38a7c0cc7d80435e97040c76c (patch)
treeba33088840361d3393398d6c9d52ebcfc894dd06 /src/gui/widgets/chattab.h
parent11619eed54e7b9df06c01cae46bd22aadc3f8dc7 (diff)
downloadplus-c483cf600e74e7d38a7c0cc7d80435e97040c76c.tar.gz
plus-c483cf600e74e7d38a7c0cc7d80435e97040c76c.tar.bz2
plus-c483cf600e74e7d38a7c0cc7d80435e97040c76c.tar.xz
plus-c483cf600e74e7d38a7c0cc7d80435e97040c76c.zip
Add channel name to chat tabs.
Diffstat (limited to 'src/gui/widgets/chattab.h')
-rw-r--r--src/gui/widgets/chattab.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h
index 24afffc0f..0ac55811d 100644
--- a/src/gui/widgets/chattab.h
+++ b/src/gui/widgets/chattab.h
@@ -32,6 +32,9 @@
class ScrollArea;
+const std::string GENERAL_CHANNEL = "\000\000\000";
+const std::string TRADE_CHANNEL = "\000\000\001";
+
/**
* A tab for the chat window. This is special to ease chat handling.
*/
@@ -54,7 +57,8 @@ class ChatTab : public Tab
/**
* Constructor.
*/
- ChatTab(const Widget2 *const widget, const std::string &name);
+ ChatTab(const Widget2 *const widget, const std::string &name,
+ const std::string &channel);
A_DELETE_COPY(ChatTab)
@@ -171,6 +175,9 @@ class ChatTab : public Tab
virtual void playNewMessageSound();
+ std::string getChannelName()
+ { return mChannelName; }
+
protected:
friend class ChatWindow;
friend class WhisperWindow;
@@ -195,6 +202,7 @@ class ChatTab : public Tab
bool mRemoveNames;
bool mNoAway;
bool mShowOnline;
+ std::string mChannelName;
};
extern ChatTab *localChatTab;