00001 /* ${copyright}$ */ 00002 /* $Id: BrDomainRenew.H 696 2006-04-26 21:40:45Z koji $ */ 00007 #ifndef __BR_DOMAIN_RENEW_H__ 00008 #define __BR_DOMAIN_RENEW_H__ 00009 00010 #include "DomainRenew.H" 00011 #include "DomainRenewCmd.H" 00012 #include "BrDomainRenewRsp.H" 00013 00014 LIBEPP_NICBR_NS_BEGIN 00015 00017 class BrDomainRenew : public DomainRenew 00018 { 00019 public: 00020 00022 BrDomainRenew(const ActionType type = BR_DOMAIN_RENEW) 00023 : DomainRenew(type) 00024 { 00025 if (type == BR_DOMAIN_RENEW) { 00026 _command = auto_ptr<DomainRenewCmd>(new DomainRenewCmd()); 00027 _response = auto_ptr<BrDomainRenewRsp>(new BrDomainRenewRsp()); 00028 } 00029 } 00030 00032 00035 DomainRenewCmd* get_command() 00036 { 00037 return (DomainRenewCmd *) _command.get(); 00038 } 00039 00041 00044 BrDomainRenewRsp* get_response() 00045 { 00046 return (BrDomainRenewRsp *) _response.get(); 00047 } 00048 }; 00049 00050 LIBEPP_NICBR_NS_END 00051 #endif //__BR_DOMAIN_RENEW_H__