1 /* 2 * %kadu copyright begin% 3 * Copyright 2010, 2011 Piotr Galiszewski (piotr.galiszewski@kadu.im) 4 * Copyright 2009 Bartłomiej Zimoń (uzi18@o2.pl) 5 * Copyright 2009, 2010, 2011, 2013, 2014 Rafał Przemysław Malinowski (rafal.przemyslaw.malinowski@gmail.com) 6 * %kadu copyright end% 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License as 10 * published by the Free Software Foundation; either version 2 of 11 * the License, or (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program. If not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #ifndef CONTACT_SET_H 23 #define CONTACT_SET_H 24 25 #include <QtCore/QSet> 26 27 #include "accounts/account.h" 28 #include "buddies/buddy-set.h" 29 #include "contacts/contact.h" 30 31 #include "exports.h" 32 33 class Contact; 34 class BuddySet; 35 36 class KADUAPI ContactSet : public QSet<Contact> 37 { 38 39 public: 40 ContactSet(); 41 explicit ContactSet(const Contact &contact); 42 43 QVector<Contact> toContactVector() const; 44 BuddySet toBuddySet() const; 45 Contact toContact() const; 46 47 }; 48 49 #endif // CONTACT_SET_H 50