KPeople

allcontactsmonitor.cpp
1 /*
2  SPDX-FileCopyrightText: 2013 David Edmundson <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #include "allcontactsmonitor.h"
8 
9 using namespace KPeople;
10 
11 class KPeople::AllContactsMonitorPrivate
12 {
13 public:
14  AllContactsMonitorPrivate()
15  {
16  }
17 
18  bool m_initialFetchDone = false;
19  bool m_initialFetchSucccess = false;
20 };
21 
22 AllContactsMonitor::AllContactsMonitor()
23  : QObject()
24  , d_ptr(new AllContactsMonitorPrivate)
25 {
26 }
27 AllContactsMonitor::~AllContactsMonitor()
28 {
29  delete d_ptr;
30 }
31 
33 {
35 }
36 
37 bool AllContactsMonitor::isInitialFetchComplete() const
38 {
39  return d_ptr->m_initialFetchDone;
40 }
41 
42 bool AllContactsMonitor::initialFetchSuccess() const
43 {
44  return d_ptr->m_initialFetchSucccess;
45 }
46 
48 {
49  d_ptr->m_initialFetchDone = true;
50  d_ptr->m_initialFetchSucccess = success;
51  Q_EMIT initialFetchComplete(success);
52 }
virtual QMap< QString, AbstractContact::Ptr > contacts()
Returns all currently loaded contacts.
void emitInitialFetchComplete(bool success)
DataSources should call this once they have finished initial retrieval of all contacts from their sto...
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jan 27 2022 22:42:01 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.