4#include "kidentitymanagementquickplugin.h"
9#include "identityeditorbackend.h"
10#include "identitymodel.h"
11#include "identityutils.h"
12#include "keylistmodelinterface.h"
13#include <KIdentityManagementQuick/CryptographyEditorBackend>
15using namespace KIdentityManagementQuick;
17void KIdentityManagementQuickPlugin::registerTypes(
const char *uri)
20 Q_ASSERT(uri ==
QByteArray(
"org.kde.kidentitymanagement"));
22 qmlRegisterSingletonType<IdentityUtils>(uri, 1, 0,
"IdentityUtils", [](
QQmlEngine *engine,
QJSEngine *scriptEngine) {
24 Q_UNUSED(scriptEngine)
25 return new IdentityUtils;
28 qmlRegisterType<CryptographyEditorBackend>(uri, 1, 0,
"CryptographyEditorBackend");
29 qmlRegisterType<IdentityEditorBackend>(uri, 1, 0,
"IdentityEditorBackend");
30 qmlRegisterType<KIdentityManagementCore::IdentityModel>(uri, 1, 0,
"IdentityModel");
32 qRegisterMetaType<CryptographyBackendInterfacePtr>(
"CryptographyBackendInterfacePtr");
33 qRegisterMetaType<KIdentityManagementCore::Identity>(
"Identity");
34 qRegisterMetaType<KeyUseTypes::KeyUse>(
"KeyUseTypes::KeyUse");
36 qmlRegisterUncreatableType<KeyUseTypes>(uri, 1, 0,
"KeyUseTypes", QStringLiteral(
"Cannot instantiate KeyUseTypes wrapper!"));
39#include "moc_kidentitymanagementquickplugin.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:11 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.