8#ifndef BASE_PERSONS_DATA_SOURCE_H
9#define BASE_PERSONS_DATA_SOURCE_H
14#include <kpeoplebackend/kpeoplebackend_export.h>
16#include "allcontactsmonitor.h"
17#include "contactmonitor.h"
21class BasePersonsDataSourcePrivate;
24class KPEOPLEBACKEND_EXPORT BasePersonsDataSource :
public QObject
28 BasePersonsDataSource(
QObject *parent,
const QVariantList &args = QVariantList());
29 ~BasePersonsDataSource()
override;
45 virtual QString sourcePluginId()
const = 0;
48 virtual AllContactsMonitor *createAllContactsMonitor() = 0;
54 virtual ContactMonitor *createContactMonitor(
const QString &contactUri);
57 Q_DISABLE_COPY(BasePersonsDataSource)
58 Q_DECLARE_PRIVATE(BasePersonsDataSource)
59 BasePersonsDataSourcePrivate *d_ptr;
62class KPEOPLEBACKEND_EXPORT BasePersonsDataSourceV2 :
public BasePersonsDataSource
66 BasePersonsDataSourceV2(
QObject *parent,
const QVariantList &args = QVariantList());
68 virtual bool addContact(
const QVariantMap &properties) = 0;
69 virtual bool deleteContact(
const QString &uri) = 0;
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:03 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.