00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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
00112
00113
NetConf& setPassword(const
VBuffer& pass);
00114
00115
VBuffer getPassword() const;
00116
00117 };
00118
00119
00120 }
00121
00122
00123 #endif