2023-03-05 17:39:03 +00:00
|
|
|
// SPDX-FileCopyrightText: 2023 Devin Lin <devin@kde.org>
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
|
|
#include "folioplugin.h"
|
|
|
|
|
#include "applicationlistmodel.h"
|
|
|
|
|
#include "desktopmodel.h"
|
|
|
|
|
|
|
|
|
|
void HalcyonPlugin::registerTypes(const char *uri)
|
|
|
|
|
{
|
2023-03-06 19:13:48 +00:00
|
|
|
Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.private.mobile.homescreen.folio"));
|
2023-03-05 17:39:03 +00:00
|
|
|
|
2023-03-06 19:13:48 +00:00
|
|
|
qmlRegisterSingletonType<ApplicationListModel>(uri, 1, 0, "ApplicationListModel", [](QQmlEngine *, QJSEngine *) -> QObject * {
|
|
|
|
|
return ApplicationListModel::self();
|
2023-03-05 17:39:03 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
qmlRegisterType<DesktopModel>(uri, 1, 0, "DesktopModel");
|
|
|
|
|
}
|