00001 /*************************************************************************** 00002 contactlistanswer.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 CONTACTLISTANSWER_H 00019 #define CONTACTLISTANSWER_H 00020 00021 #include <Message/answer.h> 00022 #include <contactlist.h> 00023 00029 class ContactListAnswer : public Answer 00030 { 00031 public: 00035 ContactListAnswer(); 00036 00042 ContactListAnswer(const std::string& description, const ContactList& list); 00043 00047 ~ContactListAnswer(); 00048 00053 void addContact(const Contact& contact); 00054 00059 ContactList getContactList() const { return m_ContactList; } 00060 00064 std::string toString() const; 00065 00067 void processMessage() const; 00068 00071 ContactListAnswer& copy() const; 00072 00073 private: // private members 00075 ContactList m_ContactList; 00076 }; 00077 00078 #endif
1.4.6