MythTV  master
Namespaces | Enumerations | Functions | Variables
upnphelpers.h File Reference
#include <QString>
#include <QDateTime>
#include <QDate>
#include <QTime>
#include <QSize>
#include <cstdint>
#include "upnpexp.h"
#include "compat.h"
Include dependency graph for upnphelpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Enumerations

enum  UPNPProtocol::TransferProtocol { UPNPProtocol::kHTTP, UPNPProtocol::kRTP }
 

Functions

QString UPnPDateTime::resDurationFormat (uint32_t msec)
 res@duration Format B.2.1.4 res@duration - UPnP ContentDirectory Service 2008, 2013 More...
 
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 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...
 

Variables

 ksp_flag = 0x80000000
 
 klop_npt = 0x40000000
 
 klop_bytes = 0x20000000
 
 kplaycontainer_param = 0x10000000
 
 ks0_increasing = 0x8000000
 
 ksn_increasing = 0x4000000
 
 krtsp_pause = 0x2000000
 
 ktm_s = 0x1000000
 
 ktm_i = 0x800000
 
 ktm_b = 0x400000
 
 khttp_stalling = 0x200000
 
 kv1_5_flag = 0x100000
 
 kLP_flag = 0x10000
 
 kcleartextbyteseek_full = 0x8000
 
 klop_cleartextbytes = 0x4000
 

Variable Documentation

◆ ksp_flag

ksp_flag = 0x80000000

Definition at line 228 of file upnphelpers.h.

◆ klop_npt

klop_npt = 0x40000000

Definition at line 236 of file upnphelpers.h.

◆ klop_bytes

klop_bytes = 0x20000000

Definition at line 237 of file upnphelpers.h.

◆ kplaycontainer_param

kplaycontainer_param = 0x10000000

Definition at line 240 of file upnphelpers.h.

◆ ks0_increasing

ks0_increasing = 0x8000000

Definition at line 243 of file upnphelpers.h.

◆ ksn_increasing

ksn_increasing = 0x4000000

Definition at line 244 of file upnphelpers.h.

◆ krtsp_pause

krtsp_pause = 0x2000000

Definition at line 247 of file upnphelpers.h.

◆ ktm_s

ktm_s = 0x1000000

Definition at line 250 of file upnphelpers.h.

Referenced by DLNA::DLNAFourthField(), DLNA::FlagsString(), and GetSourceProtocolInfos().

◆ ktm_i

ktm_i = 0x800000

Definition at line 251 of file upnphelpers.h.

Referenced by DLNA::DLNAFourthField(), and DLNA::FlagsString().

◆ ktm_b

ktm_b = 0x400000

Definition at line 252 of file upnphelpers.h.

Referenced by DLNA::DLNAFourthField(), and GetSourceProtocolInfos().

◆ khttp_stalling

khttp_stalling = 0x200000

Definition at line 255 of file upnphelpers.h.

◆ kv1_5_flag

kv1_5_flag = 0x100000

Definition at line 258 of file upnphelpers.h.

Referenced by DLNA::DLNAFourthField(), DLNA::FlagsString(), and GetSourceProtocolInfos().

◆ kLP_flag

kLP_flag = 0x10000

Definition at line 265 of file upnphelpers.h.

◆ kcleartextbyteseek_full

kcleartextbyteseek_full = 0x8000

Definition at line 266 of file upnphelpers.h.

◆ klop_cleartextbytes

klop_cleartextbytes = 0x4000

Definition at line 267 of file upnphelpers.h.