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;
52 }
void emitInitialFetchComplete(bool success)
DataSources should call this once they have finished initial retrieval of all contacts from their sto...
Q_EMITQ_EMIT
void initialFetchComplete(bool success)
Notifies that the DataSource has completed it's initial fetch.
virtual QMap< QString, AbstractContact::Ptr > contacts()
Returns all currently loaded contacts.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Jul 1 2022 05:11:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.