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())
 
 ~RecordingProfile (void) override
 
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 ImageSizegetImageSize (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 *event)
 
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 kTranscoderAutodetect = 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}
 
ImageSizem_imageSize {nullptr}
 
TranscodeResizem_trResize {nullptr}
 
TranscodeLosslessm_trLossless {nullptr}
 
TranscodeFiltersm_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 &newValue)
 
void valueChanged (StandardSetting *setting)
 
void ShouldRedraw (StandardSetting *setting)
 
void settingsChanged (StandardSetting *selectedSetting=nullptr)
 
void ChangeSaved ()
 
void helpTextChanged (const QString &newValue)
 
- Protected Member Functions inherited from StandardSetting
 StandardSetting (Storage *_storage=nullptr)
 
 ~StandardSetting () override
 
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

Definition at line 1382 of file recordingprofile.cpp.

Referenced by fillSelections().

◆ ~RecordingProfile()

RecordingProfile::~RecordingProfile ( void  )
override

Definition at line 1423 of file recordingprofile.cpp.

Member Function Documentation

◆ loadByID()

void RecordingProfile::loadByID ( int  id)
virtual

Definition at line 1449 of file recordingprofile.cpp.

Referenced by Transcode::GetProfile().

◆ loadByType()

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

Definition at line 1488 of file recordingprofile.cpp.

◆ loadByGroup()

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

Definition at line 1545 of file recordingprofile.cpp.

Referenced by Transcode::GetProfile().

◆ CompleteLoad()

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

Definition at line 1575 of file recordingprofile.cpp.

Referenced by loadByGroup(), loadByID(), and loadByType().

◆ canDelete()

bool RecordingProfile::canDelete ( void  )
overridevirtual

Reimplemented from GroupSetting.

Definition at line 1913 of file recordingprofile.cpp.

◆ deleteEntry()

void RecordingProfile::deleteEntry ( void  )
overridevirtual

Reimplemented from GroupSetting.

Definition at line 1918 of file recordingprofile.cpp.

◆ setCodecTypes()

void RecordingProfile::setCodecTypes ( )

Definition at line 1648 of file recordingprofile.cpp.

◆ 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

Definition at line 1877 of file recordingprofile.cpp.

Referenced by setCodecTypes().

◆ getName() [2/2]

QString RecordingProfile::getName ( int  id)
static

Definition at line 1895 of file recordingprofile.cpp.

◆ GetProfiles()

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

Definition at line 1811 of file recordingprofile.cpp.

Referenced by GetTranscodingProfiles().

◆ GetTranscodingProfiles()

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

Definition at line 1872 of file recordingprofile.cpp.

Referenced by PostProcMixin::Load().

◆ fillSelections()

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

Definition at line 1734 of file recordingprofile.cpp.

Referenced by RecordingProfileEditor::Load().

◆ ResizeTranscode

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

Definition at line 1431 of file recordingprofile.cpp.

Referenced by CompleteLoad().

◆ SetLosslessTranscode

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

Definition at line 1437 of file recordingprofile.cpp.

Referenced by CompleteLoad().

◆ FiltersChanged

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

Definition at line 1474 of file recordingprofile.cpp.

Referenced by CompleteLoad().

Member Data Documentation

◆ kTranscoderAutodetect

const uint RecordingProfile::kTranscoderAutodetect = 0
static

◆ m_id

ID* RecordingProfile::m_id {nullptr}
private

Definition at line 138 of file recordingprofile.h.

Referenced by CompleteLoad(), deleteEntry(), and RecordingProfile().

◆ m_name

Name* RecordingProfile::m_name {nullptr}
private

Definition at line 139 of file recordingprofile.h.

Referenced by RecordingProfile().

◆ m_imageSize

ImageSize* RecordingProfile::m_imageSize {nullptr}
private

Definition at line 140 of file recordingprofile.h.

Referenced by ResizeTranscode(), and SetLosslessTranscode().

◆ m_trResize

TranscodeResize* RecordingProfile::m_trResize {nullptr}
private

◆ m_trLossless

TranscodeLossless* RecordingProfile::m_trLossless {nullptr}
private

◆ m_trFilters

TranscodeFilters* RecordingProfile::m_trFilters {nullptr}
private

Definition at line 143 of file recordingprofile.h.

Referenced by CompleteLoad(), RecordingProfile(), and SetLosslessTranscode().

◆ m_videoSettings

VideoCompressionSettings* RecordingProfile::m_videoSettings {nullptr}
private

Definition at line 144 of file recordingprofile.h.

Referenced by CompleteLoad(), setCodecTypes(), and SetLosslessTranscode().

◆ m_audioSettings

AudioCompressionSettings* RecordingProfile::m_audioSettings {nullptr}
private

Definition at line 145 of file recordingprofile.h.

Referenced by CompleteLoad(), setCodecTypes(), and SetLosslessTranscode().

◆ m_profileName

QString RecordingProfile::m_profileName
private

Definition at line 146 of file recordingprofile.h.

Referenced by CompleteLoad().

◆ m_isEncoder

bool RecordingProfile::m_isEncoder {true}
private

Definition at line 147 of file recordingprofile.h.

Referenced by CompleteLoad().

◆ m_v4l2util

V4L2util* RecordingProfile::m_v4l2util {nullptr}
private

Definition at line 149 of file recordingprofile.h.

Referenced by CompleteLoad(), loadByType(), and ~RecordingProfile().


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