Kdepim-apps-lib

kaddressbookimportexportcontactlist.h
1 /*
2  This file is part of KAddressBook.
3 
4  Copyright (C) 2015-2020 Laurent Montel <[email protected]>
5 
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.
10 
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.
15 
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.
19 */
20 
21 #ifndef KAddressBookImportExportCONTACTLIST_H
22 #define KAddressBookImportExportCONTACTLIST_H
23 #include <KContacts/Addressee>
24 #include <KContacts/ContactGroup>
25 #include "kaddressbook_importexport_export.h"
26 
27 namespace KAddressBookImportExport {
28 
30 class KADDRESSBOOK_IMPORTEXPORT_EXPORT KAddressBookImportExportContactList
31 {
32 public:
34 
35  Q_REQUIRED_RESULT bool isEmpty() const;
36  Q_REQUIRED_RESULT int count() const;
37  void clear();
38 
39  void append(const KContacts::Addressee &addr);
40  void append(const KContacts::ContactGroup &group);
41 
42  Q_REQUIRED_RESULT KContacts::Addressee::List addressList() const;
43  void setAddressList(const KContacts::Addressee::List &value);
44  Q_REQUIRED_RESULT KContacts::ContactGroup::List contactGroupList() const;
45  void setContactGroupList(const KContacts::ContactGroup::List &value);
46 
47 private:
48  KContacts::Addressee::List mAddressList;
49  KContacts::ContactGroup::List mContactGroupList;
50 };
51 }
52 
53 #endif // KAddressBookImportExportCONTACTLIST_H
AddresseeList List
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 10 2020 23:23:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.