summaryrefslogtreecommitdiff
authorskyhusker <skyhusker>2005-02-02 13:34:34 (UTC)
committer skyhusker <skyhusker>2005-02-02 13:34:34 (UTC)
commitf1f48d6711b359499c7ab3b9102a25f21259df53 (patch) (unidiff)
treea191b3603a89e0eb874b200df97f95977021673f
parent9c9c35ab1c0366b69ba1be63a4b7ba7b847fb66a (diff)
downloadopie-f1f48d6711b359499c7ab3b9102a25f21259df53.zip
opie-f1f48d6711b359499c7ab3b9102a25f21259df53.tar.gz
opie-f1f48d6711b359499c7ab3b9102a25f21259df53.tar.bz2
Added copyright lines
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircchannelperson.cpp21
-rw-r--r--noncore/net/opieirc/ircchannelperson.h21
2 files changed, 42 insertions, 0 deletions
diff --git a/noncore/net/opieirc/ircchannelperson.cpp b/noncore/net/opieirc/ircchannelperson.cpp
index 1e8ebe4..5e122c1 100644
--- a/noncore/net/opieirc/ircchannelperson.cpp
+++ b/noncore/net/opieirc/ircchannelperson.cpp
@@ -1,24 +1,45 @@
1/*
2 This file is part of OpieIRC - An embedded IRC client
3 Copyright (C) 2005 Alberto 'Skyhusker' García Hierro
4 <skyhusker@handhelds.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
20*/
21
1#include "ircperson.h" 22#include "ircperson.h"
2#include "ircchannelperson.h" 23#include "ircchannelperson.h"
3 24
4#include <qstring.h> 25#include <qstring.h>
5#include <qobject.h> 26#include <qobject.h>
6 27
7IRCChannelPerson::IRCChannelPerson(IRCPerson *person) 28IRCChannelPerson::IRCChannelPerson(IRCPerson *person)
8{ 29{
9 m_person = person; 30 m_person = person;
10 m_flags = 0; 31 m_flags = 0;
11} 32}
12 33
13IRCChannelPerson::~IRCChannelPerson() 34IRCChannelPerson::~IRCChannelPerson()
14{ 35{
15 //if(m_person) 36 //if(m_person)
16 // delete m_person; 37 // delete m_person;
17} 38}
18 39
19QString IRCChannelPerson::setOp(const QString &nickname, bool set) 40QString IRCChannelPerson::setOp(const QString &nickname, bool set)
20{ 41{
21 if(set) { 42 if(set) {
22 m_flags |= PERSON_FLAG_OP; 43 m_flags |= PERSON_FLAG_OP;
23 return ( nickname + QObject::tr(" gives channel operator status to ") + nick()); 44 return ( nickname + QObject::tr(" gives channel operator status to ") + nick());
24 } 45 }
diff --git a/noncore/net/opieirc/ircchannelperson.h b/noncore/net/opieirc/ircchannelperson.h
index a8c4791..e212cc8 100644
--- a/noncore/net/opieirc/ircchannelperson.h
+++ b/noncore/net/opieirc/ircchannelperson.h
@@ -1,24 +1,45 @@
1/*
2 This file is part of OpieIRC - An embedded IRC client
3 Copyright (C) 2005 Alberto 'Skyhusker' García Hierro
4 <skyhusker@handhelds.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
20*/
21
1#ifndef IRCCHANNELPERSON_H 22#ifndef IRCCHANNELPERSON_H
2#define IRCCHANNELPERSON_H 23#define IRCCHANNELPERSON_H
3 24
4class QString; 25class QString;
5class IRCPerson; 26class IRCPerson;
6 27
7/* This class encapsulates a IRCPerson and adds 28/* This class encapsulates a IRCPerson and adds
8 * channel specific information */ 29 * channel specific information */
9class IRCChannelPerson { 30class IRCChannelPerson {
10 31
11public: 32public:
12 /* Flags which a person can have inside a channel */ 33 /* Flags which a person can have inside a channel */
13 enum IRCChannelPersonFlag { 34 enum IRCChannelPersonFlag {
14 PERSON_FLAG_OP = 0x01, 35 PERSON_FLAG_OP = 0x01,
15 PERSON_FLAG_VOICE = 0x02, 36 PERSON_FLAG_VOICE = 0x02,
16 PERSON_FLAG_HALFOP = 0x04 37 PERSON_FLAG_HALFOP = 0x04
17 }; 38 };
18 39
19 IRCChannelPerson(IRCPerson *person = 0); 40 IRCChannelPerson(IRCPerson *person = 0);
20 ~IRCChannelPerson(); 41 ~IRCChannelPerson();
21 42
22 QString setOp(const QString &nickname, bool set); 43 QString setOp(const QString &nickname, bool set);
23 QString setVoice(const QString &nickname, bool set); 44 QString setVoice(const QString &nickname, bool set);
24 QString nick(); 45 QString nick();