libepp_nicbr
ContactDeleteCmd.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id$ */
7 #ifndef __CONTACT_DELETE_CMD_H__
8 #define __CONTACT_DELETE_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 
21 class ContactDeleteCmd : public Command
22 {
23 public:
25  ContactDeleteCmd(bool reset = true) : Command(false)
26  {
27  if (reset) {
28  this->reset();
29  }
30  }
31 
33 
37  void set_id(const string &id) { _id = id; }
38 
40 
43  string get_id() const { return _id; }
44 
46  void reset()
47  {
49  _id.clear();
50  }
51 
52 protected:
54  string _id;
55 };
56 
57 LIBEPP_NICBR_NS_END
58 #endif // __CONTACT_DELETE_CMD_H__
void set_id(const string &id)
id to be deleted
Definition: ContactDeleteCmd.H:37
Project defines.
string _id
Contact id list.
Definition: ContactDeleteCmd.H:54
string get_id() const
Returns contact id to be deleted.
Definition: ContactDeleteCmd.H:43
void reset()
Reset object attributes.
Definition: Command.H:33
EPP Command Class.
Definition: Command.H:18
EPP Command Class.
void reset()
reset attributes
Definition: ContactDeleteCmd.H:46
ContactDeleteCmd(bool reset=true)
Default constructor.
Definition: ContactDeleteCmd.H:25
EPP ContactDeleteCmd Class.
Definition: ContactDeleteCmd.H:21