Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
MediaSection.h File Reference
#include <array>
#include <optional>
#include <string_view>

Namespaces

namespace  KODI
 
namespace  KODI::MEDIA
 

Enumerations

enum class  KODI::MEDIA::MediaSection {
  KODI::MEDIA::VIDEO , KODI::MEDIA::MUSIC , KODI::MEDIA::PICTURES , KODI::MEDIA::FILES ,
  KODI::MEDIA::PROGRAMS , KODI::MEDIA::GAMES
}
 A section of Kodi, each with sources of its own. More...
 

Functions

std::string_view KODI::MEDIA::NameOf (MediaSection section)
 The name a section has in sources.xml and the APIs: "video", "music", "pictures", "files", "programs" or "games".
 
std::optional< MediaSection > KODI::MEDIA::MediaSectionFromName (std::string_view name)
 The section name gives, taking "videos" and "myprograms" as well. Nullopt for any other text.
 

Variables

constexpr std::array< MediaSection, 6 > KODI::MEDIA::MEDIA_SECTIONS