00001 /* ${copyright}$ */ 00002 /* $Id: ContactInfoCmd.H 536 2006-03-03 15:00:29Z cesar $ */ 00007 #ifndef __CONTACT_INFO_CMD_H__ 00008 #define __CONTACT_INFO_CMD_H__ 00009 00010 #include <string> 00011 00012 #include "libepp_nicbr.H" 00013 00014 #include "Command.H" 00015 00016 using std::string; 00017 00018 LIBEPP_NICBR_NS_BEGIN 00019 00021 class ContactInfoCmd : public Command 00022 { 00023 public: 00025 ContactInfoCmd(bool reset = true) : Command(false) 00026 { 00027 if (reset) { 00028 this->reset(); 00029 } 00030 } 00031 00033 00036 void set_id(const string &id) { _id = id; } 00037 00039 00042 string get_id() { return _id; } 00043 00045 void reset() { 00046 Command::reset(); 00047 _id = ""; 00048 _authInfo.reset(); 00049 } 00050 00052 00055 void set_authInfo(const AuthInfo &authInfo) 00056 { 00057 _authInfo = authInfo; 00058 } 00059 00061 00064 AuthInfo get_authInfo() { return _authInfo; } 00065 00066 protected: 00068 string _id; 00069 00071 AuthInfo _authInfo; 00072 }; 00073 00074 LIBEPP_NICBR_NS_END 00075 #endif //__CONTACT_INFO_CMD_H__