summaryrefslogtreecommitdiff
path: root/src/channel.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-26 09:42:43 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-26 09:42:43 -0600
commit9e4a8ea095a1a0613d7b128f4e29c69643137b07 (patch)
tree82dfb0a17dfc3439554efc77a3d18bf5165cebc3 /src/channel.h
parentcdcadf6e99a6deaa5b929cdec9736ab1fb280f65 (diff)
downloadmana-9e4a8ea095a1a0613d7b128f4e29c69643137b07.tar.gz
mana-9e4a8ea095a1a0613d7b128f4e29c69643137b07.tar.bz2
mana-9e4a8ea095a1a0613d7b128f4e29c69643137b07.tar.xz
mana-9e4a8ea095a1a0613d7b128f4e29c69643137b07.zip
Add ChannelTab for chat channels
This fixes TMWServ compilation form the previous commit.
Diffstat (limited to 'src/channel.h')
-rw-r--r--src/channel.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/channel.h b/src/channel.h
index c094aedc..d9f72c12 100644
--- a/src/channel.h
+++ b/src/channel.h
@@ -19,8 +19,13 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#ifndef CHANNEL_H
+#define CHANNEL_H
+
#include <string>
+#include "gui/widgets/channeltab.h"
+
class Channel
{
public:
@@ -64,8 +69,17 @@ class Channel
void setAnnouncement(const std::string &channelAnnouncement)
{ mAnnouncement = channelAnnouncement; }
+ ChannelTab *getTab() { return mTab; }
+
+ protected:
+ friend class ChannelTab;
+ void setTab(ChannelTab *tab) { mTab = tab; }
+
private:
unsigned short mId;
std::string mName;
std::string mAnnouncement;
+ ChannelTab *mTab;
};
+
+#endif // CHANNEL_H