File indexing completed on 2024-05-12 15:44:26
0001 /* 0002 SPDX-FileCopyrightText: 2013 David Edmundson <davidedmundson@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #include "allcontactsmonitor.h" 0008 0009 using namespace KPeople; 0010 0011 class KPeople::AllContactsMonitorPrivate 0012 { 0013 public: 0014 AllContactsMonitorPrivate() 0015 { 0016 } 0017 0018 bool m_initialFetchDone = false; 0019 bool m_initialFetchSucccess = false; 0020 }; 0021 0022 AllContactsMonitor::AllContactsMonitor() 0023 : QObject() 0024 , d_ptr(new AllContactsMonitorPrivate) 0025 { 0026 } 0027 AllContactsMonitor::~AllContactsMonitor() 0028 { 0029 delete d_ptr; 0030 } 0031 0032 QMap<QString, AbstractContact::Ptr> AllContactsMonitor::contacts() 0033 { 0034 return QMap<QString, AbstractContact::Ptr>(); 0035 } 0036 0037 bool AllContactsMonitor::isInitialFetchComplete() const 0038 { 0039 return d_ptr->m_initialFetchDone; 0040 } 0041 0042 bool AllContactsMonitor::initialFetchSuccess() const 0043 { 0044 return d_ptr->m_initialFetchSucccess; 0045 } 0046 0047 void AllContactsMonitor::emitInitialFetchComplete(bool success) 0048 { 0049 d_ptr->m_initialFetchDone = true; 0050 d_ptr->m_initialFetchSucccess = success; 0051 Q_EMIT initialFetchComplete(success); 0052 } 0053 0054 #include "moc_allcontactsmonitor.cpp"