libupnpp
0.16.0
A C++ wrapper for the Portable UPnP reference library
|
OHPlaylist Service client class. More...
#include <ohplaylist.hxx>
Classes | |
struct | TrackListEntry |
Public Types | |
enum | TPState { TPS_Unknown, TPS_Buffering, TPS_Paused, TPS_Playing, TPS_Stopped } |
Public Member Functions | |
OHPlaylist (const UPnPDeviceDesc &device, const UPnPServiceDesc &service) | |
virtual bool | serviceTypeMatch (const std::string &tp) |
Perform a comparison to the service type string for this specific service. More... | |
int | play () |
int | pause () |
int | stop () |
int | next () |
int | previous () |
int | setRepeat (bool onoff) |
int | repeat (bool *on) |
int | setShuffle (bool onoff) |
int | shuffle (bool *on) |
int | seekSecondAbsolute (int value) |
int | seekSecondRelative (int value) |
int | seekId (int value) |
int | seekIndex (int value) |
int | transportState (TPState *tps) |
int | id (int *value) |
int | read (int id, std::string *uri, UPnPDirObject *dirent) |
int | readList (const std::vector< int > &ids, std::vector< TrackListEntry > *entsp) |
int | insert (int afterid, const std::string &uri, const std::string &didl, int *nid) |
int | deleteId (int id) |
int | deleteAll () |
int | tracksMax (int *) |
int | idArray (std::vector< int > *ids, int *tokp) |
int | idArrayChanged (int token, bool *changed) |
int | protocolInfo (std::string *proto) |
Public Member Functions inherited from UPnPClient::Service | |
Service (const UPnPDeviceDesc &device, const UPnPServiceDesc &service) | |
Construct by copying data from device and service objects. More... | |
Service () | |
Empty object. More... | |
bool | initFromDescription (const UPnPDeviceDesc &description) |
Initialize empty object from device description. More... | |
virtual bool | reSubscribe () |
Restart the subscription to get all the State variable values, in case we get the events before we are ready (e.g. More... | |
const std::string & | getFriendlyName () const |
Accessors for the values extracted from the device description during initialization. | |
const std::string & | getDeviceId () const |
const std::string & | getServiceType () const |
const std::string & | getActionURL () const |
const std::string & | getModelName () const |
const std::string & | getManufacturer () const |
virtual int | runAction (const UPnPP::SoapOutgoing &args, UPnPP::SoapIncoming &data) |
Call Soap action and return resulting data. More... | |
int | runTrivialAction (const std::string &actionName) |
Run trivial action where there are neither input parameters nor return data (beyond the status) | |
template<class T > | |
int | runSimpleGet (const std::string &actnm, const std::string &valnm, T *valuep) |
Run action where there are no input parameters and a single named value is to be retrieved from the result. | |
template<class T > | |
int | runSimpleAction (const std::string &actnm, const std::string &valnm, T value) |
Run action with a single input parameter and no return data. | |
virtual VarEventReporter * | getReporter () |
Get pointer to installed event reporter. More... | |
virtual void | installReporter (VarEventReporter *reporter) |
Install or uninstall event data reporter object. More... | |
Static Public Member Functions | |
static bool | isOHPlService (const std::string &st) |
Test service type from discovery message. | |
static int | stringToTpState (const std::string &va, TPState *tpp) |
Static Protected Attributes | |
static const std::string | SType |
Additional Inherited Members | |
Protected Member Functions inherited from UPnPClient::Service | |
virtual bool | serviceInit (const UPnPDeviceDesc &, const UPnPServiceDesc &) |
Service-specific part of initialization. More... | |
bool | registerCallback (evtCBFunc c) |
Used by a derived class to register its callback method. More... | |
void | unregisterCallback () |
Cancel subscription to the service events, forget installed callback. | |
OHPlaylist Service client class.
|
virtual |
Perform a comparison to the service type string for this specific service.
This allows embedding knowledge of the service type string inside the derived class. It is used, e.g., by initFromDescription() to look up an appropriate entry from the device description service list. Can also be used by external code wishing to do the same.
tp | Service type string to be compared with the one for the derived class. |
Implements UPnPClient::Service.