00001 /* ${copyright}$ */ 00002 /* $Id$ */ 00007 #ifndef __CONTACT_TRANSFER_CMD_H__ 00008 #define __CONTACT_TRANSFER_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 ContactTransferCmd : public Command 00022 { 00023 public: 00025 ContactTransferCmd(bool reset = true) : Command(false) 00026 { 00027 if (reset) { 00028 this->reset(); 00029 } 00030 } 00031 00033 00037 void set_id(const string &id) 00038 { 00039 _id = id; 00040 } 00041 00043 00047 string get_id() const 00048 { 00049 return _id; 00050 } 00051 00053 00056 void set_authInfo(const AuthInfo &authInfo) 00057 { 00058 _authInfo = authInfo; 00059 } 00060 00062 00065 AuthInfo get_authInfo() { return _authInfo; } 00066 00068 void reset() 00069 { 00070 Command::reset(); 00071 _id = ""; 00072 _authInfo.reset(); 00073 } 00074 00075 protected: 00077 string _id; 00078 00080 AuthInfo _authInfo; 00081 }; 00082 00083 LIBEPP_NICBR_NS_END 00084 #endif // __CONTACT_TRANSFER_CMD_H__