2017-01-02 17:05:30 -05:00
/*
* Copyright 2016 Smith AR < audoban @ openmailbox . org >
* Michail Vourlakos < mvourlakos @ gmail . com >
*
* This file is part of Latte - Dock
*
* Latte - Dock is free software ; you can redistribute it and / or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation ; either version 2 of
* the License , or ( at your option ) any later version .
*
* Latte - Dock is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
*/
2016-12-25 15:19:01 +02:00
# include "lattedockplugin.h"
2017-02-24 21:41:57 -05:00
# include "quickwindowsystem.h"
2016-12-25 21:28:00 +02:00
# include "dock.h"
2017-01-11 17:36:11 +02:00
# include "iconitem.h"
2016-12-25 15:19:01 +02:00
2017-02-24 21:41:57 -05:00
# include <QtQml>
2016-12-25 15:19:01 +02:00
void LatteDockPlugin : : registerTypes ( const char * uri )
{
2016-12-26 01:02:02 +02:00
Q_ASSERT ( uri = = QLatin1String ( " org.kde.latte " ) ) ;
2016-12-25 21:28:00 +02:00
qmlRegisterUncreatableType < Latte : : Dock > ( uri , 0 , 1 , " Dock " , " Latte Dock Types uncreatable " ) ;
2017-01-11 17:36:11 +02:00
qmlRegisterType < Latte : : IconItem > ( uri , 0 , 1 , " IconItem " ) ;
2017-02-24 21:41:57 -05:00
qmlRegisterSingletonType < Latte : : QuickWindowSystem > ( uri , 0 , 1 , " WindowSystem " , & Latte : : windowsystem_qobject_singletontype_provider ) ;
2016-12-25 15:19:01 +02:00
}