File indexing completed on 2024-04-28 16:49:38
0001 /* 0002 * Copyright 2016 Smith AR <audoban@openmailbox.org> 0003 * Michail Vourlakos <mvourlakos@gmail.com> 0004 * 0005 * This file is part of Latte-Dock 0006 * 0007 * Latte-Dock is free software; you can redistribute it and/or 0008 * modify it under the terms of the GNU General Public License as 0009 * published by the Free Software Foundation; either version 2 of 0010 * the License, or (at your option) any later version. 0011 * 0012 * Latte-Dock is distributed in the hope that it will be useful, 0013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0015 * GNU General Public License for more details. 0016 * 0017 * You should have received a copy of the GNU General Public License 0018 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0019 */ 0020 0021 #include "latteplugin.h" 0022 0023 // local 0024 #include "backgroundtracker.h" 0025 #include "iconitem.h" 0026 #include "quickwindowsystem.h" 0027 #include "types.h" 0028 0029 // Qt 0030 #include <QtQml> 0031 0032 void LattePlugin::registerTypes(const char *uri) 0033 { 0034 Q_ASSERT(uri == QLatin1String("org.kde.latte")); 0035 qmlRegisterUncreatableType<Latte::Types>(uri, 0, 2, "Types", "Latte Types uncreatable"); 0036 qmlRegisterType<Latte::BackgroundTracker>(uri, 0, 2, "BackgroundTracker"); 0037 qmlRegisterType<Latte::IconItem>(uri, 0, 2, "IconItem"); 0038 qmlRegisterSingletonType<Latte::QuickWindowSystem>(uri, 0, 2, "WindowSystem", &Latte::windowsystem_qobject_singletontype_provider); 0039 }