MythTV  master
Functions
UPnPDateTime Namespace Reference

Helpers for formatting dates and times to UPnP, DLNA and Dublin Core specifications. More...

Functions

QString DurationFormat (uint32_t msec)
 Duration Format. More...
 
QString TimeFormat (const QTime &time)
 Time Format. More...
 
QString TimeFormat (uint32_t msec)
 Time Format. More...
 
QString DateTimeFormat (const QDateTime &dateTime)
 Date-Time Format. More...
 
QString NamedDayFormat (const QDateTime &dateTime)
 Named-Day Format. More...
 
QString NamedDayFormat (const QDate &date)
 Named-Day Format. More...
 
QString resDurationFormat (uint32_t msec)
 res@duration Format B.2.1.4 res@duration - UPnP ContentDirectory Service 2008, 2013 More...
 

Detailed Description

Helpers for formatting dates and times to UPnP, DLNA and Dublin Core specifications.

NOTE These are for formatting to the UPnP related specs or extracting data from UPnP formatted strings ONLY.

Function Documentation

◆ DurationFormat()

UPNP_PUBLIC QString UPnPDateTime::DurationFormat ( uint32_t  msec)

Duration Format.

UPnP ContentDirectory Service 2008, 2013 Appendix D.1 Date&Time Syntax

Definition at line 10 of file upnphelpers.cpp.

Referenced by UPnpCDSTv::LoadRecordings().

◆ TimeFormat() [1/2]

UPNP_PUBLIC QString UPnPDateTime::TimeFormat ( const QTime &  time)

Time Format.

UPnP ContentDirectory Service 2008, 2013 Appendix D.1 Date&Time Syntax

Definition at line 31 of file upnphelpers.cpp.

Referenced by DurationFormat().

◆ TimeFormat() [2/2]

UPNP_PUBLIC QString UPnPDateTime::TimeFormat ( uint32_t  msec)

Time Format.

UPnP ContentDirectory Service 2008, 2013 Appendix D.1 Date&Time Syntax

Definition at line 37 of file upnphelpers.cpp.

◆ DateTimeFormat()

UPNP_PUBLIC QString UPnPDateTime::DateTimeFormat ( const QDateTime &  dateTime)

Date-Time Format.

UPnP ContentDirectory Service 2008, 2013 Appendix D.1 Date&Time Syntax

Definition at line 48 of file upnphelpers.cpp.

Referenced by UPnpCDSTv::LoadRecordings(), UPnpCDSMusic::LoadTracks(), and UPnpCDSVideo::LoadVideos().

◆ NamedDayFormat() [1/2]

UPNP_PUBLIC QString UPnPDateTime::NamedDayFormat ( const QDateTime &  dateTime)

Named-Day Format.

UPnP ContentDirectory Service 2008, 2013 Appendix D.1 Date&Time Syntax

Definition at line 54 of file upnphelpers.cpp.

Referenced by UPnpCDSTv::LoadRecordings().

◆ NamedDayFormat() [2/2]

UPNP_PUBLIC QString UPnPDateTime::NamedDayFormat ( const QDate &  date)

Named-Day Format.

UPnP ContentDirectory Service 2008, 2013 Appendix D.1 Date&Time Syntax

Definition at line 59 of file upnphelpers.cpp.

◆ resDurationFormat()

UPNP_PUBLIC QString UPnPDateTime::resDurationFormat ( uint32_t  msec)

res@duration Format B.2.1.4 res@duration - UPnP ContentDirectory Service 2008, 2013

Definition at line 86 of file upnphelpers.cpp.

Referenced by UPnpCDSTv::LoadRecordings(), UPnpCDSMusic::LoadTracks(), and UPnpCDSVideo::LoadVideos().