Index: sources/device/DeviceView.h =================================================================== diff -u -r61f16c988a159401c92730b4cbfca5085c77222f -r97d593e2e7adb36f2f9f97f9bb9958dcef740bc1 --- sources/device/DeviceView.h (.../DeviceView.h) (revision 61f16c988a159401c92730b4cbfca5085c77222f) +++ sources/device/DeviceView.h (.../DeviceView.h) (revision 97d593e2e7adb36f2f9f97f9bb9958dcef740bc1) @@ -24,9 +24,7 @@ #include "DeviceModels.h" // define -#define _VDevice View::VDevice::I() - // namespace namespace View { @@ -38,16 +36,14 @@ class VDevice : public QObject { Q_OBJECT - PROPERTY( bool , accepted , 0) - TRIGGER ( quint32 , reason , 0) - TRIGGER ( bool , response , true) + TRIGGER ( bool , response , true) - ATTRIBUTE ( quint8 , brightness , 0 ) + PROPERTY ( bool , accepted , 0) + TRIGGER ( quint32 , reason , 0) + PROPERTY ( QString , status , "") - VIEW_DEC_CLASS(VDevice) + ATTRIBUTE ( quint8 , brightness , 0, Brightness ) -signals: void didAttributeRequest (const DeviceBrightnessRequestData &vData); -private slots: void onAttributeResponse(const DeviceBrightnessResponseData &vData); - + VIEW_DEC_CLASS(VDevice) }; }