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

#include <videodisplayprofile.h>

Public Member Functions

 ProfileItem ()
 
 ~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
 
pref_map_t GetAll (void) const
 
bool checkRange (QString key, float fvalue, bool *ok=nullptr) const
 
bool checkRange (QString key, int ivalue, 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
 
bool IsValid (QString *reason=nullptr) const
 
bool operator< (const ProfileItem &other) const
 
QString toString (void) const
 

Private Attributes

uint profileid
 
pref_map_t pref
 

Detailed Description

Definition at line 34 of file videodisplayprofile.h.

Constructor & Destructor Documentation

◆ ProfileItem()

ProfileItem::ProfileItem ( )
inline

Definition at line 37 of file videodisplayprofile.h.

◆ ~ProfileItem()

ProfileItem::~ProfileItem ( )
default

Member Function Documentation

◆ Clear()

void ProfileItem::Clear ( void  )
inline

Definition at line 40 of file videodisplayprofile.h.

◆ SetProfileID()

void ProfileItem::SetProfileID ( uint  id)
inline

Definition at line 43 of file videodisplayprofile.h.

◆ Set()

void ProfileItem::Set ( const QString &  value,
const QString &  data 
)
inline

◆ GetProfileID()

uint ProfileItem::GetProfileID ( void  ) const
inline

Definition at line 49 of file videodisplayprofile.h.

◆ Get()

QString ProfileItem::Get ( const QString &  value) const
inline

◆ GetPriority()

uint ProfileItem::GetPriority ( void  ) const
inline

Definition at line 59 of file videodisplayprofile.h.

Referenced by operator<().

◆ GetAll()

pref_map_t ProfileItem::GetAll ( void  ) const
inline

Definition at line 65 of file videodisplayprofile.h.

◆ checkRange() [1/3]

bool ProfileItem::checkRange ( QString  key,
float  fvalue,
bool ok = nullptr 
) const

◆ checkRange() [2/3]

bool ProfileItem::checkRange ( QString  key,
int  ivalue,
bool ok = nullptr 
) const

Definition at line 25 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 30 of file videodisplayprofile.cpp.

◆ IsMatch()

bool ProfileItem::IsMatch ( const QSize &  size,
float  framerate,
const QString &  codecName 
) const

Definition at line 164 of file videodisplayprofile.cpp.

◆ IsValid()

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

Definition at line 201 of file videodisplayprofile.cpp.

◆ operator<()

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

Definition at line 332 of file videodisplayprofile.cpp.

◆ toString()

QString ProfileItem::toString ( void  ) const

Definition at line 337 of file videodisplayprofile.cpp.

Member Data Documentation

◆ profileid

uint ProfileItem::profileid
private

Definition at line 80 of file videodisplayprofile.h.

◆ pref

pref_map_t ProfileItem::pref
private

Definition at line 81 of file videodisplayprofile.h.


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