diff --git a/libnymea-core/devices/deviceclasscache.h b/libnymea-core/devices/deviceclasscache.h deleted file mode 100644 index a74a1155..00000000 --- a/libnymea-core/devices/deviceclasscache.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef PLUGININFOCACHE_H -#define PLUGININFOCACHE_H - -#include "types/deviceclass.h" -#include "devices/deviceplugin.h" - -class PluginInfoCache -{ -public: - PluginInfoCache(); - - static void cachePluginInfo(const QJsonObject &metaData); - static QJsonObject loadPluginInfo(const PluginId &pluginId); -}; - -#endif // PLUGININFOCACHE_H diff --git a/libnymea-core/devices/devicemanagerimplementation.cpp b/libnymea-core/devices/devicemanagerimplementation.cpp index 9cd6e145..e261e68c 100644 --- a/libnymea-core/devices/devicemanagerimplementation.cpp +++ b/libnymea-core/devices/devicemanagerimplementation.cpp @@ -38,7 +38,7 @@ #include "typeutils.h" #include "nymeasettings.h" #include "version.h" -#include "deviceclasscache.h" +#include "plugininfocache.h" #include "devices/devicediscoveryinfo.h" #include "devices/devicepairinginfo.h" diff --git a/libnymea-core/devices/deviceclasscache.cpp b/libnymea-core/devices/plugininfocache.cpp similarity index 55% rename from libnymea-core/devices/deviceclasscache.cpp rename to libnymea-core/devices/plugininfocache.cpp index 46910371..5e173476 100644 --- a/libnymea-core/devices/deviceclasscache.cpp +++ b/libnymea-core/devices/plugininfocache.cpp @@ -1,4 +1,34 @@ -#include "deviceclasscache.h" +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * +* +* Copyright 2013 - 2020, nymea GmbH +* Contact: contact@nymea.io +* +* This file is part of nymea. +* This project including source code and documentation is protected by +* copyright law, and remains the property of nymea GmbH. All rights, including +* reproduction, publication, editing and translation, are reserved. The use of +* this project is subject to the terms of a license agreement to be concluded +* with nymea GmbH in accordance with the terms of use of nymea GmbH, available +* under https://nymea.io/license +* +* GNU General Public License Usage +* Alternatively, this project may be redistributed and/or modified under the +* terms of the GNU General Public License as published by the Free Software +* Foundation, GNU version 3. This project is distributed in the hope that it +* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +* Public License for more details. +* +* You should have received a copy of the GNU General Public License along with +* this project. If not, see . +* +* For any further details and any questions please contact us under +* contact@nymea.io or see our FAQ/Licensing Information on +* https://nymea.io/license/faq +* +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +#include "plugininfocache.h" #include #include diff --git a/libnymea-core/devices/plugininfocache.h b/libnymea-core/devices/plugininfocache.h new file mode 100644 index 00000000..7db29954 --- /dev/null +++ b/libnymea-core/devices/plugininfocache.h @@ -0,0 +1,46 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * +* +* Copyright 2013 - 2020, nymea GmbH +* Contact: contact@nymea.io +* +* This file is part of nymea. +* This project including source code and documentation is protected by +* copyright law, and remains the property of nymea GmbH. All rights, including +* reproduction, publication, editing and translation, are reserved. The use of +* this project is subject to the terms of a license agreement to be concluded +* with nymea GmbH in accordance with the terms of use of nymea GmbH, available +* under https://nymea.io/license +* +* GNU General Public License Usage +* Alternatively, this project may be redistributed and/or modified under the +* terms of the GNU General Public License as published by the Free Software +* Foundation, GNU version 3. This project is distributed in the hope that it +* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +* Public License for more details. +* +* You should have received a copy of the GNU General Public License along with +* this project. If not, see . +* +* For any further details and any questions please contact us under +* contact@nymea.io or see our FAQ/Licensing Information on +* https://nymea.io/license/faq +* +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +#ifndef PLUGININFOCACHE_H +#define PLUGININFOCACHE_H + +#include "types/deviceclass.h" +#include "devices/deviceplugin.h" + +class PluginInfoCache +{ +public: + PluginInfoCache(); + + static void cachePluginInfo(const QJsonObject &metaData); + static QJsonObject loadPluginInfo(const PluginId &pluginId); +}; + +#endif // PLUGININFOCACHE_H diff --git a/libnymea-core/libnymea-core.pro b/libnymea-core/libnymea-core.pro index d345d713..0e9e8d25 100644 --- a/libnymea-core/libnymea-core.pro +++ b/libnymea-core/libnymea-core.pro @@ -16,8 +16,8 @@ RESOURCES += $$top_srcdir/icons.qrc \ HEADERS += nymeacore.h \ - devices/deviceclasscache.h \ devices/devicemanagerimplementation.h \ + devices/plugininfocache.h \ devices/translator.h \ experiences/experiencemanager.h \ ruleengine/ruleengine.h \ @@ -101,8 +101,8 @@ HEADERS += nymeacore.h \ SOURCES += nymeacore.cpp \ - devices/deviceclasscache.cpp \ devices/devicemanagerimplementation.cpp \ + devices/plugininfocache.cpp \ devices/translator.cpp \ experiences/experiencemanager.cpp \ ruleengine/ruleengine.cpp \