netconf.h

00001 // --*-c++-*-- 00002 /* 00003 $Id: netconf_8h-source.html,v 1.1 2004/10/05 21:12:02 mentat Exp $ 00004 00005 GNU Messenger - The secure instant messenger 00006 Copyright (C) 2002-2003 Jesse Lovelace - jllovela@eos.ncsu.edu 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 2 of the License, or 00011 (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program; if not, write to the Free Software 00020 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 00022 */ 00023 #ifndef GM_NETCONF_H 00024 #define GM_NETCONF_H 00025 00026 #include <string> 00027 #include "gm/xmlnode.h" 00028 00029 namespace GNUMessenger { 00030 00031 class VBuffer; 00032 00038 class NetConf: public XMLNode 00039 { 00040 public: 00041 00045 NetConf(); 00046 00051 NetConf(const NetConf& net); 00052 00057 NetConf(const XMLNode& node); 00058 00063 string getProtocol(); 00064 00069 NetConf& setProtocol(const string& name); 00070 00075 string getServer(); 00076 00081 NetConf& setServer(const string& name); 00082 00083 virtual const string type() const { return "net"; } 00084 00085 virtual const string& name() const { return XMLNode::name(); } 00086 virtual XMLNode& setName(const string& name) { return XMLNode::setName(name); } 00087 00088 00095 string getLoginServer(); 00096 00097 NetConf& setLoginServer(const string& name); 00098 00099 NetConf& setServerPort(unsigned int port); 00100 00101 unsigned int getServerPort(); 00102 00103 NetConf& setLoginPort(unsigned int port); 00104 00105 unsigned int getLoginPort(); 00106 00107 NetConf& setLogin(const string& name); 00108 00109 string getLogin() const; 00110 00111 //NetConf& setPassword(const SecByteBlock& pass); 00112 00113 NetConf& setPassword(const VBuffer& pass); 00114 00115 VBuffer getPassword() const; 00116 00117 }; 00118 00119 00120 } 00121 00122 00123 #endif

Generated on Tue Oct 5 14:41:47 2004 for GNU Messenger by doxygen 1.3.8