include/ContactCreateCmd.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: ContactCreateCmd.H 547 2006-03-07 22:44:18Z cesar $ */
00007 #ifndef __CONTACT_CREATE_CMD_H__
00008 #define __CONTACT_CREATE_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 ContactCreateCmd : public Command
00027 {
00028 public:
00029 
00031   ContactCreateCmd(bool reset = true) : Command(false)
00032   {
00033     if (reset) {
00034       this->reset();
00035     }
00036   }
00037 
00039 
00042   void set_common_data(const CommonData &common) 
00043   {
00044     _common = common;
00045   }
00046 
00048 
00051   CommonData get_common_data() { return _common; }
00052 
00054   void reset()
00055   {
00056     Command::reset();
00057     _common.reset();
00058     _authInfo.reset();
00059   }
00060 
00062 
00065   void set_authInfo(const AuthInfo &authInfo)
00066   {
00067     _authInfo = authInfo;
00068   }
00069 
00071 
00074   AuthInfo get_authInfo() { return _authInfo; }
00075 
00076 protected:
00078   CommonData _common;
00079 
00081   AuthInfo _authInfo;
00082 };
00083 
00084 LIBEPP_NICBR_NS_END
00085 #endif //__CONTACT_CREATE_CMD_H__

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