A whole bunch of types in PlasmaCore

This enables, ports where necessary, the rest of the DataEngine classes,
ServiceJob handling, and RunnerManager.

Now, more or less only Dialog and ToolTip are unported. Those will need
reimplementations for QtQuick2.
This commit is contained in:
Sebastian Kügler 2013-02-15 04:01:53 +01:00
parent 8fa8e6675b
commit 6c6acb9944
3 changed files with 19 additions and 16 deletions

View File

@ -16,7 +16,7 @@ set(corebindings_SRCS
theme.cpp theme.cpp
datamodel.cpp datamodel.cpp
datasource.cpp datasource.cpp
# runnermodel.cpp runnermodel.cpp
svgitem.cpp svgitem.cpp
framesvgitem.cpp framesvgitem.cpp
# dialog.cpp # dialog.cpp

View File

@ -29,12 +29,13 @@
#include <plasma/framesvg.h> #include <plasma/framesvg.h>
#include <plasma/svg.h> #include <plasma/svg.h>
// #include <Plasma/QueryMatch> #include <Plasma/QueryMatch>
#include <Plasma/ServiceJob>
#include "datasource.h" #include "datasource.h"
#include "datamodel.h" #include "datamodel.h"
#include "framesvgitem.h" #include "framesvgitem.h"
// #include "runnermodel.h" #include "runnermodel.h"
#include "svgitem.h" #include "svgitem.h"
#include "theme.h" #include "theme.h"
// #include "dialog.h" // #include "dialog.h"
@ -87,21 +88,21 @@ void CoreBindingsPlugin::registerTypes(const char *uri)
// qmlRegisterType<DialogProxy>(uri, 0, 1, "Dialog"); // qmlRegisterType<DialogProxy>(uri, 0, 1, "Dialog");
// qmlRegisterType<ToolTipProxy>(uri, 0, 1, "ToolTip"); // qmlRegisterType<ToolTipProxy>(uri, 0, 1, "ToolTip");
// //
// qmlRegisterInterface<Plasma::Service>("Service"); qmlRegisterInterface<Plasma::Service>("Service");
// qRegisterMetaType<Plasma::Service*>("Service"); qRegisterMetaType<Plasma::Service*>("Service");
// qmlRegisterInterface<Plasma::ServiceJob>("ServiceJob"); qmlRegisterInterface<Plasma::ServiceJob>("ServiceJob");
// qRegisterMetaType<Plasma::ServiceJob*>("ServiceJob"); qRegisterMetaType<Plasma::ServiceJob*>("ServiceJob");
// qmlRegisterType<QAbstractItemModel>(); qmlRegisterType<QAbstractItemModel>();
//
// qmlRegisterType<RunnerModel>(uri, 0, 1, "RunnerModel"); qmlRegisterType<RunnerModel>(uri, 0, 1, "RunnerModel");
// qmlRegisterInterface<Plasma::QueryMatch>("QueryMatch"); qmlRegisterInterface<Plasma::QueryMatch>("QueryMatch");
// qRegisterMetaType<Plasma::QueryMatch *>("QueryMatch"); qRegisterMetaType<Plasma::QueryMatch *>("QueryMatch");
//
// qmlRegisterType<QQmlPropertyMap>(); qmlRegisterType<QQmlPropertyMap>();
qmlRegisterType<IconItem>(uri, 0, 1, "IconItem"); qmlRegisterType<IconItem>(uri, 0, 1, "IconItem");
/*qmlRegisterInterface<Plasma::DataSource>("DataSource"); qmlRegisterInterface<Plasma::DataSource>("DataSource");
qRegisterMetaType<Plasma::DataSource*>("DataSource");*/ qRegisterMetaType<Plasma::DataSource*>("DataSource");
qDebug() << "====> org.kde.plasma.core registered."; qDebug() << "====> org.kde.plasma.core registered.";
} }

View File

@ -23,6 +23,8 @@
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QStringList> #include <QStringList>
#include <Plasma/QueryMatch>
namespace Plasma namespace Plasma
{ {
class RunnerManager; class RunnerManager;