File indexing completed on 2024-05-12 12:01:30

0001 /*
0002     SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 */
0006 
0007 #include "purposequickplugin.h"
0008 #include "alternativesmodel.h"
0009 #include "configuration.h"
0010 #include "job.h"
0011 #include "jobcontroller.h"
0012 #include <qqml.h>
0013 
0014 void PurposeQuickPlugin::registerTypes(const char *uri)
0015 {
0016     qmlRegisterType<Purpose::AlternativesModel>(uri, 1, 0, "PurposeAlternativesModel");
0017     qmlRegisterType<Purpose::JobController>(uri, 1, 0, "PurposeJobController");
0018     qmlRegisterUncreatableType<Purpose::Job>(uri, 1, 0, "PurposeJob", QStringLiteral("You're not supposed to instantiate jobs"));
0019     qmlRegisterUncreatableType<Purpose::Configuration>(uri, 1, 0, "PurposeConfiguration", QStringLiteral("You're not supposed to instantiate configurations"));
0020 }
0021 
0022 #include "moc_purposequickplugin.cpp"