fix warnings
This commit is contained in:
parent
04df5cc685
commit
75dfbc36d9
@ -1,6 +1,8 @@
|
|||||||
TARGET = hive
|
TARGET = hive
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
|
|
||||||
|
CONFIG += c++11
|
||||||
|
|
||||||
target.path = /usr/lib
|
target.path = /usr/lib
|
||||||
INSTALLS += target
|
INSTALLS += target
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,7 @@
|
|||||||
TEMPLATE = lib
|
include(../../plugins.pri)
|
||||||
CONFIG += plugin static
|
|
||||||
|
|
||||||
TARGET = $$qtLibraryTarget(hive_devicepluginelro)
|
TARGET = $$qtLibraryTarget(hive_devicepluginelro)
|
||||||
|
|
||||||
INCLUDEPATH += ../../../libhive
|
|
||||||
LIBS += -L../../../libhive -lhive
|
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
devicepluginelro.cpp
|
devicepluginelro.cpp
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,7 @@
|
|||||||
TEMPLATE = lib
|
include (../../plugins.pri)
|
||||||
CONFIG += plugin static
|
|
||||||
|
|
||||||
TARGET = $$qtLibraryTarget(hive_devicepluginintertechno)
|
TARGET = $$qtLibraryTarget(hive_devicepluginintertechno)
|
||||||
|
|
||||||
INCLUDEPATH += ../../../libhive
|
|
||||||
LIBS += -L../../../libhive -lhive
|
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
devicepluginintertechno.cpp
|
devicepluginintertechno.cpp
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,7 @@
|
|||||||
TEMPLATE = lib
|
include(../../plugins.pri)
|
||||||
CONFIG += plugin static
|
|
||||||
|
|
||||||
TARGET = $$qtLibraryTarget(hive_devicepluginmeisteranker)
|
TARGET = $$qtLibraryTarget(hive_devicepluginmeisteranker)
|
||||||
|
|
||||||
INCLUDEPATH += ../../../libhive
|
|
||||||
LIBS += -L../../../libhive -lhive
|
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
devicepluginmeisteranker.cpp
|
devicepluginmeisteranker.cpp
|
||||||
|
|
||||||
|
|||||||
6
plugins/plugins.pri
Normal file
6
plugins/plugins.pri
Normal file
@ -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:
|
case DeviceManager::DeviceErrorMissingParameter:
|
||||||
sendErrorResponse(clientId, commandId, "Error creating device. Missing parameter.");
|
sendErrorResponse(clientId, commandId, "Error creating device. Missing parameter.");
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
sendErrorResponse(clientId, commandId, "Unknown error.");
|
||||||
}
|
}
|
||||||
} else if (method == "GetConfiguredDevices") {
|
} else if (method == "GetConfiguredDevices") {
|
||||||
QVariantMap rspParams;
|
QVariantMap rspParams;
|
||||||
@ -157,6 +159,8 @@ void JsonRPCServer::handleActionMessage(int clientId, int commandId, const QStri
|
|||||||
case DeviceManager::DeviceErrorDeviceNotFound:
|
case DeviceManager::DeviceErrorDeviceNotFound:
|
||||||
sendErrorResponse(clientId, commandId, "No such device");
|
sendErrorResponse(clientId, commandId, "No such device");
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
sendErrorResponse(clientId, commandId, "Unknown error.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,6 +7,7 @@ target.path = /usr/bin
|
|||||||
INSTALLS += target
|
INSTALLS += target
|
||||||
|
|
||||||
QT += network
|
QT += network
|
||||||
|
CONFIG += c++11
|
||||||
|
|
||||||
LIBS += -L../libhive/ -lhive
|
LIBS += -L../libhive/ -lhive
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user