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  RecProfileGroups {
  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
}
 
typedef enum RecordingProfile::RecProfileGroups RecProfileGroup
 

Public Member Functions

 RecordingProfile (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

IDid
 
Namename
 
ImageSize * imageSize
 
TranscodeResizetr_resize
 
TranscodeLosslesstr_lossless
 
TranscodeFilters * tr_filters
 
VideoCompressionSettingsvideoSettings
 
AudioCompressionSettingsaudioSettings
 
QString profileName
 
bool isEncoder
 
V4L2utilv4l2util
 

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 ()
 
- 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
 
QString m_label
 
QString m_helptext
 
QString m_name
 
bool m_visible
 

Detailed Description

Definition at line 39 of file recordingprofile.h.

Member Typedef Documentation

◆ RecProfileGroup

Member Enumeration Documentation

◆ RecProfileGroups

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 ( 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().

◆ id

ID* RecordingProfile::id
private

◆ name

Name* RecordingProfile::name
private

Definition at line 139 of file recordingprofile.h.

◆ imageSize

ImageSize* RecordingProfile::imageSize
private

Definition at line 140 of file recordingprofile.h.

◆ tr_resize

TranscodeResize* RecordingProfile::tr_resize
private

Definition at line 141 of file recordingprofile.h.

◆ tr_lossless

TranscodeLossless* RecordingProfile::tr_lossless
private

Definition at line 142 of file recordingprofile.h.

◆ tr_filters

TranscodeFilters* RecordingProfile::tr_filters
private

Definition at line 143 of file recordingprofile.h.

◆ videoSettings

VideoCompressionSettings* RecordingProfile::videoSettings
private

Definition at line 144 of file recordingprofile.h.

◆ audioSettings

AudioCompressionSettings* RecordingProfile::audioSettings
private

Definition at line 145 of file recordingprofile.h.

◆ profileName

QString RecordingProfile::profileName
private

Definition at line 146 of file recordingprofile.h.

◆ isEncoder

bool RecordingProfile::isEncoder
private

Definition at line 147 of file recordingprofile.h.

◆ v4l2util

V4L2util* RecordingProfile::v4l2util
private

Definition at line 149 of file recordingprofile.h.


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