libepp_nicbr
ContactTransferCmd.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id$ */
7 #ifndef __CONTACT_TRANSFER_CMD_H__
8 #define __CONTACT_TRANSFER_CMD_H__
9 
10 #include <string>
11 
12 #include "libepp_nicbr.H"
13 
14 #include "Command.H"
15 
16 using std::string;
17 
18 LIBEPP_NICBR_NS_BEGIN
19 
22 {
23 public:
25  ContactTransferCmd(bool reset = true) : Command(false)
26  {
27  if (reset) {
28  this->reset();
29  }
30  }
31 
33 
37  void set_id(const string &id)
38  {
39  _id = id;
40  }
41 
43 
47  string get_id() const
48  {
49  return _id;
50  }
51 
53 
56  void set_authInfo(const AuthInfo &authInfo)
57  {
58  _authInfo = authInfo;
59  }
60 
62 
66 
68  void reset()
69  {
71  _id = "";
72  _authInfo.reset();
73  }
74 
75 protected:
77  string _id;
78 
81 };
82 
83 LIBEPP_NICBR_NS_END
84 #endif // __CONTACT_TRANSFER_CMD_H__
void set_authInfo(const AuthInfo &authInfo)
Sets authorization information.
Definition: ContactTransferCmd.H:56
Project defines.
AuthInfo _authInfo
Authorization information.
Definition: ContactTransferCmd.H:80
AuthInfo get_authInfo()
Returns authorization information.
Definition: ContactTransferCmd.H:65
void reset()
reset attributes
Definition: ContactTransferCmd.H:68
EPP ContactTransferCmd Class.
Definition: ContactTransferCmd.H:21
string _id
Server-unique identifier of the contact object to be queried.
Definition: ContactTransferCmd.H:77
string get_id() const
Returns contact ID.
Definition: ContactTransferCmd.H:47
void reset()
Reset all object attributes.
Definition: CommonData.H:152
ContactTransferCmd(bool reset=true)
Default constructor.
Definition: ContactTransferCmd.H:25
void reset()
Reset object attributes.
Definition: Command.H:33
void set_id(const string &id)
Sets contact ID.
Definition: ContactTransferCmd.H:37
EPP Command Class.
Definition: Command.H:18
EPP Command Class.
AuthInfo Class.
Definition: CommonData.H:83