libupnpp  0.16.0
A C++ wrapper for the Portable UPnP reference library
Public Member Functions | List of all members
UPnPClient::VarEventReporter Class Referenceabstract

To be implemented by upper-level client code for event reporting. More...

#include <service.hxx>

Public Member Functions

virtual void changed (const char *nm, int val)=0
 Report change to named integer state variable.
 
virtual void changed (const char *nm, const char *val)=0
 Report change to named character string state variable.
 
virtual void changed (const char *, UPnPDirObject)
 Report change to track metadata (parsed as as Content Directory entry). More...
 
virtual void changed (const char *, std::vector< int >)
 Special for ohplaylist. More...
 
virtual void autorenew_failed ()
 Subscription autorenew failed. More...
 

Detailed Description

To be implemented by upper-level client code for event reporting.

Runs in an event thread. This could for example be implemented by a Qt Object to generate events for the GUI.

This is used by all "precooked" UPnP/AV service classes in the library. The derived Service class does a bit of parsing for common cases. The different methods cover all current types of audio UPnP state variable data I am aware of. Of course, other types of data can be reported as a character string, leaving the parsing to the client code.

In the general case, you could also derive from Service, implement and install an evtCBFunc callback and not use VarEventReporter at all.

Member Function Documentation

◆ autorenew_failed()

virtual void UPnPClient::VarEventReporter::autorenew_failed ( )
inlinevirtual

Subscription autorenew failed.

You may want to schedule a resubscribe() later.

◆ changed() [1/2]

virtual void UPnPClient::VarEventReporter::changed ( const char *  ,
UPnPDirObject   
)
inlinevirtual

Report change to track metadata (parsed as as Content Directory entry).

Not always needed

◆ changed() [2/2]

virtual void UPnPClient::VarEventReporter::changed ( const char *  ,
std::vector< int >   
)
inlinevirtual

Special for ohplaylist.

Not always needed


The documentation for this class was generated from the following file: