KDeclarative

kconfigplugin.cpp
1 /*
2  SPDX-FileCopyrightText: 2016 Kai Uwe Broulik <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #include "kconfigplugin.h"
8 
9 #include <QtQml>
10 
11 #include "kauthorizedproxy.h"
12 
13 QObject *kauthorizedProxy_singleton_provider(QQmlEngine *, QJSEngine *)
14 {
15  return new KAuthorizedProxy;
16 }
17 
18 void KConfigPlugin::registerTypes(const char *uri)
19 {
20  Q_ASSERT(QString::fromLatin1(uri) == QLatin1String("org.kde.kconfig"));
21 
22  qmlRegisterSingletonType<KAuthorizedProxy>(uri, 1, 0, "KAuthorized", kauthorizedProxy_singleton_provider);
23 }
QString fromLatin1(const char *str, int size)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 22:44:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.