MythTV  master
neteditorbase.h
Go to the documentation of this file.
1 #ifndef NETEDITORBASE_H
2 #define NETEDITORBASE_H
3 
4 // Qt headers
5 #include <QDomDocument>
6 #include <QNetworkAccessManager>
7 #include <QNetworkReply>
8 #include <QNetworkRequest>
9 #include <QString>
10 
11 // MythTV headers
15 
17 
22 {
23  Q_OBJECT
24 
25  public:
26  NetEditorBase(MythScreenStack *parent, const QString &name);
27  ~NetEditorBase() override;
28 
29  bool Create(void) override; // MythScreenType
30  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
31 
32  private:
33  void LoadData(void);
34  void FillGrabberButtonList();
35  void ParsedData();
36 
41 
42  QNetworkAccessManager *m_manager {nullptr};
43  QNetworkReply *m_reply {nullptr};
44  bool m_changed {false};
45 
46  protected:
47  void CreateBusyDialog(const QString& title);
48 
49  virtual bool InsertInDB(GrabberScript *script) = 0;
50  virtual bool RemoveFromDB(GrabberScript *script) = 0;
51  virtual bool FindGrabberInDB(const QString &filename) = 0;
52  virtual bool Matches(bool search, bool tree) = 0;
53 
54  signals:
55  void ItemsChanged(void);
56 
57  public slots:
58  void SlotLoadedData(void);
59  void ToggleItem(MythUIButtonListItem *item);
60 };
61 
62 #endif /* NETEDITORBASE_H */
NetEditorBase::m_manager
QNetworkAccessManager * m_manager
Definition: neteditorbase.h:42
NetEditorBase::m_busyPopup
MythUIBusyDialog * m_busyPopup
Definition: neteditorbase.h:39
NetEditorBase::RemoveFromDB
virtual bool RemoveFromDB(GrabberScript *script)=0
NetEditorBase::FillGrabberButtonList
void FillGrabberButtonList()
Definition: neteditorbase.cpp:192
NetEditorBase::~NetEditorBase
~NetEditorBase() override
Definition: neteditorbase.cpp:31
NetEditorBase::Matches
virtual bool Matches(bool search, bool tree)=0
NetEditorBase::FindGrabberInDB
virtual bool FindGrabberInDB(const QString &filename)=0
NetEditorBase::m_popupStack
MythScreenStack * m_popupStack
Definition: neteditorbase.h:40
MythScreenStack
Definition: mythscreenstack.h:16
NetEditorBase::InsertInDB
virtual bool InsertInDB(GrabberScript *script)=0
NetEditorBase::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: neteditorbase.cpp:88
NetEditorBase::SlotLoadedData
void SlotLoadedData(void)
Definition: neteditorbase.cpp:103
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
mythprogressdialog.h
GrabberScript::scriptList
QList< GrabberScript * > scriptList
Definition: netgrabbermanager.h:49
MythUIButtonListItem
Definition: mythuibuttonlist.h:41
NetEditorBase::NetEditorBase
NetEditorBase(MythScreenStack *parent, const QString &name)
Creates a new NetEditorBase Screen.
Definition: neteditorbase.cpp:24
NetEditorBase::ParsedData
void ParsedData()
Definition: neteditorbase.cpp:162
NetEditorBase::CreateBusyDialog
void CreateBusyDialog(const QString &title)
Definition: neteditorbase.cpp:173
NetEditorBase::m_grabbers
MythUIButtonList * m_grabbers
Definition: neteditorbase.h:38
netgrabbermanager.h
NetEditorBase::ToggleItem
void ToggleItem(MythUIButtonListItem *item)
Definition: neteditorbase.cpp:222
NetEditorBase::m_changed
bool m_changed
Definition: neteditorbase.h:44
NetEditorBase::ItemsChanged
void ItemsChanged(void)
GrabberScript
Definition: netgrabbermanager.h:19
MythUIBusyDialog
Definition: mythprogressdialog.h:36
NetEditorBase::m_grabberList
GrabberScript::scriptList m_grabberList
Definition: neteditorbase.h:37
NetEditorBase::m_reply
QNetworkReply * m_reply
Definition: neteditorbase.h:43
NetEditorBase::LoadData
void LoadData(void)
Definition: neteditorbase.cpp:74
NetEditorBase
Definition: neteditorbase.h:21
NetEditorBase::Create
bool Create(void) override
Definition: neteditorbase.cpp:47
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:191
build_compdb.filename
filename
Definition: build_compdb.py:21
mythscreentype.h