1#ifndef RECORDINGPROFILE_H
2#define RECORDINGPROFILE_H
11 {
"Default",
"Live TV",
"High Quality",
"Low Quality" };
24 const QString& name) :
61 setLabel(QObject::tr(
"Profile name"));
74 void setValue(
const QString &newValue)
override
76 bool readonly = (newValue ==
"Default") || (newValue ==
"Live TV");
77 setReadOnly(readonly);
88 virtual void loadByID(
int id);
89 virtual bool loadByType(
const QString &name,
const QString &cardtype,
90 const QString &videodev);
91 virtual bool loadByGroup(
const QString &name,
const QString &group);
92 virtual void CompleteLoad(
int profileId,
const QString &
type,
99 void setName(
const QString& newName)
override
100 { m_name->setValue(newName); }
105 QString
getName(
void)
const {
return m_name->getValue(); }
106 QString groupType(
void)
const;
109 static QString
getName(
int id);
115 SoftwareEncoderGroup = 1,
116 HardwareMPEG2Group = 2,
117 HardwareMJPEGGroup = 3,
118 HardwareHDTVGroup = 4,
131 static QMap<int, QString> GetProfiles(RecProfileGroup group = AllGroups);
132 static QMap<int, QString> GetTranscodingProfiles();
134 int group,
bool foldautodetect =
false);
137 static const uint kTranscoderAutodetect = 0;
140 void ResizeTranscode(
const QString &val);
141 void SetLosslessTranscode(
const QString &val);
142 void FiltersChanged(
const QString &val);
154 bool m_isEncoder {
true};
168 void Load(
void)
override;
virtual void deleteEntry(void)
virtual bool canDelete(void)
void CreateNewProfile(const QString &profName)
void ShowNewProfileDialog() const
~RecordingProfileEditor() override=default
RecordingProfileEditor(int id, QString profName)
RecordingProfileStorage(StandardSetting *_setting, const RecordingProfile &parentProfile, const QString &name)
QString GetWhereClause(MSqlBindings &bindings) const override
const RecordingProfile & m_parent
void setValue(const QString &newValue) override
Name(const RecordingProfile &parent)
void setName(const QString &newName) override
int getProfileNum(void) const
QString getName(void) const
const ImageSize & getImageSize(void) const
QString getName(void) const
virtual void setValue(const QString &newValue)
QMap< QString, QVariant > MSqlBindings
typedef for a map of string -> string bindings for generic queries.
const std::array< QString, 4 > kAvailProfiles