KPeople

personpluginmanager.h
1 /*
2  SPDX-FileCopyrightText: 2013 David Edmundson <[email protected]>
3  SPDX-FileCopyrightText: 2018 Igor Poboiko <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7 
8 #ifndef PERSON_PLUGIN_MANAGER_H
9 #define PERSON_PLUGIN_MANAGER_H
10 
11 
12 #include <kpeople/kpeople_export.h>
13 
14 #include <QVariant>
15 #include <QHash>
16 
17 namespace KPeople
18 {
19 
20 class AbstractPersonAction;
21 class BasePersonsDataSource;
22 
35 class KPEOPLE_EXPORT PersonPluginManager
36 {
37 public:
44  static void setAutoloadDataSourcePlugins(bool autoloadDataSourcePlugins);
45  static QList<BasePersonsDataSource *> dataSourcePlugins();
51  static void addDataSource(const QString &sourceId, BasePersonsDataSource *source);
52  static BasePersonsDataSource *dataSource(const QString &sourceId);
53  static QList<AbstractPersonAction *> actions();
54 
59  static void setDataSourcePlugins(const QHash<QString, BasePersonsDataSource *> &dataSources);
60 
67  static bool addContact(const QVariantMap &properties);
68 
75  static bool deleteContact(const QString &uri);
76 };
77 }
78 
79 #endif // PERSON_PLUGIN_MANAGER_H
This class allows applications to manage DataSource plugins.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 22:46:05 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.