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