18 #ifndef _LINNSONGCAST_H_X_INCLUDED_ 19 #define _LINNSONGCAST_H_X_INCLUDED_ 24 #include "libupnpp/control/device.hxx" 25 #include "libupnpp/control/ohsender.hxx" 26 #include "libupnpp/control/ohreceiver.hxx" 27 #include "libupnpp/control/ohproduct.hxx" 42 OHSNH UPNPP_API senderService(DVCH dev);
48 OHSNH UPNPP_API getSender(
const std::string& nm, std::string& reason);
64 nm = UDN = uri = meta = reason = std::string();
76 void UPNPP_API getSenderState(
const std::string& nm,
SenderState& st,
80 void UPNPP_API listSenders(std::vector<SenderState>& vscs);
84 enum SCState {SCRS_GENERROR, SCRS_NOOH, SCRS_NOTRECEIVER,
85 SCRS_STOPPED, SCRS_PLAYING
88 int receiverSourceIndex;
99 : state(SCRS_GENERROR), receiverSourceIndex(-1) {
103 state = ReceiverState::SCRS_GENERROR;
104 receiverSourceIndex = -1;
105 nm = UDN = uri = meta = reason = std::string();
117 bool UPNPP_API setSourceIndex(
const std::string& rdrnm,
int sourceindex);
125 bool UPNPP_API setSourceIndexByName(
const std::string& rdrnm,
126 const std::string& name);
134 void UPNPP_API getReceiverState(
const std::string& nm,
ReceiverState& st,
137 void UPNPP_API listReceivers(std::vector<ReceiverState>& vscs);
141 const std::string& uri,
142 const std::string& meta);
145 void UPNPP_API setReceiversFromSender(
const std::string& sendernm,
146 const std::vector<std::string>& rcvnms);
151 bool UPNPP_API setReceiversFromSenderWithStatus(
152 const std::string& sendernm,
153 const std::vector<std::string>& rcvnms,
154 std::vector<std::string>& reasons);
156 void UPNPP_API setReceiversFromReceiver(
const std::string& rcvnm,
157 const std::vector<std::string>& rcvnms);
162 bool UPNPP_API setReceiversFromReceiverWithStatus(
163 const std::string& rcvnm,
164 const std::vector<std::string>& rcvnms,
165 std::vector<std::string>& reasons);
167 void UPNPP_API stopReceivers(
const std::vector<std::string>& rcvnms);
172 bool UPNPP_API stopReceiversWithStatus(
const std::vector<std::string>& rcvnms,
173 std::vector<std::string>& reasons);
175 void UPNPP_API setReceiversPlaying(
const std::vector<std::string>& rcvnms);
177 bool UPNPP_API setReceiversPlayingWithStatus(
178 const std::vector<std::string>& rcvnms,
179 std::vector<std::string>& reasons);
Everything you need to know about a Sender.
Definition: linnsongcast.hxx:51
Everything you need to know about a Receiver.
Definition: linnsongcast.hxx:83
UPnP Description phase: interpreting the device description which we downloaded from the URL obtained...
Definition: avlastchg.cxx:27