KPeople

allcontactsmonitor.cpp
1/*
2 SPDX-FileCopyrightText: 2013 David Edmundson <davidedmundson@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#include "allcontactsmonitor.h"
8
9using namespace KPeople;
10
11class KPeople::AllContactsMonitorPrivate
12{
13public:
14 AllContactsMonitorPrivate()
15 {
16 }
17
18 bool m_initialFetchDone = false;
19 bool m_initialFetchSucccess = false;
20};
21
22AllContactsMonitor::AllContactsMonitor()
23 : QObject()
24 , d_ptr(new AllContactsMonitorPrivate)
25{
26}
27AllContactsMonitor::~AllContactsMonitor()
28{
29 delete d_ptr;
30}
31
36
37bool AllContactsMonitor::isInitialFetchComplete() const
38{
39 return d_ptr->m_initialFetchDone;
40}
41
42bool 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}
53
54#include "moc_allcontactsmonitor.cpp"
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...
void initialFetchComplete(bool success)
Notifies that the DataSource has completed it's initial fetch.
Q_EMITQ_EMIT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:45 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.