include/LoginCmd.H

Go to the documentation of this file.
00001 /* ${copyright}$ */
00002 /* $Id: LoginCmd.H 727 2006-05-16 23:08:27Z koji $ */
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   void set_version(const string &version) { _version = version; }
00051 
00053 
00056   void set_lang(const string &lang) { _lang = lang; }
00057 
00059 
00062   string get_clID() { return _clID; }
00063 
00065 
00068   string get_pw() { return _pw; }
00069 
00071 
00074   string get_new_pw() { return _new_pw; }
00075 
00077 
00080   string get_version() { return _version; }
00081 
00083 
00086   string get_lang() { return _lang; }
00087 
00089 
00092   void reset() 
00093   {
00094     Command::reset();
00095     _clID = "";
00096     _pw = "";
00097     _new_pw = "";
00098     _version = "";
00099     _lang = "en";
00100   }
00101   
00102 protected:
00104   string _clID;
00105 
00107   string _pw;
00108 
00110   string _new_pw;
00111 
00113   string _version;
00114 
00116   string _lang;
00117 };
00118 
00119 LIBEPP_NICBR_NS_END
00120 #endif //__LOGINCMD_H__

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