summaryrefslogtreecommitdiff
path: root/TChannel.h
blob: 338d4a9cd45a50b33acd6d1dab5d7143000981ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _TCHANNEL_H_
#define _TCHANNEL_H_

#include "mytypes.h"
#include "myfuncs.h"

#include "TPluginParent.h"

#include "TPlugin.h"

#include "TUserList.h"
#include "TConnection.h"
class TConnection;

class TChannel : public TPluginParent
{
	public:
		TChannel(string channame, TConnection* parent_);
		~TChannel();
		void interpret_message (ircmessage msg);
		virtual string get_name();
		virtual void say (string what);
		void show_users ();
		void exec_plugins(list<TPlugin*> plugins);
		void addplugincontext(TPlugin* plugin);
		TUserList get_users();
		string get_modes();
		string get_topic();
		
		virtual int get_type();
		
	private:
		TUserList users;
		string name;
		string chanmodes;
		string chantopic;
		bool receiving_names_list;
};

#endif