MythTV  master
Classes | Typedefs | Functions
upnputil.h File Reference
#include <QStringList>
#include <QMap>
#include "upnpexp.h"
#include "compat.h"
Include dependency graph for upnputil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  NameValue
 
class  NameValues
 

Typedefs

using TaskTime = struct timeval
 
using QStringMap = QMap< QString, QString >
 

Functions

template<class T >
const T & Min (const T &x, const T &y)
 
template<class T >
const T & Max (const T &x, const T &y)
 
QString LookupUDN (const QString &sDeviceType)
 
bool operator< (TaskTime t1, TaskTime t2)
 
bool operator== (TaskTime t1, TaskTime t2)
 
void AddMicroSecToTaskTime (TaskTime &t, suseconds_t uSecs)
 
void AddSecondsToTaskTime (TaskTime &t, long nSecs)
 
UPNP_PUBLIC QStringList GetSourceProtocolInfos ()
 Return a QStringList containing the supported Source Protocols. More...
 
UPNP_PUBLIC QStringList GetSinkProtocolInfos ()
 Return a QStringList containing the supported Sink Protocols. More...
 

Typedef Documentation

◆ TaskTime

using TaskTime = struct timeval

Definition at line 39 of file upnputil.h.

◆ QStringMap

using QStringMap = QMap< QString, QString >

Definition at line 40 of file upnputil.h.

Function Documentation

◆ Min()

template<class T >
const T& Min ( const T &  x,
const T &  y 
)
inline

Definition at line 26 of file upnputil.h.

Referenced by UPnpCDS::HandleBrowse().

◆ Max()

template<class T >
const T& Max ( const T &  x,
const T &  y 
)
inline

◆ LookupUDN()

QString LookupUDN ( const QString &  sDeviceType)

Definition at line 45 of file upnputil.cpp.

Referenced by UPnpDevice::GetUDN().

◆ operator<()

bool operator< ( TaskTime  t1,
TaskTime  t2 
)

Definition at line 84 of file upnputil.cpp.

◆ operator==()

bool operator== ( TaskTime  t1,
TaskTime  t2 
)

Definition at line 94 of file upnputil.cpp.

◆ AddMicroSecToTaskTime()

void AddMicroSecToTaskTime ( TaskTime t,
suseconds_t  uSecs 
)

◆ AddSecondsToTaskTime()

void AddSecondsToTaskTime ( TaskTime t,
long  nSecs 
)

Definition at line 115 of file upnputil.cpp.

Referenced by SSDPCache::Add().

◆ GetSourceProtocolInfos()

UPNP_PUBLIC QStringList GetSourceProtocolInfos ( )

Return a QStringList containing the supported Source Protocols.

TODO Extend this to dynamically list all supported protocols (e.g. RTSP) and any DLNA profile stuff that we can figure out

Definition at line 126 of file upnputil.cpp.

Referenced by MediaServer::Init().

◆ GetSinkProtocolInfos()

UPNP_PUBLIC QStringList GetSinkProtocolInfos ( )

Return a QStringList containing the supported Sink Protocols.

TODO Extend this to dynamically list all supported protocols (e.g. RTSP) and any DLNA profile stuff that we can figure out

Definition at line 178 of file upnputil.cpp.

Referenced by MediaRenderer::MediaRenderer().