make today deviceclass user, because the auto device disturbes the tests
This commit is contained in:
parent
2ef5ae421e
commit
0492306f3b
8
guh.pro
8
guh.pro
@ -45,6 +45,14 @@ coverage {
|
||||
message("Building coverage.")
|
||||
}
|
||||
|
||||
# Build tests
|
||||
!disabletesting {
|
||||
message("Building guh with tests")
|
||||
SUBDIRS += tests
|
||||
} else {
|
||||
message("Building guh without tests")
|
||||
}
|
||||
|
||||
# Bluetooth LE support
|
||||
contains(DEFINES, BLUETOOTH_LE) {
|
||||
message("Bluetooth LE enabled.")
|
||||
|
||||
@ -225,7 +225,7 @@ void DevicePluginDateTime::deviceRemoved(Device *device)
|
||||
countdown->deleteLater();
|
||||
}
|
||||
|
||||
startMonitoringAutoDevices();
|
||||
//startMonitoringAutoDevices();
|
||||
}
|
||||
|
||||
DeviceManager::DeviceError DevicePluginDateTime::executeAction(Device *device, const Action &action)
|
||||
@ -271,14 +271,14 @@ void DevicePluginDateTime::networkManagerReplyReady(QNetworkReply *reply)
|
||||
|
||||
void DevicePluginDateTime::startMonitoringAutoDevices()
|
||||
{
|
||||
foreach (Device *device, myDevices()) {
|
||||
if (device->deviceClassId() == todayDeviceClassId) {
|
||||
return; // We already have the date device... do nothing.
|
||||
}
|
||||
}
|
||||
// foreach (Device *device, myDevices()) {
|
||||
// if (device->deviceClassId() == todayDeviceClassId) {
|
||||
// return; // We already have the date device... do nothing.
|
||||
// }
|
||||
// }
|
||||
|
||||
DeviceDescriptor dateDescriptor(todayDeviceClassId, "Date", "Time");
|
||||
emit autoDevicesAppeared(todayDeviceClassId, QList<DeviceDescriptor>() << dateDescriptor);
|
||||
// DeviceDescriptor dateDescriptor(todayDeviceClassId, "Date", "Time");
|
||||
// emit autoDevicesAppeared(todayDeviceClassId, QList<DeviceDescriptor>() << dateDescriptor);
|
||||
}
|
||||
|
||||
void DevicePluginDateTime::searchGeoLocation()
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
"Service",
|
||||
"Time"
|
||||
],
|
||||
"createMethods": ["auto"],
|
||||
"createMethods": ["user"],
|
||||
"paramTypes": [ ],
|
||||
"stateTypes": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user