Go to the documentation of this file. 1 #ifndef RECORDINGPROFILE_H
2 #define RECORDINGPROFILE_H
9 {
"Default",
"Live TV",
"High Quality",
"Low Quality" };
22 const QString& name) :
59 setLabel(QObject::tr(
"Profile name"));
67 void setValue(
const QString &newValue)
override
69 bool readonly = (newValue ==
"Default") || (newValue ==
"Live TV");
70 setReadOnly(readonly);
81 virtual void loadByID(
int id);
82 virtual bool loadByType(
const QString &name,
const QString &cardtype,
83 const QString &videodev);
84 virtual bool loadByGroup(
const QString &name,
const QString &group);
85 virtual void CompleteLoad(
int profileId,
const QString &
type,
92 void setName(
const QString& newName)
override
93 { m_name->setValue(newName); }
98 QString
getName(
void)
const {
return m_name->getValue(); }
99 QString groupType(
void)
const;
102 static QString
getName(
int id);
108 SoftwareEncoderGroup = 1,
109 HardwareMPEG2Group = 2,
110 HardwareMJPEGGroup = 3,
111 HardwareHDTVGroup = 4,
124 static QMap<int, QString> GetProfiles(RecProfileGroup group = AllGroups);
125 static QMap<int, QString> GetTranscodingProfiles();
127 int group,
bool foldautodetect =
false);
130 static const uint kTranscoderAutodetect = 0;
133 void ResizeTranscode(
const QString &val);
134 void SetLosslessTranscode(
const QString &val);
135 void FiltersChanged(
const QString &val);
147 bool m_isEncoder {
true};
161 void Load(
void)
override;
void setValue(const QString &newValue) override
QMap< QString, QVariant > MSqlBindings
typedef for a map of string -> string bindings for generic queries.
const std::array< QString, 4 > kAvailProfiles
virtual void setValue(const QString &newValue)
void ShowNewProfileDialog() const
RecordingProfileStorage(StandardSetting *_setting, const RecordingProfile &parentProfile, const QString &name)
const RecordingProfile & m_parent
QString GetWhereClause(MSqlBindings &bindings) const override
QString getName(void) const
QString getName(void) const
virtual void deleteEntry(void)
~RecordingProfileEditor() override=default
void CreateNewProfile(const QString &profName)
virtual bool canDelete(void)
int getProfileNum(void) const
const ImageSize & getImageSize(void) const
void setName(const QString &newName) override
Name(const RecordingProfile &parent)
RecordingProfileEditor(int id, QString profName)