From afa6dcacdca8860b40d8fe7df6d96c1158ab1fe7 Mon Sep 17 00:00:00 2001 From: nymea Date: Thu, 11 Jul 2019 13:44:27 +0200 Subject: [PATCH] add missing .pro file --- sonos/devicepluginsonos.cpp | 7 +++---- sonos/sonos.pro | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 sonos/sonos.pro diff --git a/sonos/devicepluginsonos.cpp b/sonos/devicepluginsonos.cpp index 3d53a4bc..6e8ee10a 100644 --- a/sonos/devicepluginsonos.cpp +++ b/sonos/devicepluginsonos.cpp @@ -89,7 +89,6 @@ void DevicePluginSonos::postSetupDevice(Device *device) device->setStateValue(sonosMuteStateTypeId, mute); } } - m_sonosSystem->GetPlayer()->MakeFilePictureUrl(); while(m_sonosSystem->GetPlayer()->TransportPropertyEmpty()); @@ -97,11 +96,11 @@ void DevicePluginSonos::postSetupDevice(Device *device) qDebug(dcSonos()) << "Transport Status" << properties.TransportStatus.c_str(); qDebug(dcSonos()) << "Transport State" << properties.TransportState.c_str(); - if (properties.TransportState.c_str() == "PLAYING") { + if (QString(properties.TransportState.c_str()) == "PLAYING") { device->setStateValue(sonosPlaybackStatusStateTypeId, "Playing"); - } else if (properties.TransportState.c_str() == "PAUSED") { + } else if (QString(properties.TransportState.c_str()) == "PAUSED") { device->setStateValue(sonosPlaybackStatusStateTypeId, "Paused"); - } else if (properties.TransportState.c_str() == "STOPPED") { + } else if (QString(properties.TransportState.c_str()) == "STOPPED") { device->setStateValue(sonosPlaybackStatusStateTypeId, "Stopped"); } diff --git a/sonos/sonos.pro b/sonos/sonos.pro new file mode 100644 index 00000000..33b7f741 --- /dev/null +++ b/sonos/sonos.pro @@ -0,0 +1,16 @@ +include(../plugins.pri) + +QT += network + +LIBS += -lnoson + +TARGET = $$qtLibraryTarget(nymea_devicepluginsonos) + +SOURCES += \ + devicepluginsonos.cpp \ + +HEADERS += \ + devicepluginsonos.h \ + + +