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

#include <libmythtv/mythvideoprofile.h>

Collaboration diagram for MythVideoProfileItem:
[legend]

Public Member Functions

 MythVideoProfileItem ()=default
 
 ~MythVideoProfileItem ()=default
 
void Clear ()
 
void SetProfileID (uint Id)
 
void Set (const QString &Value, const QString &Data)
 
uint GetProfileID () const
 
QString Get (const QString &Value) const
 
uint GetPriority () const
 
QMap< QString, QString > GetAll () const
 
bool CheckRange (const QString &Key, float Value, bool *Ok=nullptr) const
 
bool CheckRange (const QString &Key, int Value, bool *Ok=nullptr) const
 
bool CheckRange (const QString &Key, float FValue, int IValue, bool IsFloat, bool *Ok=nullptr) const
 
bool IsMatch (QSize Size, float Framerate, const QString &CodecName, const QStringList &DisallowedDecoders=QStringList()) const
 
auto IsValid () const
 
bool operator< (const MythVideoProfileItem &Other) const
 
QString toString () const
 

Private Attributes

uint m_profileid { 0 }
 
QMap< QString, QString > m_pref
 

Detailed Description

Definition at line 51 of file mythvideoprofile.h.

Constructor & Destructor Documentation

◆ MythVideoProfileItem()

MythVideoProfileItem::MythVideoProfileItem ( )
default

◆ ~MythVideoProfileItem()

MythVideoProfileItem::~MythVideoProfileItem ( )
default

Member Function Documentation

◆ Clear()

void MythVideoProfileItem::Clear ( )

Definition at line 18 of file mythvideoprofile.cpp.

Referenced by doUpgradeTVDatabaseSchema().

◆ SetProfileID()

void MythVideoProfileItem::SetProfileID ( uint  Id)

Definition at line 23 of file mythvideoprofile.cpp.

Referenced by doUpgradeTVDatabaseSchema().

◆ Set()

void MythVideoProfileItem::Set ( const QString &  Value,
const QString &  Data 
)

◆ GetProfileID()

uint MythVideoProfileItem::GetProfileID ( ) const

Definition at line 33 of file mythvideoprofile.cpp.

◆ Get()

QString MythVideoProfileItem::Get ( const QString &  Value) const

◆ GetPriority()

uint MythVideoProfileItem::GetPriority ( ) const

Definition at line 51 of file mythvideoprofile.cpp.

Referenced by operator<().

◆ GetAll()

QMap< QString, QString > MythVideoProfileItem::GetAll ( ) const

Definition at line 38 of file mythvideoprofile.cpp.

◆ CheckRange() [1/3]

bool MythVideoProfileItem::CheckRange ( const QString &  Key,
float  Value,
bool Ok = nullptr 
) const

◆ CheckRange() [2/3]

bool MythVideoProfileItem::CheckRange ( const QString &  Key,
int  Value,
bool Ok = nullptr 
) const

Definition at line 66 of file mythvideoprofile.cpp.

◆ CheckRange() [3/3]

bool MythVideoProfileItem::CheckRange ( const QString &  Key,
float  FValue,
int  IValue,
bool  IsFloat,
bool Ok = nullptr 
) const

Definition at line 71 of file mythvideoprofile.cpp.

◆ IsMatch()

bool MythVideoProfileItem::IsMatch ( QSize  Size,
float  Framerate,
const QString &  CodecName,
const QStringList &  DisallowedDecoders = QStringList() 
) const

Definition at line 216 of file mythvideoprofile.cpp.

◆ IsValid()

auto MythVideoProfileItem::IsValid ( ) const

Definition at line 241 of file mythvideoprofile.cpp.

◆ operator<()

bool MythVideoProfileItem::operator< ( const MythVideoProfileItem Other) const

Definition at line 264 of file mythvideoprofile.cpp.

◆ toString()

QString MythVideoProfileItem::toString ( ) const

Definition at line 269 of file mythvideoprofile.cpp.

Member Data Documentation

◆ m_profileid

uint MythVideoProfileItem::m_profileid { 0 }
private

Definition at line 79 of file mythvideoprofile.h.

Referenced by GetProfileID(), and SetProfileID().

◆ m_pref

QMap<QString,QString> MythVideoProfileItem::m_pref
private

Definition at line 80 of file mythvideoprofile.h.

Referenced by Clear(), Get(), GetAll(), and Set().


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