KContacts

kcontactsqmlplugin.cpp
1/*
2 SPDX-FileCopyrightText: 2024 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#include <KContacts/AddressFormat>
7
8#include <QQmlEngine>
9#include <QQmlExtensionPlugin>
10
11class KContactsQmlPlugin : public QQmlExtensionPlugin
12{
14 Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
15
16public:
17 void registerTypes(const char *uri) override;
18};
19
20void KContactsQmlPlugin::registerTypes(const char *uri)
21{
22 qmlRegisterSingletonType(uri, 1, 0, "AddressFormatRepository", [](QQmlEngine *, QJSEngine *jsEngine) -> QJSValue {
24 });
25}
26
27#include "kcontactsqmlplugin.moc"
Provides address format information for a given country.
QJSValue toScriptValue(const T &value)
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.