Diffstat (limited to 'noncore/net/opieirc/ircchannel.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircchannel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/net/opieirc/ircchannel.cpp b/noncore/net/opieirc/ircchannel.cpp index 71ec03b..9814a26 100644 --- a/noncore/net/opieirc/ircchannel.cpp +++ b/noncore/net/opieirc/ircchannel.cpp | |||
@@ -1,32 +1,37 @@ | |||
1 | #include "ircchannel.h" | 1 | #include "ircchannel.h" |
2 | #include <stdio.h> | 2 | #include <stdio.h> |
3 | 3 | ||
4 | IRCChannel::IRCChannel(QString channelname) { | 4 | IRCChannel::IRCChannel(QString channelname) { |
5 | m_hasPeople = FALSE; | 5 | m_hasPeople = FALSE; |
6 | m_channelname = channelname; | 6 | m_channelname = channelname; |
7 | } | 7 | } |
8 | 8 | ||
9 | IRCChannel::~IRCChannel() { | ||
10 | /* We want this to get deleted */ | ||
11 | m_people.setAutoDelete(TRUE); | ||
12 | } | ||
13 | |||
9 | QString IRCChannel::channelname() { | 14 | QString IRCChannel::channelname() { |
10 | return m_channelname; | 15 | return m_channelname; |
11 | } | 16 | } |
12 | 17 | ||
13 | bool IRCChannel::hasPeople() { | 18 | bool IRCChannel::hasPeople() { |
14 | return m_hasPeople; | 19 | return m_hasPeople; |
15 | } | 20 | } |
16 | 21 | ||
17 | void IRCChannel::setHasPeople(bool hasPeople) { | 22 | void IRCChannel::setHasPeople(bool hasPeople) { |
18 | m_hasPeople = hasPeople; | 23 | m_hasPeople = hasPeople; |
19 | } | 24 | } |
20 | 25 | ||
21 | void IRCChannel::addPerson(IRCChannelPerson *person) { | 26 | void IRCChannel::addPerson(IRCChannelPerson *person) { |
22 | m_people.append(person); | 27 | m_people.append(person); |
23 | } | 28 | } |
24 | 29 | ||
25 | void IRCChannel::removePerson(IRCChannelPerson *person) { | 30 | void IRCChannel::removePerson(IRCChannelPerson *person) { |
26 | m_people.remove(person); | 31 | m_people.remove(person); |
27 | } | 32 | } |
28 | 33 | ||
29 | QListIterator<IRCChannelPerson> IRCChannel::people() { | 34 | QListIterator<IRCChannelPerson> IRCChannel::people() { |
30 | QListIterator<IRCChannelPerson> it(m_people); | 35 | QListIterator<IRCChannelPerson> it(m_people); |
31 | return it; | 36 | return it; |
32 | } | 37 | } |