MythTV  master
storagegroupeditor.h
Go to the documentation of this file.
1 #ifndef _STORAGEGROUPEDITOR_H
2 #define _STORAGEGROUPEDITOR_H
3 
4 #include "storagegroup.h"
5 #include "standardsettings.h"
6 #include "mythexp.h"
7 
9  public GroupSetting
10 {
11  Q_OBJECT
12  public:
13  explicit StorageGroupEditor(QString group);
14  void Load(void) override; // StandardSetting
15  bool canDelete(void) override; // GroupSetting
16 
17  protected slots:
18  void DoDeleteSlot(bool doDelete);
19  void ShowFileBrowser(void);
20 
21  protected:
22  bool keyPressEvent(QKeyEvent *event) override; // StandardSetting
23  void customEvent(QEvent *event) override; // QObject
24  void ShowDeleteDialog();
25  void SetLabel(void);
26  QString m_group;
27 };
28 
30  public GroupSetting
31 {
32  Q_OBJECT
33  public:
35  void Load(void) override; // StandardSetting
36  void AddSelection(const QString &label, const QString &value);
37 
38 public slots:
39  void ShowNewGroupDialog(void);
40  void CreateNewGroup(const QString& name);
41 };
42 
44 {
45  public:
46  StorageGroupDirStorage(StorageUser *_user, int id,
47  const QString &group);
48 
49  protected:
50  QString GetSetClause(MSqlBindings &bindings) const override; // SimpleDBStorage
51  QString GetWhereClause(MSqlBindings &bindings) const override; // SimpleDBStorage
52 
53  int m_id;
54  QString m_group;
55 };
56 
58 {
59  Q_OBJECT
60 
61  public:
62  StorageGroupDirSetting(int id, const QString &group);
63 
64  bool keyPressEvent(QKeyEvent *event) override; // StandardSetting
65 
66  void ShowDeleteDialog();
67 
68  protected slots:
69  void DoDeleteSlot(bool doDelete);
70 
71  protected:
72  int m_id;
73  QString m_group;
74 };
75 
76 #endif
77 
78 /* vim: set expandtab tabstop=4 shiftwidth=4: */
unsigned int slots[4]
Definition: element.c:38
virtual bool canDelete(void)
bool keyPressEvent(QKeyEvent *event) override
virtual bool keyPressEvent(QKeyEvent *)
#define MPUBLIC
Definition: mythexp.h:10
QString GetWhereClause(MSqlBindings &bindings) const override
virtual void Load(void)
StorageGroupDirStorage(StorageUser *_user, int id, const QString &group)
StorageGroupDirSetting(int id, const QString &group)
const char * name
Definition: ParseText.cpp:328
void DoDeleteSlot(bool doDelete)
QMap< QString, QVariant > MSqlBindings
typedef for a map of string -> string bindings for generic queries.
Definition: mythdbcon.h:98
QString GetSetClause(MSqlBindings &bindings) const override