include/ContactUpdateCmd.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: ContactUpdateCmd.H 662 2006-04-11 13:45:31Z eduardo $ */
00007 #ifndef __CONTACT_UPDATE_CMD_H__
00008 #define __CONTACT_UPDATE_CMD_H__
00009 
00010 #include <string>
00011 #include <set>
00012 #include <memory>
00013 
00014 #include "libepp_nicbr.H"
00015 
00016 #include "Command.H"
00017 #include "CommonData.H"
00018 
00019 using std::string;
00020 using std::set;
00021 using std::auto_ptr;
00022 
00023 LIBEPP_NICBR_NS_BEGIN
00024 
00026 class ContactUpdateCmd : public Command
00027 {
00028 public:
00029 
00031   ContactUpdateCmd(bool reset = true) : Command(false)
00032   {
00033     if (reset) {
00034       this->reset();
00035     }
00036   }
00037 
00039 
00042   void insert_status_list_add(const string &status_add) 
00043   { 
00044     _status_list_add.insert(status_add); 
00045   }
00046   
00048 
00051   void insert_status_list_rem(const string &status_rem) 
00052   { 
00053     _status_list_rem.insert(status_rem); 
00054   }
00055 
00057 
00060   set<string> get_status_list_add() { return _status_list_add; }
00061 
00063 
00066   set<string> get_status_list_rem() { return _status_list_rem; }
00067 
00069 
00072   void set_common_data(const CommonData &common) 
00073   {
00074     _common = common;
00075   }
00076 
00078 
00081   CommonData get_common_data() { return _common; }
00082   
00084   void reset() 
00085   { 
00086     Command::reset();
00087     _status_list_add.clear();
00088     _status_list_rem.clear();
00089     _common.reset();
00090     _authInfo.reset();
00091   }
00092 
00094 
00097   void set_authInfo(const AuthInfo &authInfo)
00098   {
00099     _authInfo = authInfo;
00100   }
00101 
00103 
00106   AuthInfo get_authInfo() { return _authInfo; }
00107 
00108 protected:
00110   set<string> _status_list_add;
00111 
00113   set<string> _status_list_rem;
00114 
00116   CommonData _common;
00117 
00119   AuthInfo _authInfo;
00120 };
00121 
00122 LIBEPP_NICBR_NS_END
00123 #endif //__CONTACT_UPDATE_CMD_H__

Generated on Thu Jun 8 17:40:00 2006 for libepp_nicbr by  doxygen 1.4.6