loading plugins working

This commit is contained in:
Michael Zanetti 2019-10-19 20:52:01 +02:00
parent a47bded031
commit fab1871ea1
4 changed files with 6 additions and 3 deletions

View File

@ -17,7 +17,7 @@ ExperienceManager::ExperienceManager(JsonRPCServer *jsonRpcServer, QObject *pare
foreach (const QString &path, pluginSearchDirs()) {
QDir dir(path);
qCDebug(dcExperiences) << "Loading platform plugins from:" << dir.absolutePath();
qCDebug(dcExperiences) << "Loading experience plugins from:" << dir.absolutePath();
foreach (const QString &entry, dir.entryList(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot)) {
QFileInfo fi(path + "/" + entry);
if (fi.isFile()) {

View File

@ -655,6 +655,7 @@ QStringList NymeaCore::loggingFilters()
"Platform",
"PlatformUpdate",
"PlatformZeroConf",
"Experiences",
"Device",
"DeviceManager",
"RuleEngine",

View File

@ -1,6 +1,6 @@
#include "experienceplugin.h"
ExperiencePlugin::ExperiencePlugin(QObject *parent) : JsonHandler(parent)
ExperiencePlugin::ExperiencePlugin(QObject *parent) : QObject(parent)
{
}

View File

@ -2,7 +2,6 @@
#define EXPERIENCEPLUGIN_H
#include <QObject>
#include "jsonrpc/jsonhandler.h"
class ExperiencePlugin : public JsonHandler
{
@ -15,4 +14,7 @@ signals:
public slots:
};
Q_DECLARE_INTERFACE(ExperiencePlugin, "io.nymea.ExperiencePlugin")
#endif // EXPERIENCEPLUGIN_H