MythTV  master
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
UPnPShortcutFeature Class Reference

Standard UPnP Shortcut feature. More...

#include <upnpcds.h>

Inheritance diagram for UPnPShortcutFeature:
Inheritance graph
[legend]
Collaboration diagram for UPnPShortcutFeature:
Collaboration graph
[legend]

Public Types

enum  ShortCutType {
  MUSIC, MUSIC_ALBUMS, MUSIC_ARTISTS, MUSIC_GENRES,
  MUSIC_PLAYLISTS, MUSIC_RECENTLY_ADDED, MUSIC_LAST_PLAYED, MUSIC_AUDIOBOOKS,
  MUSIC_STATIONS, MUSIC_ALL, MUSIC_FOLDER_STRUCTURE, IMAGES,
  IMAGES_YEARS, IMAGES_YEARS_MONTH, IMAGES_ALBUM, IMAGES_SLIDESHOWS,
  IMAGES_RECENTLY_ADDED, IMAGES_LAST_WATCHED, IMAGES_ALL, IMAGES_FOLDER_STRUCTURE,
  VIDEOS, VIDEOS_GENRES, VIDEOS_YEARS, VIDEOS_YEARS_MONTH,
  VIDEOS_ALBUM, VIDEOS_RECENTLY_ADDED, VIDEOS_LAST_PLAYED, VIDEOS_RECORDINGS,
  VIDEOS_ALL, VIDEOS_FOLDER_STRUCTURE, FOLDER_STRUCTURE
}
 Allowed values for the Container Shortcut feature. More...
 

Public Member Functions

 UPnPShortcutFeature ()
 
bool AddShortCut (ShortCutType type, const QString &objectID)
 
QString CreateXML () override
 
- Public Member Functions inherited from UPnPFeature
 UPnPFeature (const QString &name, int version)
 
virtual ~UPnPFeature ()=default
 
QString toXML ()
 

Private Member Functions

QString TypeToName (ShortCutType type)
 

Private Attributes

QMap< ShortCutType, QString > m_shortcuts
 

Additional Inherited Members

- Protected Attributes inherited from UPnPFeature
QString m_name
 
int m_version
 

Detailed Description

Standard UPnP Shortcut feature.

Definition at line 136 of file upnpcds.h.

Member Enumeration Documentation

◆ ShortCutType

Allowed values for the Container Shortcut feature.

ContentDirectory Service v4 2014 Table E-13 allowedValueListfor the Shortcut Name element

Enumerator
MUSIC 
MUSIC_ALBUMS 
MUSIC_ARTISTS 
MUSIC_GENRES 
MUSIC_PLAYLISTS 
MUSIC_RECENTLY_ADDED 
MUSIC_LAST_PLAYED 
MUSIC_AUDIOBOOKS 
MUSIC_STATIONS 
MUSIC_ALL 
MUSIC_FOLDER_STRUCTURE 
IMAGES 
IMAGES_YEARS 
IMAGES_YEARS_MONTH 
IMAGES_ALBUM 
IMAGES_SLIDESHOWS 
IMAGES_RECENTLY_ADDED 
IMAGES_LAST_WATCHED 
IMAGES_ALL 
IMAGES_FOLDER_STRUCTURE 
VIDEOS 
VIDEOS_GENRES 
VIDEOS_YEARS 
VIDEOS_YEARS_MONTH 
VIDEOS_ALBUM 
VIDEOS_RECENTLY_ADDED 
VIDEOS_LAST_PLAYED 
VIDEOS_RECORDINGS 
VIDEOS_ALL 
VIDEOS_FOLDER_STRUCTURE 
FOLDER_STRUCTURE 

Definition at line 147 of file upnpcds.h.

Constructor & Destructor Documentation

◆ UPnPShortcutFeature()

UPnPShortcutFeature::UPnPShortcutFeature ( )
inline

Definition at line 139 of file upnpcds.h.

Member Function Documentation

◆ AddShortCut()

bool UPnPShortcutFeature::AddShortCut ( ShortCutType  type,
const QString &  objectID 
)

Definition at line 1117 of file upnpcds.cpp.

Referenced by UPnpCDS::RegisterShortCut().

◆ CreateXML()

QString UPnPShortcutFeature::CreateXML ( )
overridevirtual

Implements UPnPFeature.

Definition at line 1095 of file upnpcds.cpp.

◆ TypeToName()

QString UPnPShortcutFeature::TypeToName ( ShortCutType  type)
private

Definition at line 1130 of file upnpcds.cpp.

Referenced by AddShortCut(), and CreateXML().

Member Data Documentation

◆ m_shortcuts

QMap<ShortCutType, QString> UPnPShortcutFeature::m_shortcuts
private

Definition at line 190 of file upnpcds.h.

Referenced by AddShortCut(), and CreateXML().


The documentation for this class was generated from the following files: