00001 /* ${copyright}$ */ 00002 /* $Id: DomainInfoCmd.H 1076 2010-08-03 18:55:45Z rafael $ */ 00007 #ifndef __DOMAIN_INFO_CMD_H__ 00008 #define __DOMAIN_INFO_CMD_H__ 00009 00010 #include <string> 00011 00012 #include "libepp_nicbr.H" 00013 00014 #include "Command.H" 00015 #include "CommonData.H" 00016 00017 using std::string; 00018 00019 LIBEPP_NICBR_NS_BEGIN 00020 00022 class DomainInfoCmd : public Command 00023 { 00024 public: 00025 00027 DomainInfoCmd(bool reset = true) : Command(false) 00028 { 00029 if (reset) { 00030 this->reset(); 00031 } 00032 } 00033 00035 00038 void set_name(const string& name) { _name = name; } 00039 00041 00044 string get_name() const { return _name; } 00045 00052 void set_hosts_control(const string& hosts_control) 00053 { 00054 _hosts_control = hosts_control; 00055 } 00056 00058 00061 string get_hosts_control() const { return _hosts_control; } 00062 00064 00067 void set_authInfo(const AuthInfo &authInfo) 00068 { 00069 _authInfo = authInfo; 00070 } 00071 00073 00076 AuthInfo get_authInfo() const { return _authInfo; } 00077 00079 void reset() 00080 { 00081 Command::reset(); 00082 _name = ""; 00083 _hosts_control = "all"; 00084 _authInfo.reset(); 00085 } 00086 00087 protected: 00089 string _name; 00090 00093 string _hosts_control; 00094 00096 AuthInfo _authInfo; 00097 }; 00098 00099 LIBEPP_NICBR_NS_END 00100 #endif //__DOMAIN_INFO_CMD_H__