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

#include <videodisplayprofile.h>

Collaboration diagram for ProfileItem:
Collaboration graph
[legend]

Public Member Functions

 ProfileItem ()=default
 
 ~ProfileItem ()=default
 
void Clear (void)
 
void SetProfileID (uint Id)
 
void Set (const QString &Value, const QString &Data)
 
uint GetProfileID (void) const
 
QString Get (const QString &Value) const
 
uint GetPriority (void) const
 
QMap< QString, QString > GetAll (void) 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 (const QSize &Size, float Framerate, const QString &CodecName, const QStringList &DisallowedDecoders=QStringList()) const
 
bool IsValid (QString *Reason=nullptr) const
 
bool operator< (const ProfileItem &Other) const
 
QString toString (void) const
 

Private Attributes

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

Detailed Description

Definition at line 37 of file videodisplayprofile.h.

Constructor & Destructor Documentation

◆ ProfileItem()

ProfileItem::ProfileItem ( )
default

◆ ~ProfileItem()

ProfileItem::~ProfileItem ( )
default

Member Function Documentation

◆ Clear()

void ProfileItem::Clear ( void  )

Definition at line 13 of file videodisplayprofile.cpp.

Referenced by doUpgradeTVDatabaseSchema().

◆ SetProfileID()

void ProfileItem::SetProfileID ( uint  Id)

Definition at line 18 of file videodisplayprofile.cpp.

Referenced by doUpgradeTVDatabaseSchema().

◆ Set()

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

◆ GetProfileID()

uint ProfileItem::GetProfileID ( void  ) const

Definition at line 28 of file videodisplayprofile.cpp.

◆ Get()

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

◆ GetPriority()

uint ProfileItem::GetPriority ( void  ) const

Definition at line 46 of file videodisplayprofile.cpp.

Referenced by operator<().

◆ GetAll()

QMap< QString, QString > ProfileItem::GetAll ( void  ) const

Definition at line 33 of file videodisplayprofile.cpp.

◆ CheckRange() [1/3]

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

◆ CheckRange() [2/3]

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

Definition at line 61 of file videodisplayprofile.cpp.

◆ CheckRange() [3/3]

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

Definition at line 66 of file videodisplayprofile.cpp.

◆ IsMatch()

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

Definition at line 200 of file videodisplayprofile.cpp.

◆ IsValid()

bool ProfileItem::IsValid ( QString *  Reason = nullptr) const

Definition at line 225 of file videodisplayprofile.cpp.

◆ operator<()

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

Definition at line 283 of file videodisplayprofile.cpp.

◆ toString()

QString ProfileItem::toString ( void  ) const

Definition at line 288 of file videodisplayprofile.cpp.

Member Data Documentation

◆ m_profileid

uint ProfileItem::m_profileid { 0 }
private

Definition at line 65 of file videodisplayprofile.h.

Referenced by GetProfileID(), and SetProfileID().

◆ m_pref

QMap<QString,QString> ProfileItem::m_pref { }
private

Definition at line 66 of file videodisplayprofile.h.

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


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