00001 /*************************************************************************** 00002 connectionanswer.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 CONNECTIONANSWER_H 00020 #define CONNECTIONANSWER_H 00021 00022 #include <Message/answer.h> 00023 #include <contact.h> 00024 00030 class ConnectionAnswer : public Answer 00031 { 00032 public: //public methods 00037 ConnectionAnswer(const bool bValue = false); 00044 ConnectionAnswer(const bool bValue, const std::string& description, const Contact& contact); 00045 00049 ~ConnectionAnswer(); 00054 void setContact(const Contact& contact) { m_Contact = contact; } 00055 00060 Contact getContact() const { return m_Contact; } 00061 00065 std::string toString() const; 00066 00068 void processMessage() const; 00069 00072 ConnectionAnswer& copy() const; 00073 00074 private: //private members 00076 Contact m_Contact; 00077 }; 00078 00079 #endif
1.4.6