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);
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);
60};
61
62#endif /* NETEDITORBASE_H */
QList< GrabberScript * > scriptList
Screen in which all other widgets are contained and rendered.
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
MythScreenStack * m_popupStack
Definition: neteditorbase.h:40
virtual bool Matches(bool search, bool tree)=0
virtual bool FindGrabberInDB(const QString &filename)=0
void ItemsChanged(void)
void SlotLoadedData(void)
void LoadData(void)
QNetworkAccessManager * m_manager
Definition: neteditorbase.h:42
virtual bool InsertInDB(GrabberScript *script)=0
MythUIBusyDialog * m_busyPopup
Definition: neteditorbase.h:39
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
virtual bool RemoveFromDB(GrabberScript *script)=0
MythUIButtonList * m_grabbers
Definition: neteditorbase.h:38
void CreateBusyDialog(const QString &title)
void FillGrabberButtonList()
~NetEditorBase() override
GrabberScript::scriptList m_grabberList
Definition: neteditorbase.h:37
QNetworkReply * m_reply
Definition: neteditorbase.h:43
NetEditorBase(MythScreenStack *parent, const QString &name)
Creates a new NetEditorBase Screen.
void ToggleItem(MythUIButtonListItem *item)
bool Create(void) override