Akonadi Contacts

contactgroupexpandjob.h
1 /*
2  This file is part of Akonadi Contact.
3 
4  Copyright (c) 2009 Tobias Koenig <[email protected]>
5 
6  This library is free software; you can redistribute it and/or modify it
7  under the terms of the GNU Library General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or (at your
9  option) any later version.
10 
11  This library is distributed in the hope that it will be useful, but WITHOUT
12  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14  License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to the
18  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  02110-1301, USA.
20 */
21 
22 #ifndef AKONADI_CONTACTGROUPEXPANDJOB_H
23 #define AKONADI_CONTACTGROUPEXPANDJOB_H
24 
25 #include "akonadi-contact_export.h"
26 
27 #include <kcontacts/addressee.h>
28 #include <kcontacts/contactgroup.h>
29 #include <KJob>
30 
31 namespace Akonadi {
63 class AKONADI_CONTACT_EXPORT ContactGroupExpandJob : public KJob
64 {
65  Q_OBJECT
66 
67 public:
74  explicit ContactGroupExpandJob(const KContacts::ContactGroup &group, QObject *parent = nullptr);
75 
84  explicit ContactGroupExpandJob(const QString &name, QObject *parent = nullptr);
85 
89  ~ContactGroupExpandJob() override;
90 
94  Q_REQUIRED_RESULT KContacts::Addressee::List contacts() const;
95 
99  void start() override;
100 
101 private:
102  //@cond PRIVATE
103  class Private;
104  Private *const d;
105 
106  //Already use with QMetaObject::invokeMethod
107  Q_PRIVATE_SLOT(d, void resolveGroup())
108  //@endcond
109 };
110 }
111 
112 #endif
AddresseeList List
Job that expands a ContactGroup to a list of contacts.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 7 2020 23:06:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.