connectionrequest.h

00001 /***************************************************************************
00002                           connectionrequest.h  -  description
00003                              -------------------
00004     begin                : mer avr 12 2006
00005     copyright            : (C) 2006 by Sylvain Archenault <sylvain.archenault@laposte.net>
00006                                        Yves Houpert <yves.houpert@insa-rouen.fr>
00007  
00008  ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   (at your option) any later version.                                   *
00016  *                                                                         *
00017  ***************************************************************************/
00018 
00019 #ifndef CONNECTIONREQUEST_H
00020 #define CONNECTIONREQUEST_H
00021 
00022 #include <Message/request.h>
00023 #include <string>
00024 
00025 using namespace std;
00026 
00032 class ConnectionRequest : public Request
00033 {
00034 public: //public methods
00036   ConnectionRequest();
00037 
00042   ConnectionRequest(const string& sUser,const string& sPass );
00043 
00045   ~ConnectionRequest();
00046 
00050   void setUsername(const string& sUsername) { m_sUsername = sUsername; }
00051 
00055   void setPassword(const string& sPassword) { m_sPassword = sPassword; }
00056 
00060   string getPassword() const { return m_sPassword; }
00061 
00065   string getUsername() const { return m_sPassword; }
00066 
00070   string toString() const;
00071 
00075   void toXMLExt(XMLWriter& writer) const;
00076   
00082   char* hash(const std::string& string) const;
00083 
00086   ConnectionRequest& copy() const;
00087 
00088 private: //private members
00090   string m_sUsername;
00091 
00093   string m_sPassword;
00094 };
00095 
00096 #endif

Generated on Fri May 19 12:15:54 2006 for Bamboo Ch@t by  doxygen 1.4.6