Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ircperson.h

Go to the documentation of this file.
00001 /*
00002     OpieIRC - An embedded IRC client
00003     Copyright (C) 2002 Wenzel Jakob
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program; if not, write to the Free Software
00017     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 
00019 */
00020 
00021 #ifndef __IRCPERSON
00022 #define __IRCPERSON
00023 
00024 #include <qstring.h>
00025 
00026 /* This class requires all required information relating to a person
00027    on the IRC network. This class can be used as an input mask for
00028    IRCMessage-prefixes too
00029 */
00030 
00031 class IRCPerson {
00032 public:
00033     IRCPerson();
00034     /* Create an IRCPerson from an IRC style description (nick!user@host) */
00035     IRCPerson(const QString &mask);
00036     /* Copy constructor */
00037     IRCPerson(const IRCPerson &person);
00038 
00039     void fromMask(const QString &mask);
00040     void setNick(const QString &name);
00041     void setUser(const QString &user);
00042     void setHost(const QString &host);
00043     QString toMask();
00044     QString nick();
00045     QString user();
00046     QString host();
00047 protected:
00048     QString m_nick;
00049     QString m_user;
00050     QString m_host;
00051 };
00052 
00053 #endif /* __IRCPERSON */

Generated on Sat Nov 5 16:17:41 2005 for OPIE by  doxygen 1.4.2