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
16
21{
22 Q_OBJECT
23
24 public:
25 NetEditorBase(MythScreenStack *parent, const QString &name);
26 ~NetEditorBase() override;
27
28 bool Create(void) override; // MythScreenType
29 bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
30
31 private:
32 void LoadData(void);
34 void ParsedData();
35
40
41 QNetworkAccessManager *m_manager {nullptr};
42 QNetworkReply *m_reply {nullptr};
43 bool m_changed {false};
44
45 protected:
46 void CreateBusyDialog(const QString& title);
47
48 virtual bool InsertInDB(GrabberScript *script) = 0;
49 virtual bool RemoveFromDB(GrabberScript *script) = 0;
50 virtual bool FindGrabberInDB(const QString &filename) = 0;
51 virtual bool Matches(bool search, bool tree) = 0;
52
53 signals:
54 void ItemsChanged(void);
55
56 public slots:
57 void SlotLoadedData(void);
59};
60
61#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:39
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:41
virtual bool InsertInDB(GrabberScript *script)=0
MythUIBusyDialog * m_busyPopup
Definition: neteditorbase.h:38
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
virtual bool RemoveFromDB(GrabberScript *script)=0
MythUIButtonList * m_grabbers
Definition: neteditorbase.h:37
void CreateBusyDialog(const QString &title)
void FillGrabberButtonList()
~NetEditorBase() override
GrabberScript::scriptList m_grabberList
Definition: neteditorbase.h:36
QNetworkReply * m_reply
Definition: neteditorbase.h:42
NetEditorBase(MythScreenStack *parent, const QString &name)
Creates a new NetEditorBase Screen.
void ToggleItem(MythUIButtonListItem *item)
bool Create(void) override