mirror of https://github.com/nymea/nymea.git
fix warnings
parent
04df5cc685
commit
75dfbc36d9
|
|
@ -1,6 +1,8 @@
|
|||
TARGET = hive
|
||||
TEMPLATE = lib
|
||||
|
||||
CONFIG += c++11
|
||||
|
||||
target.path = /usr/lib
|
||||
INSTALLS += target
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
TEMPLATE = lib
|
||||
CONFIG += plugin static
|
||||
include(../../plugins.pri)
|
||||
|
||||
TARGET = $$qtLibraryTarget(hive_devicepluginelro)
|
||||
|
||||
INCLUDEPATH += ../../../libhive
|
||||
LIBS += -L../../../libhive -lhive
|
||||
|
||||
SOURCES += \
|
||||
devicepluginelro.cpp
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
TEMPLATE = lib
|
||||
CONFIG += plugin static
|
||||
include (../../plugins.pri)
|
||||
|
||||
TARGET = $$qtLibraryTarget(hive_devicepluginintertechno)
|
||||
|
||||
INCLUDEPATH += ../../../libhive
|
||||
LIBS += -L../../../libhive -lhive
|
||||
|
||||
SOURCES += \
|
||||
devicepluginintertechno.cpp
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
TEMPLATE = lib
|
||||
CONFIG += plugin static
|
||||
include(../../plugins.pri)
|
||||
|
||||
TARGET = $$qtLibraryTarget(hive_devicepluginmeisteranker)
|
||||
|
||||
INCLUDEPATH += ../../../libhive
|
||||
LIBS += -L../../../libhive -lhive
|
||||
|
||||
SOURCES += \
|
||||
devicepluginmeisteranker.cpp
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
TEMPLATE = lib
|
||||
CONFIG += plugin static c++11
|
||||
|
||||
INCLUDEPATH += ../../../libhive
|
||||
LIBS += -L../../../libhive -lhive
|
||||
|
||||
|
|
@ -75,6 +75,8 @@ void JsonRPCServer::processData(int clientId, const QByteArray &jsonData)
|
|||
case DeviceManager::DeviceErrorMissingParameter:
|
||||
sendErrorResponse(clientId, commandId, "Error creating device. Missing parameter.");
|
||||
break;
|
||||
default:
|
||||
sendErrorResponse(clientId, commandId, "Unknown error.");
|
||||
}
|
||||
} else if (method == "GetConfiguredDevices") {
|
||||
QVariantMap rspParams;
|
||||
|
|
@ -157,6 +159,8 @@ void JsonRPCServer::handleActionMessage(int clientId, int commandId, const QStri
|
|||
case DeviceManager::DeviceErrorDeviceNotFound:
|
||||
sendErrorResponse(clientId, commandId, "No such device");
|
||||
break;
|
||||
default:
|
||||
sendErrorResponse(clientId, commandId, "Unknown error.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ target.path = /usr/bin
|
|||
INSTALLS += target
|
||||
|
||||
QT += network
|
||||
CONFIG += c++11
|
||||
|
||||
LIBS += -L../libhive/ -lhive
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue