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"
42OHSNH UPNPP_API senderService(DVCH dev);
48OHSNH UPNPP_API getSender(
const std::string& nm, std::string& reason);
57 bool has_sender{
false};
63 nm = UDN = uri = meta = reason = std::string();
75void UPNPP_API getSenderState(
const std::string& nm,
SenderState& st,
79void UPNPP_API listSenders(std::vector<SenderState>& vscs);
83 enum SCState {SCRS_GENERROR, SCRS_NOOH, SCRS_NOTRECEIVER,
84 SCRS_STOPPED, SCRS_PLAYING
86 SCState state{SCRS_GENERROR};
87 int receiverSourceIndex{-1};
98 state = ReceiverState::SCRS_GENERROR;
99 receiverSourceIndex = -1;
100 nm = UDN = uri = meta = reason = std::string();
112bool UPNPP_API setSourceIndex(
const std::string& rdrnm,
int sourceindex);
120bool UPNPP_API setSourceIndexByName(
const std::string& rdrnm,
121 const std::string& name);
129void UPNPP_API getReceiverState(
const std::string& nm,
ReceiverState& st,
132void UPNPP_API listReceivers(std::vector<ReceiverState>& vscs);
136 const std::string& uri,
137 const std::string& meta);
140void UPNPP_API setReceiversFromSender(
const std::string& sendernm,
141 const std::vector<std::string>& rcvnms);
146bool UPNPP_API setReceiversFromSenderWithStatus(
147 const std::string& sendernm,
148 const std::vector<std::string>& rcvnms,
149 std::vector<std::string>& reasons);
151void UPNPP_API setReceiversFromReceiver(
const std::string& rcvnm,
152 const std::vector<std::string>& rcvnms);
157bool UPNPP_API setReceiversFromReceiverWithStatus(
158 const std::string& rcvnm,
159 const std::vector<std::string>& rcvnms,
160 std::vector<std::string>& reasons);
162void UPNPP_API stopReceivers(
const std::vector<std::string>& rcvnms);
167bool UPNPP_API stopReceiversWithStatus(
const std::vector<std::string>& rcvnms,
168 std::vector<std::string>& reasons);
170void UPNPP_API setReceiversPlaying(
const std::vector<std::string>& rcvnms);
172bool UPNPP_API setReceiversPlayingWithStatus(
173 const std::vector<std::string>& rcvnms,
174 std::vector<std::string>& reasons);
UPnP Description phase: interpreting the device description which we downloaded from the URL obtained...
Definition avlastchg.cxx:28
Everything you need to know about a Receiver.
Definition linnsongcast.hxx:82
Everything you need to know about a Sender.
Definition linnsongcast.hxx:51