MythTV  master
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Slots | Private Attributes | List of all members
RecordingProfile Class Reference

#include <recordingprofile.h>

Inheritance diagram for RecordingProfile:
Inheritance graph
[legend]
Collaboration diagram for RecordingProfile:
Collaboration graph
[legend]

Classes

class  ID
 
class  Name
 

Public Types

enum  RecProfileGroup {
  AllGroups = 0, SoftwareEncoderGroup = 1, HardwareMPEG2Group = 2, HardwareMJPEGGroup = 3,
  HardwareHDTVGroup = 4, DVBGroup = 5, TranscoderGroup = 6, FireWireGroup = 7,
  USBMPEG4Group = 8, FreeboxGroup = 12, HDHomeRunGroup = 13, CRCIGroup = 14,
  ASIGroup = 15, OCURGroup = 16, CetonGroup = 17
}
 

Public Member Functions

 RecordingProfile (const QString &profName=QString())
 
virtual ~RecordingProfile (void)
 
virtual void loadByID (int id)
 
virtual bool loadByType (const QString &name, const QString &cardtype, const QString &videodev)
 
virtual bool loadByGroup (const QString &name, const QString &group)
 
virtual void CompleteLoad (int profileId, const QString &type, const QString &name)
 
bool canDelete (void) override
 
void deleteEntry (void) override
 
void setCodecTypes ()
 
void setName (const QString &newName) override
 
const ImageSize & getImageSize (void) const
 
int getProfileNum (void) const
 
QString getName (void) const
 
QString groupType (void) const
 
- Public Member Functions inherited from GroupSetting
 GroupSetting ()=default
 
void edit (MythScreenType *screen) override
 
void resultEdit (DialogCompletionEvent *) override
 
virtual void applyChange ()
 
void updateButton (MythUIButtonListItem *item) override
 This method is called whenever the UI need to reflect a change Reimplement this If you widget need a custom look. More...
 
- Public Member Functions inherited from StandardSetting
virtual void setLabel (QString str)
 
QString getLabel (void) const
 
virtual void setHelpText (const QString &str)
 
QString getHelpText (void) const
 
QString getName (void) const
 
StandardSettingbyName (const QString &name)
 
bool isVisible (void) const
 
bool isEnabled () const
 
bool haveChanged ()
 Return true if the setting have changed or any of its children. More...
 
void setChanged (bool changed)
 
StandardSettinggetParent () const
 
virtual QString getValue (void) const
 
void SetDBValue (const QString &val) override
 
QString GetDBValue (void) const override
 
MythUIButtonListItemcreateButton (MythUIButtonList *list)
 
virtual void addChild (StandardSetting *child)
 
virtual void removeChild (StandardSetting *child)
 
virtual QList< StandardSetting * > * getSubSettings ()
 
virtual bool haveSubSettings ()
 
virtual void clearSettings ()
 
void clearTargetedSettings (const QString &value)
 
virtual void Load (void)
 
virtual void Save (void)
 
virtual void Open (void)
 
virtual void Close (void)
 
StorageGetStorage (void) const
 
void addTargetedChild (const QString &value, StandardSetting *setting)
 
void addTargetedChildren (const QString &value, std::initializer_list< StandardSetting * > settings)
 
void removeTargetedChild (const QString &value, StandardSetting *child)
 
virtual bool keyPressEvent (QKeyEvent *)
 
void MoveToThread (QThread *thread)
 
- Public Member Functions inherited from StorageUser
virtual ~StorageUser ()=default
 

Static Public Member Functions

static QString getName (int id)
 
static QMap< int, QString > GetProfiles (RecProfileGroup group=AllGroups)
 
static QMap< int, QString > GetTranscodingProfiles ()
 
static void fillSelections (GroupSetting *setting, int group, bool foldautodetect=false)
 

Static Public Attributes

static const uint TranscoderAutodetect = 0
 sentinel value More...
 

Private Slots

void ResizeTranscode (const QString &val)
 
void SetLosslessTranscode (const QString &val)
 
void FiltersChanged (const QString &val)
 

Private Attributes

IDm_id {nullptr}
 
Namem_name {nullptr}
 
ImageSize * m_imageSize {nullptr}
 
TranscodeResizem_trResize {nullptr}
 
TranscodeLosslessm_trLossless {nullptr}
 
TranscodeFilters * m_trFilters {nullptr}
 
VideoCompressionSettingsm_videoSettings {nullptr}
 
AudioCompressionSettingsm_audioSettings {nullptr}
 
QString m_profileName
 
bool m_isEncoder {true}
 
V4L2utilm_v4l2util {nullptr}
 

Additional Inherited Members

- Public Slots inherited from StandardSetting
virtual void setEnabled (bool enabled)
 
void setVisible (bool visible)
 
virtual void setValue (const QString &newValue)
 
virtual void setValue (int newValue)
 
virtual void childChanged (StandardSetting *)
 
- Signals inherited from StandardSetting
void valueChanged (const QString &)
 
void valueChanged (StandardSetting *)
 
void ShouldRedraw (StandardSetting *)
 
void settingsChanged (StandardSetting *selectedSetting=nullptr)
 
void ChangeSaved ()
 
void helpTextChanged (const QString &)
 
- Protected Member Functions inherited from StandardSetting
 StandardSetting (Storage *_storage=nullptr)
 
virtual ~StandardSetting ()
 
void setParent (StandardSetting *parent)
 
- Protected Attributes inherited from StandardSetting
QString m_settingValue
 
bool m_enabled {true}
 
QString m_label
 
QString m_helptext
 
QString m_name
 
bool m_visible {true}
 

Detailed Description

Definition at line 39 of file recordingprofile.h.

Member Enumeration Documentation

◆ RecProfileGroup

Enumerator
AllGroups 
SoftwareEncoderGroup 
HardwareMPEG2Group 
HardwareMJPEGGroup 
HardwareHDTVGroup 
DVBGroup 
TranscoderGroup 
FireWireGroup 
USBMPEG4Group 
FreeboxGroup 
HDHomeRunGroup 
CRCIGroup 
ASIGroup 
OCURGroup 
CetonGroup 

Definition at line 105 of file recordingprofile.h.

Constructor & Destructor Documentation

◆ RecordingProfile()

RecordingProfile::RecordingProfile ( const QString &  profName = QString())
explicit

◆ ~RecordingProfile()

virtual RecordingProfile::~RecordingProfile ( void  )
virtual

Member Function Documentation

◆ loadByID()

virtual void RecordingProfile::loadByID ( int  id)
virtual

Referenced by Transcode::GetProfile().

◆ loadByType()

virtual bool RecordingProfile::loadByType ( const QString &  name,
const QString &  cardtype,
const QString &  videodev 
)
virtual

◆ loadByGroup()

virtual bool RecordingProfile::loadByGroup ( const QString &  name,
const QString &  group 
)
virtual

Referenced by Transcode::GetProfile().

◆ CompleteLoad()

virtual void RecordingProfile::CompleteLoad ( int  profileId,
const QString &  type,
const QString &  name 
)
virtual

◆ canDelete()

bool RecordingProfile::canDelete ( void  )
overridevirtual

Reimplemented from GroupSetting.

◆ deleteEntry()

void RecordingProfile::deleteEntry ( void  )
overridevirtual

Reimplemented from GroupSetting.

◆ setCodecTypes()

void RecordingProfile::setCodecTypes ( )

◆ setName()

void RecordingProfile::setName ( const QString &  newName)
inlineoverridevirtual

Reimplemented from StandardSetting.

Definition at line 92 of file recordingprofile.h.

◆ getImageSize()

const ImageSize& RecordingProfile::getImageSize ( void  ) const
inline

Definition at line 96 of file recordingprofile.h.

◆ getProfileNum()

int RecordingProfile::getProfileNum ( void  ) const
inline

◆ getName() [1/2]

QString RecordingProfile::getName ( void  ) const
inline

Definition at line 98 of file recordingprofile.h.

◆ groupType()

QString RecordingProfile::groupType ( void  ) const

◆ getName() [2/2]

static QString RecordingProfile::getName ( int  id)
static

◆ GetProfiles()

static QMap<int, QString> RecordingProfile::GetProfiles ( RecProfileGroup  group = AllGroups)
static

◆ GetTranscodingProfiles()

static QMap<int, QString> RecordingProfile::GetTranscodingProfiles ( )
static

Referenced by PostProcMixin::Load().

◆ fillSelections()

static void RecordingProfile::fillSelections ( GroupSetting setting,
int  group,
bool  foldautodetect = false 
)
static

◆ ResizeTranscode

void RecordingProfile::ResizeTranscode ( const QString &  val)
privateslot

◆ SetLosslessTranscode

void RecordingProfile::SetLosslessTranscode ( const QString &  val)
privateslot

◆ FiltersChanged

void RecordingProfile::FiltersChanged ( const QString &  val)
privateslot

Member Data Documentation

◆ TranscoderAutodetect

const uint RecordingProfile::TranscoderAutodetect = 0
static

sentinel value

Definition at line 130 of file recordingprofile.h.

Referenced by JobQueue::DoTranscodeThread(), doUpgradeTVDatabaseSchema(), and JobQueue::GetJobCommand().

◆ m_id

ID* RecordingProfile::m_id {nullptr}
private

Definition at line 138 of file recordingprofile.h.

◆ m_name

Name* RecordingProfile::m_name {nullptr}
private

Definition at line 139 of file recordingprofile.h.

◆ m_imageSize

ImageSize* RecordingProfile::m_imageSize {nullptr}
private

Definition at line 140 of file recordingprofile.h.

◆ m_trResize

TranscodeResize* RecordingProfile::m_trResize {nullptr}
private

Definition at line 141 of file recordingprofile.h.

◆ m_trLossless

TranscodeLossless* RecordingProfile::m_trLossless {nullptr}
private

Definition at line 142 of file recordingprofile.h.

◆ m_trFilters

TranscodeFilters* RecordingProfile::m_trFilters {nullptr}
private

Definition at line 143 of file recordingprofile.h.

◆ m_videoSettings

VideoCompressionSettings* RecordingProfile::m_videoSettings {nullptr}
private

Definition at line 144 of file recordingprofile.h.

◆ m_audioSettings

AudioCompressionSettings* RecordingProfile::m_audioSettings {nullptr}
private

Definition at line 145 of file recordingprofile.h.

◆ m_profileName

QString RecordingProfile::m_profileName
private

Definition at line 146 of file recordingprofile.h.

◆ m_isEncoder

bool RecordingProfile::m_isEncoder {true}
private

Definition at line 147 of file recordingprofile.h.

◆ m_v4l2util

V4L2util* RecordingProfile::m_v4l2util {nullptr}
private

Definition at line 149 of file recordingprofile.h.


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