/* This file is part of lomiri-action-api * Copyright 2013 Canonical Ltd. * * lomiri-action-api is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3, * as published by the Free Software Foundation. * * lomiri-action-api is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #include "plugin.h" #include #include "qml-action.h" #include "qml-preview-action.h" #include "qml-context.h" #include "qml-manager.h" #include #include #include void LomiriActionQmlPlugin::registerTypes(const char *uri) { // @uri Lomiri.Action qmlRegisterAnonymousType (uri, 1); qmlRegisterType (uri, 1, 0, "Action"); qmlRegisterType (uri, 1, 1, "Action"); qmlRegisterAnonymousType (uri, 1); qmlRegisterType (uri, 1, 0, "PreviewAction"); qmlRegisterType (uri, 1, 1, "PreviewAction"); qmlRegisterAnonymousType (uri, 1); qmlRegisterType (uri, 1, 0, "PreviewRangeParameter"); qmlRegisterType (uri, 1, 1, "PreviewRangeParameter"); // Don't provide menu item just yet. //qmlRegisterType (uri, 1, 0, "MenuItem"); qmlRegisterAnonymousType (uri, 1); qmlRegisterType (uri, 1, 0, "ActionContext"); qmlRegisterType (uri, 1, 1, "ActionContext"); qmlRegisterType (uri, 1, 0, ""); qmlRegisterType (uri, 1, 1, ""); qmlRegisterType (uri, 1, 0, "ActionManager"); qmlRegisterType (uri, 1, 1, "ActionManager"); } void LomiriActionQmlPlugin::initializeEngine(QQmlEngine *engine, const char *uri) { Q_UNUSED(uri); Q_UNUSED(engine); }