Go to the documentation of this file. 1 #ifndef SMARTPLAYLIST_H_
2 #define SMARTPLAYLIST_H_
14 #include <QCoreApplication>
31 QString
getCriteriaSQL(
const QString& fieldName,
const QString &operatorName,
32 QString value1, QString value2);
51 QString value1, QString value2)
57 QString
getSQL(
void)
const;
81 bool Create(
void)
override;
86 QString
getSQL(
const QString& fields);
162 bool Create(
void)
override;
169 void setValue(
const QString& value);
170 void setDate(
const QString& date);
223 bool Create(
void)
override;
225 void setSQL(
const QString& sql);
249 bool Create(
void)
override;
294 bool Create(
void)
override;
MythUIButton * m_moveUpButton
MythUIText * m_positionText
void setSQL(const QString &sql)
void moveDownPressed(void)
void loadFromDatabase(const QString &category, const QString &name)
void valueEditChanged(void)
SmartPLDateDialog(MythScreenStack *parent)
~SmartPLResultViewer(void) override=default
static int lookupCategoryID(const QString &category)
MythUISpinBox * m_value2Spinbox
static bool deleteSmartPlaylist(const QString &category, const QString &name)
MythUIText * m_statusText
MythUITextEdit * m_value1Edit
void orderByChanged(const QString &orderBy)
void renameCategory(const QString &category)
MythUIButton * m_showResultsButton
SmartPLCriteriaRow(QString field, QString op, QString value1, QString value2)
void showCategoryMenu(void)
QString formattedFieldValue(const QVariant &value)
MythUIButton * m_addButton
SmartPlaylistEditor(MythScreenStack *parent)
~SmartPLOrderByDialog() override=default
void setDate(const QString &date)
MythUIButton * m_okButton
SmartPLCriteriaRow(void)=default
MythUIButtonList * m_categorySelector
void getSmartPlaylistCategories(void)
void descendingPressed(void)
void customEvent(QEvent *event) override
void getCategoryAndName(QString &category, QString &name)
A text entry and edit widget.
MythUIButtonList * m_criteriaList
CriteriaRowEditor(MythScreenStack *parent, SmartPLCriteriaRow *row)
bool Create(void) override
QString getSQL(void) const
Screen in which all other widgets are contained and rendered.
QString getCriteriaSQL(const QString &fieldName, const QString &operatorName, QString value1, QString value2)
void ascendingPressed(void)
MythUISpinBox * m_addDaysSpin
MythUIButton * m_deleteButton
MythUIButton * m_value2Button
MythUIButton * m_moveDownButton
MythUIButtonList * m_matchSelector
void startDeleteCategory(const QString &category)
void newSmartPlaylist(const QString &category)
bool Create(void) override
void getOrderByFields(void)
MythUISpinBox * m_daySpin
Q_DECLARE_TR_FUNCTIONS(SmartPLCriteriaRow)
void orderByClicked(void)
void dateChanged(QString date)
void deleteCriteria(void)
QString m_originalCategory
MythUIText * m_matchesText
QString getFieldList(void)
SmartPLResultViewer(MythScreenStack *parent)
bool Create(void) override
MythUIButtonList * m_orderSelector
void enableSaveButton(void)
QString toString(void) const
QString getWhereClause(void)
MythUIButtonList * m_fieldSelector
MythUIButtonList * m_operatorSelector
void newCategory(const QString &category)
MythUITextEdit * m_titleEdit
QString getOrderByClause(void)
MythUIButtonList * m_trackList
void fixedCheckToggled(bool on)
MythUIButton * m_cancelButton
void setDate(QString date)
~SmartPLDateDialog() override=default
~SmartPlaylistEditor(void) override
void showCriteriaMenu(void)
void setFieldList(const QString &fieldList)
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
~SmartPLCriteriaRow(void)=default
void orderByChanged(void)
MythUIButton * m_saveButton
MythUIButton * m_orderByButton
void editSmartPlaylist(const QString &category, const QString &name)
void doDeleteCriteria(bool doit)
MythUISpinBox * m_limitSpin
MythUIButton * m_cancelButton
MythUIButton * m_okButton
static bool deleteCategory(const QString &category)
MythUIButton * m_descendingButton
MythUIButtonList * m_orderBySelector
void trackSelected(MythUIButtonListItem *item)
MythUIButtonList * m_value2Selector
void fieldListSelectionChanged(MythUIButtonListItem *item)
QString getSQL(const QString &fields)
All purpose text widget, displays a text string.
SmartPLCriteriaRow * m_tempCriteriaRow
~CriteriaRowEditor(void) override=default
MythUIButton * m_value1Button
QString getSQLFieldName(const QString &fieldName)
MythUIButtonList * m_fieldList
SmartPLOrderByDialog(MythScreenStack *parent)
MythUIButton * m_ascendingButton
bool saveToDatabase(int smartPlaylistID) const
void valueButtonClicked(void)
void setValue(const QString &value)
Q_DECLARE_METATYPE(SmartPLCriteriaRow *)
void showResultsClicked(void)
MythUIButton * m_categoryButton
MythUISpinBox * m_value1Spinbox
A widget for offering a range of numerical values where only the the bounding values and interval are...
MythUISpinBox * m_yearSpin
MythUITextEdit * m_value2Edit
MythUICheckBox * m_nowRadio
void updateOperators(void)
void nowCheckToggled(bool on)
MythUIButton * m_saveButton
static void trackVisible(MythUIButtonListItem *item)
void getOperatorList(SmartPLFieldType fieldType)
bool Create(void) override
void smartPLChanged(const QString &category, const QString &name)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythUIButton * m_cancelButton
QList< SmartPLCriteriaRow * > m_criteriaRows
void operatorChanged(void)
MythUIButton * m_cancelButton
SmartPLCriteriaRow * m_criteriaRow
MythUISpinBox * m_monthSpin
QString getOrderBySQL(const QString &orderByFields)
bool Create(void) override
MythUICheckBox * m_fixedRadio
MythUIButtonList * m_value1Selector