Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
AudioType Class Reference

#include <MusicType.h>

Public Types

enum class  Type : uint8_t { Album = 0 , Single , AudioBook }
 
enum class  Content : uint8_t {
  Album = 0 , Single , AudioBook , Podcast ,
  Concert
}
 

Public Member Functions

constexpr AudioType (Content type=Content::Album) noexcept
 
constexpr operator Content () const noexcept
 
constexpr Content GetContent () const noexcept
 
constexpr std::string_view ToString () const noexcept
 
std::string ToStdString () const
 
constexpr auto operator<=> (const AudioType &) const noexcept=default
 

Static Public Member Functions

static Type FromString (const std::string_view str)
 
static std::string ToString (Type type)
 
static constexpr std::optional< AudioTypeFromString (std::string_view str) noexcept
 
static constexpr std::string_view ToString (Content type) noexcept
 
static std::string ToStdString (Content type)
 

Member Enumeration Documentation

◆ Content

enum class AudioType::Content : uint8_t
strong
Enumerator
Album 
Single 
AudioBook 
Podcast 
Concert 

◆ Type

enum class AudioType::Type : uint8_t
strong
Enumerator
Album 
Single 
AudioBook 

Constructor & Destructor Documentation

◆ AudioType()

AudioType::AudioType ( Content type = Content::Album)
inlineconstexprnoexcept

Member Function Documentation

◆ FromString() [1/2]

static Type AudioType::FromString ( const std::string_view str)
inlinestatic

◆ FromString() [2/2]

static constexpr std::optional< AudioType > AudioType::FromString ( std::string_view str)
inlinestaticconstexprnoexcept

◆ GetContent()

Content AudioType::GetContent ( ) const
inlineconstexprnoexcept

◆ operator Content()

AudioType::operator Content ( ) const
inlineconstexprnoexcept

◆ operator<=>()

auto AudioType::operator<=> ( const AudioType & ) const
constexprdefaultnoexcept

◆ ToStdString() [1/2]

std::string AudioType::ToStdString ( ) const
inline

◆ ToStdString() [2/2]

static std::string AudioType::ToStdString ( Content type)
inlinestatic

◆ ToString() [1/3]

std::string_view AudioType::ToString ( ) const
inlineconstexprnoexcept

◆ ToString() [2/3]

static constexpr std::string_view AudioType::ToString ( Content type)
inlinestaticconstexprnoexcept

◆ ToString() [3/3]

static std::string AudioType::ToString ( Type type)
inlinestatic

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