addcontactanswer.h

00001 /***************************************************************************
00002                           addcontactanswer.h  -  description
00003                              -------------------
00004     begin                : mar avr 11 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 #ifndef ADDCONTACTANSWER_H
00019 #define ADDCONTACTANSWER_H
00020 
00021 #include <Message/answer.h>
00022 #include <contact.h>
00023 #include <string>
00024 
00030 class AddContactAnswer : public Answer
00031 {
00032 
00033 public: //public methods.
00040   AddContactAnswer(const bool bValue, const std::string& description, const Contact& contact);
00041 
00046   AddContactAnswer(const bool bValue = false);
00047 
00051   ~AddContactAnswer();
00052 
00057   void setContact(const Contact& contact) { m_Contact = contact; }
00058 
00063   Contact getContact() const { return m_Contact; }
00064 
00069   std::string toString() const;
00070 
00074   void processMessage() const;
00075 
00078   AddContactAnswer& copy() const;
00079 
00080 private: // Private members
00084   Contact m_Contact;
00085 
00086 };
00087 
00088 #endif

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