00001 /* ${copyright}$ */ 00002 /* $Id: DomainInfoCmd.H 536 2006-03-03 15:00:29Z cesar $ */ 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 00016 using std::string; 00017 00018 LIBEPP_NICBR_NS_BEGIN 00019 00021 class DomainInfoCmd : public Command 00022 { 00023 public: 00024 00026 DomainInfoCmd(bool reset = true) : Command(false) 00027 { 00028 if (reset) { 00029 this->reset(); 00030 } 00031 } 00032 00034 00037 void set_name(string name) { _name = name; } 00038 00040 00043 string get_name() { return _name; } 00044 00051 void set_hosts_control(string hosts_control) 00052 { 00053 _hosts_control = hosts_control; 00054 } 00055 00057 00060 string get_hosts_control() { return _hosts_control; } 00061 00063 00066 void set_authInfo(const AuthInfo &authInfo) 00067 { 00068 _authInfo = authInfo; 00069 } 00070 00072 00075 AuthInfo get_authInfo() { return _authInfo; } 00076 00078 void reset() 00079 { 00080 Command::reset(); 00081 _name = ""; 00082 _hosts_control = "all"; 00083 _authInfo.reset(); 00084 } 00085 00086 protected: 00088 string _name; 00089 00092 string _hosts_control; 00093 00095 AuthInfo _authInfo; 00096 }; 00097 00098 LIBEPP_NICBR_NS_END 00099 #endif //__DOMAIN_INFO_CMD_H__