MythTV  master
playgroup.h
Go to the documentation of this file.
1 #ifndef PLAYGROUP_H
2 #define PLAYGROUP_H
3 
4 #include <QStringList>
5 
6 #include "mythtvexp.h"
7 #include "standardsettings.h"
8 
9 class ProgramInfo;
10 
12 {
13  public:
14  static QStringList GetNames(void);
15  static int GetCount(void);
16  static QString GetInitialName(const ProgramInfo *pi);
17  static int GetSetting(const QString &name, const QString &field,
18  int defval);
19 };
20 
22 {
23  Q_OBJECT
24 
25  public:
26  PlayGroupEditor(void);
27  void Load(void) override; // StandardSetting
28 
29  public slots:
30  void CreateNewPlayBackGroup();
31  void CreateNewPlayBackGroupSlot(const QString&);
32 
33  private:
34  ButtonStandardSetting *m_addGroupButton {nullptr};
35 };
36 
38 {
39  Q_OBJECT
40 
41  public:
42  PlayGroupConfig(const QString &label, const QString &name, bool isNew=false);
43  void updateButton(MythUIButtonListItem *item) override; // GroupSetting
44  void Save() override; // StandardSetting
45  bool canDelete(void) override; // GroupSetting
46  void deleteEntry(void) override; // GroupSetting
47 
48  private:
49  StandardSetting *m_titleMatch {nullptr};
50  MythUISpinBoxSetting *m_skipAhead {nullptr};
51  MythUISpinBoxSetting *m_skipBack {nullptr};
52  MythUISpinBoxSetting *m_jumpMinutes {nullptr};
53  MythUISpinBoxSetting *m_timeStrech {nullptr};
54  bool m_isNew {false};
55 };
56 
57 #endif
unsigned int slots[4]
Definition: element.c:38
virtual bool canDelete(void)
virtual void Load(void)
void updateButton(MythUIButtonListItem *item) override
This method is called whenever the UI need to reflect a change Reimplement this If you widget need a ...
Holds information on recordings and videos.
Definition: programinfo.h:66
#define MTV_PUBLIC
Definition: mythtvexp.h:15
const char * name
Definition: ParseText.cpp:328
virtual void Save(void)
virtual void deleteEntry(void)