libepp_nicbr
ContactInfoCmd.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: ContactInfoCmd.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __CONTACT_INFO_CMD_H__
8 #define __CONTACT_INFO_CMD_H__
9 
10 #include <string>
11 
12 #include "libepp_nicbr.H"
13 
14 #include "Command.H"
15 #include "CommonData.H"
16 
17 using std::string;
18 
19 LIBEPP_NICBR_NS_BEGIN
20 
22 class ContactInfoCmd : public Command
23 {
24 public:
26  ContactInfoCmd(bool reset = true) : Command(false)
27  {
28  if (reset) {
29  this->reset();
30  }
31  }
32 
34 
37  void set_id(const string &id) { _id = id; }
38 
40 
43  string get_id() const { return _id; }
44 
46  void reset() {
48  _id = "";
49  _authInfo.reset();
50  }
51 
53 
56  void set_authInfo(const AuthInfo &authInfo)
57  {
58  _authInfo = authInfo;
59  }
60 
62 
65  AuthInfo get_authInfo() const { return _authInfo; }
66 
67 protected:
69  string _id;
70 
73 };
74 
75 LIBEPP_NICBR_NS_END
76 #endif //__CONTACT_INFO_CMD_H__
void set_id(const string &id)
Sets the contact's id.
Definition: ContactInfoCmd.H:37
AuthInfo _authInfo
authorization information
Definition: ContactInfoCmd.H:72
string get_id() const
Returns the contact's id.
Definition: ContactInfoCmd.H:43
Project defines.
EPP CommonData Class.
void reset()
reset attributes
Definition: ContactInfoCmd.H:46
EPP ContactInfoCmd Class.
Definition: ContactInfoCmd.H:22
void set_authInfo(const AuthInfo &authInfo)
Sets authorization information.
Definition: ContactInfoCmd.H:56
void reset()
Reset all object attributes.
Definition: CommonData.H:152
string _id
Contact id.
Definition: ContactInfoCmd.H:69
AuthInfo get_authInfo() const
Returns authorization information.
Definition: ContactInfoCmd.H:65
ContactInfoCmd(bool reset=true)
Default constructor.
Definition: ContactInfoCmd.H:26
void reset()
Reset object attributes.
Definition: Command.H:33
EPP Command Class.
Definition: Command.H:18
EPP Command Class.
AuthInfo Class.
Definition: CommonData.H:83