include/ContactUpdateCmd.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: ContactUpdateCmd.H 547 2006-03-07 22:44:18Z cesar $ */
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   void set_chg(const bool &chg) { _chg = chg; }
00061 
00063 
00066   set<string> get_status_list_add() { return _status_list_add; }
00067 
00069 
00072   set<string> get_status_list_rem() { return _status_list_rem; }
00073 
00075 
00078   bool get_chg() { return _chg; }
00079 
00081 
00084   void set_common_data(const CommonData &common) 
00085   {
00086     _common = common;
00087   }
00088 
00090 
00093   CommonData get_common_data() { return _common; }
00094   
00096   void reset() 
00097   { 
00098     Command::reset();
00099     _status_list_add.clear();
00100     _status_list_rem.clear();
00101     _chg = false;
00102     _common.reset();
00103     _authInfo.reset();
00104   }
00105 
00107 
00110   void set_authInfo(const AuthInfo &authInfo)
00111   {
00112     _authInfo = authInfo;
00113   }
00114 
00116 
00119   AuthInfo get_authInfo() { return _authInfo; }
00120 
00121 protected:
00123   set<string> _status_list_add;
00124 
00126   set<string> _status_list_rem;
00127 
00129   bool _chg;
00130 
00132   CommonData _common;
00133 
00135   AuthInfo _authInfo;
00136 };
00137 
00138 LIBEPP_NICBR_NS_END
00139 #endif //__CONTACT_UPDATE_CMD_H__

Generated on Wed Mar 22 14:18:26 2006 for libepp_nicbr by  doxygen 1.4.6