libepp_nicbr
BrDomainCreateCmd.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: BrDomainCreateCmd.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __BR_DOMAIN_CREATE_CMD_H__
8 #define __BR_DOMAIN_CREATE_CMD_H__
9 
10 #include "BrDomainCommon.H"
11 #include "DomainCreateCmd.H"
12 
13 LIBEPP_NICBR_NS_BEGIN
14 
17 {
18 public:
20  BrDomainCreateCmd(bool reset = true) : DomainCreateCmd(false)
21  {
22  if (reset) {
23  this->reset();
24  }
25  }
26 
28 
31  void set_organization(const string& organization)
32  {
33  _organization = organization;
34  }
35 
37 
40  string get_organization() const
41  {
42  return _organization;
43  }
44 
46 
50  {
51  _releaseProcessFlags.flag1 = rpf.flag1;
52  _releaseProcessFlags.flag2 = rpf.flag2;
53  _releaseProcessFlags.flag3 = rpf.flag3;
54  }
55 
57 
61  {
62  return _releaseProcessFlags;
63  }
64 
66 
69  void set_auto_renew(const int auto_renew)
70  {
71  _auto_renew = auto_renew;
72  }
73 
75 
78  int get_auto_renew() const
79  {
80  return _auto_renew;
81  }
82 
84  void reset()
85  {
87  _organization = "";
88  _releaseProcessFlags.flag1 = 0;
89  _releaseProcessFlags.flag2 = 0;
90  _releaseProcessFlags.flag3 = 0;
91  _auto_renew = -1;
92  }
93 
95 
98  void set_active(const int active)
99  {
100  set_auto_renew(active);
101  }
102 
104 
107  int get_active() const
108  {
109  return get_auto_renew();
110  }
111 
112 protected:
115 
118 
121 };
122 
123 LIBEPP_NICBR_NS_END
124 #endif //__BR_DOMAIN_CREATE_CMD_H__
int get_active() const
Returns active attribute (***DEPRECATED***)
Definition: BrDomainCreateCmd.H:107
struct ReleaseProcessFlags _releaseProcessFlags
release process flags
Definition: BrDomainCreateCmd.H:117
void set_organization(const string &organization)
Sets organization attribute.
Definition: BrDomainCreateCmd.H:31
EPP DomainCreateCmd Class.
string _organization
organization
Definition: BrDomainCreateCmd.H:114
EPP BrDomainCreateCmd extension Class.
Definition: BrDomainCreateCmd.H:16
void set_releaseProcessFlags(const struct ReleaseProcessFlags &rpf)
Sets the Release Process Flags.
Definition: BrDomainCreateCmd.H:49
BrDomainCreateCmd(bool reset=true)
Default constructor.
Definition: BrDomainCreateCmd.H:20
Definition: BrDomainCommon.H:26
int _auto_renew
domain auto renewal flag
Definition: BrDomainCreateCmd.H:120
int get_auto_renew() const
Return if the domain is with or without auto renewal.
Definition: BrDomainCreateCmd.H:78
EPP DomainCreateCmd Class.
Definition: DomainCreateCmd.H:32
void reset()
Reset object attributes.
Definition: BrDomainCreateCmd.H:84
struct ReleaseProcessFlags get_releaseProcessFlags() const
Returns the Release Process Flags.
Definition: BrDomainCreateCmd.H:60
Common elements to .BR objects.
void set_auto_renew(const int auto_renew)
Actives/Inactives domain auto renewal.
Definition: BrDomainCreateCmd.H:69
string get_organization() const
Returns organization attribute.
Definition: BrDomainCreateCmd.H:40
void set_active(const int active)
Sets active attribute (***DEPRECATED***)
Definition: BrDomainCreateCmd.H:98
void reset()
Reset object attributes.
Definition: DomainCreateCmd.H:238