00001 /* ${copyright}$ */ 00002 /* $Id: ContactInfoCmd.H 1076 2010-08-03 18:55:45Z rafael $ */ 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 #include "CommonData.H" 00016 00017 using std::string; 00018 00019 LIBEPP_NICBR_NS_BEGIN 00020 00022 class ContactInfoCmd : public Command 00023 { 00024 public: 00026 ContactInfoCmd(bool reset = true) : Command(false) 00027 { 00028 if (reset) { 00029 this->reset(); 00030 } 00031 } 00032 00034 00037 void set_id(const string &id) { _id = id; } 00038 00040 00043 string get_id() const { return _id; } 00044 00046 void reset() { 00047 Command::reset(); 00048 _id = ""; 00049 _authInfo.reset(); 00050 } 00051 00053 00056 void set_authInfo(const AuthInfo &authInfo) 00057 { 00058 _authInfo = authInfo; 00059 } 00060 00062 00065 AuthInfo get_authInfo() const { return _authInfo; } 00066 00067 protected: 00069 string _id; 00070 00072 AuthInfo _authInfo; 00073 }; 00074 00075 LIBEPP_NICBR_NS_END 00076 #endif //__CONTACT_INFO_CMD_H__