include/LoginCmd.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: LoginCmd.H 536 2006-03-03 15:00:29Z cesar $ */
00007 #ifndef __LOGINCMD_H__
00008 #define __LOGINCMD_H__
00009 
00010 #include "libepp_nicbr.H"
00011 
00012 #include "Command.H"
00013 
00014 LIBEPP_NICBR_NS_BEGIN
00015 
00017 class LoginCmd : public Command
00018 {
00019 public:
00021   LoginCmd(bool reset = true) : Command(false)
00022   {
00023     if (reset) {
00024       this->reset();
00025     }
00026   }
00027 
00029 
00032   void set_clID(const string &clID) { _clID = clID; }
00033 
00035 
00038   void set_pw(const string &pw) { _pw = pw; }
00039 
00041 
00044   void set_new_pw(const string &new_pw) { _new_pw = new_pw; }
00045 
00047 
00050   string get_clID() { return _clID; }
00051 
00053 
00056   string get_pw() { return _pw; }
00057 
00059 
00062   string get_new_pw() { return _new_pw; }
00063 
00065 
00068   void reset() 
00069   {
00070     Command::reset();
00071     _clID = "";
00072     _pw = "";
00073     _new_pw = "";
00074   }
00075   
00076 protected:
00078   string _clID;
00079 
00081   string _pw;
00082 
00084   string _new_pw;
00085 };
00086 
00087 LIBEPP_NICBR_NS_END
00088 #endif //__LOGINCMD_H__

Generated on Fri May 12 15:36:25 2006 for libepp_nicbr by  doxygen 1.4.6