summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircchannel.h
Unidiff
Diffstat (limited to 'noncore/net/opieirc/ircchannel.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircchannel.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/noncore/net/opieirc/ircchannel.h b/noncore/net/opieirc/ircchannel.h
index e78f182..a276f10 100644
--- a/noncore/net/opieirc/ircchannel.h
+++ b/noncore/net/opieirc/ircchannel.h
@@ -15,39 +15,28 @@
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software 16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 18
19*/ 19*/
20 20
21#ifndef __IRCCHANNEL_H 21#ifndef __IRCCHANNEL_H
22#define __IRCCHANNEL_H 22#define __IRCCHANNEL_H
23 23
24#include <qobject.h> 24#include <qobject.h>
25#include <qlist.h> 25#include <qlist.h>
26#include <qstring.h> 26#include <qstring.h>
27#include "ircperson.h"
28 27
29/* Flags which a person can have inside a channel */ 28#include "ircperson.h"
30enum IRCChannelPersonFlag {
31 PERSON_FLAG_OP = 0x01,
32 PERSON_FLAG_VOICE = 0x02,
33 PERSON_FLAG_HALFOP = 0x04
34};
35 29
36/* This struct encapsulates a IRCPerson and adds 30class IRCChannelPerson;
37 channel specific information */
38typedef struct IRCChannelPerson {
39 IRCPerson *person;
40 unsigned int flags;
41};
42 31
43/* IRCChannel is the object-oriented representation 32/* IRCChannel is the object-oriented representation
44 of an IRC channel. It basically acts as a container 33 of an IRC channel. It basically acts as a container
45 for IRCChannelPersons */ 34 for IRCChannelPersons */
46class IRCChannel : public QObject { 35class IRCChannel : public QObject {
47 Q_OBJECT 36 Q_OBJECT
48public: 37public:
49 IRCChannel(QString channelname); 38 IRCChannel(QString channelname);
50 ~IRCChannel(); 39 ~IRCChannel();
51 40
52 void addPerson(IRCChannelPerson *person); 41 void addPerson(IRCChannelPerson *person);
53 void removePerson(IRCChannelPerson *person); 42 void removePerson(IRCChannelPerson *person);