Go to the documentation of this file. 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"));
69 void setValue(
const QString &newValue)
override
71 bool readonly = (newValue ==
"Default") || (newValue ==
"Live TV");
72 setReadOnly(readonly);
83 virtual void loadByID(
int id);
84 virtual bool loadByType(
const QString &name,
const QString &cardtype,
85 const QString &videodev);
86 virtual bool loadByGroup(
const QString &name,
const QString &group);
87 virtual void CompleteLoad(
int profileId,
const QString &
type,
94 void setName(
const QString& newName)
override
95 { m_name->setValue(newName); }
100 QString
getName(
void)
const {
return m_name->getValue(); }
101 QString groupType(
void)
const;
104 static QString
getName(
int id);
110 SoftwareEncoderGroup = 1,
111 HardwareMPEG2Group = 2,
112 HardwareMJPEGGroup = 3,
113 HardwareHDTVGroup = 4,
126 static QMap<int, QString> GetProfiles(RecProfileGroup group = AllGroups);
127 static QMap<int, QString> GetTranscodingProfiles();
129 int group,
bool foldautodetect =
false);
132 static const uint kTranscoderAutodetect = 0;
135 void ResizeTranscode(
const QString &val);
136 void SetLosslessTranscode(
const QString &val);
137 void FiltersChanged(
const QString &val);
149 bool m_isEncoder {
true};
163 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)