File indexing completed on 2024-11-10 04:56:47

0001 /*
0002     SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 #include "plugin.h"
0007 #include "buttonsmodel.h"
0008 #include "previewbridge.h"
0009 #include "previewbutton.h"
0010 #include "previewclient.h"
0011 #include "previewitem.h"
0012 #include "previewsettings.h"
0013 
0014 #include <KDecoration2/Decoration>
0015 #include <KDecoration2/DecorationShadow>
0016 
0017 namespace KDecoration2
0018 {
0019 namespace Preview
0020 {
0021 
0022 void Plugin::registerTypes(const char *uri)
0023 {
0024     Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.kwin.private.kdecoration"));
0025     qmlRegisterType<KDecoration2::Preview::BridgeItem>(uri, 1, 0, "Bridge");
0026     qmlRegisterType<KDecoration2::Preview::Settings>(uri, 1, 0, "Settings");
0027     qmlRegisterType<KDecoration2::Preview::PreviewItem>(uri, 1, 0, "Decoration");
0028     qmlRegisterType<KDecoration2::Preview::PreviewButtonItem>(uri, 1, 0, "Button");
0029     qmlRegisterType<KDecoration2::Preview::ButtonsModel>(uri, 1, 0, "ButtonsModel");
0030     qmlRegisterAnonymousType<KDecoration2::Preview::PreviewClient>(uri, 1);
0031     qmlRegisterAnonymousType<KDecoration2::Decoration>(uri, 1);
0032     qmlRegisterAnonymousType<KDecoration2::DecorationShadow>(uri, 1);
0033     qmlRegisterAnonymousType<KDecoration2::Preview::PreviewBridge>(uri, 1);
0034 }
0035 
0036 }
0037 }
0038 
0039 #include "moc_plugin.cpp"