00001 /*************************************************************************** 00002 contactmanager.h - description 00003 ------------------- 00004 begin : ven avr 21 2006 00005 copyright : (C) 2006 by 00006 - Sylvain Archenault <sylvain.archenault@laposte.net> 00007 - Yves Houpert <yves.houpert@insa-rouen.fr> 00008 00009 ***************************************************************************/ 00010 00011 /*************************************************************************** 00012 * * 00013 * This program is free software; you can redistribute it and/or modify * 00014 * it under the terms of the GNU General Public License as published by * 00015 * the Free Software Foundation; either version 2 of the License, or * 00016 * (at your option) any later version. * 00017 * * 00018 ***************************************************************************/ 00019 #ifndef CONTACTMANAGER_H 00020 #define CONTACTMANAGER_H 00021 00022 #include <contactlist.h> 00023 #include <Kernel/basemanager.h> 00024 00025 class KernelMessenger; 00026 class ListeWidget; 00027 00033 class ContactManager : public BaseManager 00034 { 00035 public: //public methods 00036 00040 ContactManager(KernelMessenger& rKernel, ListeWidget& rWidget); 00041 00043 ~ContactManager(); 00044 00047 void addContact(const Contact& contact); 00048 00051 void removeContact(const int contactID); 00052 00054 void clear(); 00055 00058 void setContactList(const ContactList& list); 00059 00063 const Contact* const getContact(const int contactID) const; 00064 00068 void changeContactStatus(const int contactID, const Contact::Status newStatus); 00069 00070 private: //private members 00072 ContactList m_ContactList; 00073 }; 00074 00075 #endif
1.4.6