mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
30 lines
973 B
C++
30 lines
973 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include <QQmlContext>
|
|
#include <QQuickItem>
|
|
|
|
#include "mobileshellplugin.h"
|
|
#include "notifications/notificationfilemenu.h"
|
|
#include "notifications/notificationthumbnailer.h"
|
|
#include "quicksettingsmodel.h"
|
|
#include "shellutil.h"
|
|
|
|
void MobileShellPlugin::registerTypes(const char *uri)
|
|
{
|
|
Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.plasma.private.mobileshell"));
|
|
|
|
qmlRegisterSingletonType<ShellUtil>(uri, 1, 0, "ShellUtil", [](QQmlEngine *, QJSEngine *) -> QObject * {
|
|
return ShellUtil::instance();
|
|
});
|
|
|
|
qmlRegisterType<QuickSetting>(uri, 1, 0, "QuickSetting");
|
|
qmlRegisterType<QuickSettingsModel>(uri, 1, 0, "QuickSettingsModel");
|
|
|
|
// notifications
|
|
qmlRegisterType<NotificationThumbnailer>(uri, 1, 0, "NotificationThumbnailer");
|
|
qmlRegisterType<NotificationFileMenu>(uri, 1, 0, "NotificationFileMenu");
|
|
}
|