Fix Bug 359018 - Pressing cancel does not undo changes made to "Empty local wastebin...
[kdepim.git] / kaddressbook / contactlist.h
blobd923b4f572761a57a712dc7c425f470e22c08118
1 /*
2 This file is part of KAddressBook.
4 Copyright (c) 2015 Laurent Montel <montel@kde.org>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef CONTACTLIST_H
22 #define CONTACTLIST_H
23 #include <KContacts/Addressee>
24 #include <KContacts/ContactGroup>
26 class ContactList
28 public:
29 ContactList();
31 bool isEmpty() const;
32 int count() const;
33 void clear();
35 void append(const KContacts::Addressee &addr);
36 void append(const KContacts::ContactGroup &group);
38 KContacts::Addressee::List addressList() const;
39 void setAddressList(const KContacts::Addressee::List &value);
40 KContacts::ContactGroup::List contactGroupList() const;
41 void setContactGroupList(const KContacts::ContactGroup::List &value);
43 private:
44 KContacts::Addressee::List mAddressList;
45 KContacts::ContactGroup::List mContactGroupList;
48 #endif // CONTACTLIST_H