MythTV  master
Namespaces | Functions
upnphelpers.cpp File Reference
#include "upnphelpers.h"
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythlogging.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 (std::chrono::milliseconds msec)
 Duration Format. More...
 
QString UPnPDateTime::TimeFormat (QTime time)
 Time Format. More...
 
QString UPnPDateTime::TimeFormat (std::chrono::milliseconds 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 (QDate date)
 Named-Day Format. More...
 
QString UPnPDateTime::resDurationFormat (std::chrono::milliseconds msec)
 res@duration Format B.2.1.4 res@duration - UPnP ContentDirectory Service 2008, 2013 More...
 
QString DLNA::DLNAProfileName (const QString &mimeType, QSize resolution=QSize(), 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, QSize resolution, 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, QSize resolution=QSize(), 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...