MythTV  master
Namespaces | Functions
upnphelpers.cpp File Reference
#include "upnphelpers.h"
#include "mythlogging.h"
#include "mythcorecontext.h"
Include dependency graph for upnphelpers.cpp:

Go to the source code of this file.

Namespaces

 UPnPDateTime
 Helpers for formatting dates and times to UPnP, DLNA and Dublin Core specifications.
 
 DLNA
 Helpers for building DLNA flag, strings and profiles.
 

Functions

QString UPnPDateTime::DurationFormat (uint32_t msec)
 Duration Format. More...
 
QString UPnPDateTime::TimeFormat (const QTime &time)
 Time Format. More...
 
QString UPnPDateTime::TimeFormat (uint32_t msec)
 Time Format. More...
 
QString UPnPDateTime::DateTimeFormat (const QDateTime &dateTime)
 Date-Time Format. More...
 
QString UPnPDateTime::NamedDayFormat (const QDateTime &dateTime)
 Named-Day Format. More...
 
QString UPnPDateTime::NamedDayFormat (const QDate &date)
 Named-Day Format. More...
 
QString UPnPDateTime::resDurationFormat (uint32_t msec)
 res@duration Format B.2.1.4 res@duration - UPnP ContentDirectory Service 2008, 2013 More...
 
QString DLNA::DLNAProfileName (const QString &mimeType, const QSize &resolution=QSize(), const double videoFrameRate=0.0, const QString &container="", const QString &vidCodec="", const QString &audioCodec="")
 Try to determine a valid DLNA profile name for the file based on the supplied metadata. More...
 
QString DLNA::DLNAFourthField (UPNPProtocol::TransferProtocol protocol, const QString &mimeType, const QSize &resolution, const double videoFrameRate, const QString &container, const QString &vidCodec, const QString &audioCodec, bool isTranscoded)
 Create a properly formatted string for the 4th field of res@protocolInfo. More...
 
QString DLNA::ProtocolInfoString (UPNPProtocol::TransferProtocol protocol, const QString &mimeType, const QSize &resolution=QSize(), const double videoFrameRate=0.0, const QString &container="", const QString &vidCodec="", const QString &audioCodec="", bool isTranscoded=false)
 Create a properly formatted string for the 4th field of res@protocolInfo. More...
 
QString DLNA::FlagsString (uint32_t flags)
 Convert an integer composed of DNLA_Flags to a properly formatted string for use in XML. More...
 
QString DLNA::OpParamString (UPNPProtocol::TransferProtocol protocol)
 Create a properly formatted Operations Parameter (op-param) string for the given transport protocol based on what is supported by MythTV. More...
 
QString DLNA::ConversionIndicatorString (bool wasConverted)
 Create a properly formatted Conversion Indicator (ci-param) String. More...