KPeople
8#ifndef PEOPLEQMLPLUGIN_H
9#define PEOPLEQMLPLUGIN_H
12#include <QQmlExtensionPlugin>
14#include "personsmodel.h"
15#include <KPeople/PersonPluginManager>
17#include <personactionsmodel_p.h>
18#include <personssortfilterproxymodel.h>
20class DeclarativePersonPluginManager :
public QObject
24 QML_NAMED_ELEMENT(PersonPluginManager)
27 Q_SCRIPTABLE
bool addContact(
const QVariantMap &properties)
31 Q_SCRIPTABLE
bool deleteContact(
const QString &uri)
43 TextChatAction = KPeople::TextChatAction,
44 AudioCallAction = KPeople::AudioCallAction,
45 VideoCallAction = KPeople::VideoCallAction,
46 SendEmailAction = KPeople::SendEmailAction,
47 SendFileAction = KPeople::SendFileAction,
48 OtherAction = KPeople::OtherAction,
56 Q_PLUGIN_METADATA(IID
"org.qt-project.Qt.QQmlExtensionInterface")
58 void initializeEngine(QQmlEngine *engine,
const char *uri)
override;
59 void registerTypes(
const char *uri)
override;
62struct PersonDataForeign {
64 QML_FOREIGN(KPeople::PersonData)
68struct PersonsModelForeign {
70 QML_FOREIGN(KPeople::PersonsModel)
71 QML_NAMED_ELEMENT(PersonsModel)
74class PersonsSortFilterProxyModelForeign
77 QML_FOREIGN(KPeople::PersonsSortFilterProxyModel)
78 QML_NAMED_ELEMENT(PersonsSortFilterProxyModel)
static bool addContact(const QVariantMap &properties)
Creates a contact with the specified properties.
static bool deleteContact(const QString &uri)
Deletes a contact with the specified &p uri.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:06:49 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.