MythTV  master
Public Types | Public Member Functions | Static 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 (QString name, int version)
 
virtual ~UPnPFeature ()=default
 
QString toXML ()
 

Static Private Member Functions

static 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 139 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 150 of file upnpcds.h.

Constructor & Destructor Documentation

◆ UPnPShortcutFeature()

UPnPShortcutFeature::UPnPShortcutFeature ( )
inline

Definition at line 142 of file upnpcds.h.

Member Function Documentation

◆ AddShortCut()

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

Definition at line 1116 of file upnpcds.cpp.

Referenced by UPnpCDS::RegisterShortCut().

◆ CreateXML()

QString UPnPShortcutFeature::CreateXML ( )
overridevirtual

Implements UPnPFeature.

Definition at line 1094 of file upnpcds.cpp.

◆ TypeToName()

QString UPnPShortcutFeature::TypeToName ( ShortCutType  type)
staticprivate

Definition at line 1131 of file upnpcds.cpp.

Referenced by AddShortCut(), and CreateXML().

Member Data Documentation

◆ m_shortcuts

QMap<ShortCutType, QString> UPnPShortcutFeature::m_shortcuts
private

Definition at line 193 of file upnpcds.h.

Referenced by AddShortCut(), and CreateXML().


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