1#include <QGuiApplication>
2#include <PluginRegistry.h>
4#include <QScopedPointer>
7#include <ActionRegistry.h>
8#include <ServiceRegistry.h>
9#include <ItemRegistry.h>
10#include "ListenerRegistry.h"
12int main(
int argc,
char *argv[])
14 QGuiApplication a(argc, argv);
16 QCoreApplication::setApplicationName(
"pluggy");
17 QCoreApplication::setOrganizationName(
"dekko");
20 PluginRegistry::instance()->setPluginLocations(QStringList()
21 << QStringLiteral(
"Composer::ToolbarAction")
22 << QStringLiteral(
"View::Item")
23 << QStringLiteral(
"Dekko::Service")
24 << QStringLiteral(
"Dekko::Listener"));
32 PluginRegistry::instance()->loadPlugins(QStringList() << QStringLiteral(
"/tmp/Dekko"));
39 services->setServiceKey(QStringLiteral(
"Dekko::Service"));
40 services->startServices();
42 qmlRegisterType<ActionRegistry>(
"Plugins", 0, 1,
"ActionRegistry");
43 qmlRegisterType<ItemRegistry>(
"Plugins", 0, 1,
"ItemRegistry");
44 qmlRegisterType<ListenerRegistry>(
"Plugins", 0, 1,
"ListenerRegistry");
46 QScopedPointer<QQuickView> view(
new QQuickView);
47 view->setSource(QUrl(QString(
"qrc:/qml/Main.qml")));