00001 /* ${copyright}$ */ 00002 /* $Id$ */ 00007 #ifndef __DOMAIN_TRANSFER_CMD_H__ 00008 #define __DOMAIN_TRANSFER_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 DomainTransferCmd : public Command 00022 { 00023 public: 00024 00026 DomainTransferCmd(bool reset = true) : Command(false) 00027 { 00028 if (reset) { 00029 this->reset(); 00030 } 00031 } 00032 00034 00037 void set_name(const string& name) { _name = name; } 00038 00040 00043 string get_name() const { return _name; } 00044 00046 00049 void set_authInfo(const AuthInfo &authInfo) 00050 { 00051 _authInfo = authInfo; 00052 } 00053 00055 00058 AuthInfo get_authInfo() const { return _authInfo; } 00059 00061 void reset() 00062 { 00063 Command::reset(); 00064 _name = ""; 00065 _authInfo.reset(); 00066 } 00067 00068 protected: 00070 string _name; 00071 00073 AuthInfo _authInfo; 00074 }; 00075 00076 LIBEPP_NICBR_NS_END 00077 #endif // __DOMAIN_TRANSFER_CMD_H__