File indexing completed on 2022-12-06 15:16:36

0001 /*
0002     SPDX-FileCopyrightText: 2016 Smith AR <audoban@openmailbox.org>
0003     SPDX-FileCopyrightText: 2016 Michail Vourlakos <mvourlakos@gmail.com>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #include "lattecoreplugin.h"
0009 
0010 // local
0011 #include "dialog.h"
0012 #include "environment.h"
0013 #include "iconitem.h"
0014 #include "quickwindowsystem.h"
0015 #include "tools.h"
0016 
0017 #include <types.h>
0018 
0019 // Qt
0020 #include <QtQml>
0021 
0022 
0023 void LatteCorePlugin::registerTypes(const char *uri)
0024 {
0025     Q_ASSERT(uri == QLatin1String("org.kde.latte.core"));
0026     qmlRegisterUncreatableType<Latte::Types>(uri, 0, 2, "Types", "Latte Types uncreatable");
0027     qmlRegisterType<Latte::IconItem>(uri, 0, 2, "IconItem");
0028     qmlRegisterType<Latte::Quick::Dialog>(uri, 0, 2, "Dialog");
0029     qmlRegisterSingletonType<Latte::Environment>(uri, 0, 2, "Environment", &Latte::environment_qobject_singletontype_provider);
0030     qmlRegisterSingletonType<Latte::Tools>(uri, 0, 2, "Tools", &Latte::tools_qobject_singletontype_provider);
0031     qmlRegisterSingletonType<Latte::QuickWindowSystem>(uri, 0, 2, "WindowSystem", &Latte::windowsystem_qobject_singletontype_provider);
0032 }