libepp_nicbr
BrDomainRenew.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: BrDomainRenew.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __BR_DOMAIN_RENEW_H__
8 #define __BR_DOMAIN_RENEW_H__
9 
10 #include "DomainRenew.H"
11 #include "DomainRenewCmd.H"
12 #include "BrDomainRenewRsp.H"
13 
14 LIBEPP_NICBR_NS_BEGIN
15 
17 class BrDomainRenew : public DomainRenew
18 {
19 public:
20 
22  BrDomainRenew(const ActionType type = BR_DOMAIN_RENEW)
23  : DomainRenew(type)
24  {
25  if (type == BR_DOMAIN_RENEW) {
26  _command = auto_ptr<DomainRenewCmd>(new DomainRenewCmd());
27  _response = auto_ptr<BrDomainRenewRsp>(new BrDomainRenewRsp());
28  }
29  }
30 
32 
36  {
37  return (DomainRenewCmd *) _command.get();
38  }
39 
41 
45  {
46  return (BrDomainRenewRsp *) _response.get();
47  }
48 };
49 
50 LIBEPP_NICBR_NS_END
51 #endif //__BR_DOMAIN_RENEW_H__
EPP BrDomainRenew extension Class.
Definition: BrDomainRenew.H:17
EPP DomainRenew Class.
BrDomainRenew(const ActionType type=BR_DOMAIN_RENEW)
Constructor.
Definition: BrDomainRenew.H:22
auto_ptr< Response > _response
Generic response.
Definition: Action.H:79
EPP DomainRenewCmd Class.
Definition: DomainRenewCmd.H:27
EPP DomainRenewCmd Class.
DomainRenewCmd * get_command()
Returns raw pointer to the command.
Definition: BrDomainRenew.H:35
auto_ptr< Command > _command
Generic command.
Definition: Action.H:76
ActionType
Action Types.
Definition: CommonData.H:23
EPP DomainRenew Class.
Definition: DomainRenew.H:23
EPP BrDomainRenewRsp extension Class.
BrDomainRenewRsp * get_response()
Returns raw pointer to the response.
Definition: BrDomainRenew.H:44
EPP BrDomainRenewRsp extension Class.
Definition: BrDomainRenewRsp.H:16