add missing .pro file

master
nymea 2019-07-11 13:44:27 +02:00 committed by Michael Zanetti
parent 20022c7d8d
commit afa6dcacdc
2 changed files with 19 additions and 4 deletions

View File

@ -89,7 +89,6 @@ void DevicePluginSonos::postSetupDevice(Device *device)
device->setStateValue(sonosMuteStateTypeId, mute); device->setStateValue(sonosMuteStateTypeId, mute);
} }
} }
m_sonosSystem->GetPlayer()->MakeFilePictureUrl();
while(m_sonosSystem->GetPlayer()->TransportPropertyEmpty()); 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 Status" << properties.TransportStatus.c_str();
qDebug(dcSonos()) << "Transport State" << properties.TransportState.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"); device->setStateValue(sonosPlaybackStatusStateTypeId, "Playing");
} else if (properties.TransportState.c_str() == "PAUSED") { } else if (QString(properties.TransportState.c_str()) == "PAUSED") {
device->setStateValue(sonosPlaybackStatusStateTypeId, "Paused"); device->setStateValue(sonosPlaybackStatusStateTypeId, "Paused");
} else if (properties.TransportState.c_str() == "STOPPED") { } else if (QString(properties.TransportState.c_str()) == "STOPPED") {
device->setStateValue(sonosPlaybackStatusStateTypeId, "Stopped"); device->setStateValue(sonosPlaybackStatusStateTypeId, "Stopped");
} }

16
sonos/sonos.pro Normal file
View File

@ -0,0 +1,16 @@
include(../plugins.pri)
QT += network
LIBS += -lnoson
TARGET = $$qtLibraryTarget(nymea_devicepluginsonos)
SOURCES += \
devicepluginsonos.cpp \
HEADERS += \
devicepluginsonos.h \