loading plugins working
This commit is contained in:
parent
a47bded031
commit
fab1871ea1
@ -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()) {
|
||||
|
||||
@ -655,6 +655,7 @@ QStringList NymeaCore::loggingFilters()
|
||||
"Platform",
|
||||
"PlatformUpdate",
|
||||
"PlatformZeroConf",
|
||||
"Experiences",
|
||||
"Device",
|
||||
"DeviceManager",
|
||||
"RuleEngine",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#include "experienceplugin.h"
|
||||
|
||||
ExperiencePlugin::ExperiencePlugin(QObject *parent) : JsonHandler(parent)
|
||||
ExperiencePlugin::ExperiencePlugin(QObject *parent) : QObject(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user