Add device Anslut selflearning on/off

This commit is contained in:
Micke Prag 2012-06-20 17:15:53 +02:00
parent 61d0b2ac09
commit ed9d1237b4
3 changed files with 9 additions and 0 deletions

View file

@ -2,6 +2,9 @@
<devices>
<type name="Remote Switches" expanded="true">
<!--<text></text> -->
<vendor name="Anslut" image="anslut">
<device model="selflearning-switch:jula" protocol="comen" widget="17" image="anslut_sl" name="Self Learning on/off">Self Learning on/off</device>
</vendor>
<vendor name="Brennenstuhl" image="brennenstuhl">
<device model="codeswitch:brennenstuhl" protocol="sartano" widget="2" image="brennenstuhl_cs" name="Code Switch">Code Switch</device>
</vendor>

View file

@ -1,6 +1,7 @@
<RCC>
<qresource prefix="/" >
<file alias="data/devices.xml">devices.xml</file>
<file>../../images/devices/anslut_sl.png</file>
<file>../../images/devices/arctech_cs.png</file>
<file>../../images/devices/arctech_sl.png</file>
<file>../../images/devices/bell.png</file>
@ -26,6 +27,7 @@
<file>../../images/devices/waveman_cs.png</file>
<file>../../images/devices/x10.png</file>
<file>../../images/devices/zke-2603.png</file>
<file>../../images/vendors/anslut.png</file>
<file>../../images/vendors/byebyelogo.png</file>
<file>../../images/vendors/chacon.png</file>
<file>../../images/vendors/coco.png</file>

View file

@ -171,6 +171,10 @@ EditDeviceDialog::EditDeviceDialog(Device *device, QWidget *parent, Qt::WFlags f
d->deviceSettings[16] = new DeviceSettingArctechSelflearning(device, this);
((DeviceSettingArctechSelflearning *)d->deviceSettings[9])->setRemoteMinMax(1,65536);
((DeviceSettingArctechSelflearning *)d->deviceSettings[9])->setUnitMinMax(1,15);
//Comen
d->deviceSettings[17] = new DeviceSettingArctechSelflearning(device, this);
((DeviceSettingArctechSelflearning *)d->deviceSettings[9])->setRemoteMinMax(1,16777215);
((DeviceSettingArctechSelflearning *)d->deviceSettings[9])->setUnitMinMax(1,16);
foreach( DeviceSetting *s, d->deviceSettings ) {
connect(d->filteredModel, SIGNAL(setParameter(const QString&, const QString&, const QString&, const QString&)), s, SLOT(setProtocolValue(const QString&, const QString&, const QString&, const QString&)));