summaryrefslogtreecommitdiffstats
path: root/framework/actions/actionplugin.cpp
blob: 05852d2e8186c7edd1c8df83e97c482ead73a7a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "actionplugin.h"

#include "action.h"
#include "context.h"
#include "actionhandler.h"
#include "actionresult.h"

#include <QtQml>

void KubePlugin::registerTypes (const char *uri)
{
    Q_ASSERT(uri == QLatin1String("org.kube.framework.actions"));
    qmlRegisterType<Kube::Context>(uri, 1, 0, "Context");
    qmlRegisterType<Kube::Action>(uri, 1, 0, "Action");
    qmlRegisterType<Kube::ActionHandler>(uri, 1, 0, "ActionHandler");
    qmlRegisterType<Kube::ActionResult>(uri, 1, 0, "ActionResult");
}