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

ircserver.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 __IRCSERVER_H
00022 #define __IRCSERVER_H
00023 
00024 #include <qstring.h>
00025 
00026 /* IRCServer stores all information required to
00027    establish a connection to a server. */
00028 
00029 class IRCServer {
00030 public:
00031     /* Initialize to the default values */
00032     IRCServer();
00033 
00034     /* Setters */
00035     void setName(QString name);
00036     void setHostname(QString hostname);
00037     void setPort(int port);
00038     void setUsername(QString username);
00039     void setPassword(QString password);
00040     void setNick(QString nick);
00041     void setRealname(QString realname);
00042     void setChannels(QString channels);
00043 
00044     /* Getters */
00045     QString hostname();
00046     QString name();
00047     unsigned short int port();
00048     QString username();
00049     QString password();
00050     QString nick();
00051     QString realname();
00052     QString channels();
00053 protected:
00054     QString             m_hostname;
00055     QString             m_name;
00056     unsigned short int  m_port;
00057     QString             m_username;
00058     QString             m_password;
00059     QString             m_nick;
00060     QString             m_realname;
00061     QString             m_channels;
00062 };
00063 
00064 #endif /* __IRCSERVER_H */

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