MythTV  master
netbase.h
Go to the documentation of this file.
1 #ifndef NETBASE_H_
2 #define NETBASE_H_
3 
4 #include <QString>
5 #include <QDomDocument>
6 #include <QUrl>
7 
8 #include <netutils.h>
9 #include <mythscreentype.h>
10 
11 class MythUIImage;
12 class MythUIStateType;
13 class MythUIBusyDialog;
16 class ResultItem;
17 
18 class NetBase : public MythScreenType
19 {
20  Q_OBJECT
21 
22  public:
23  explicit NetBase(MythScreenStack *parent, const char *name = nullptr);
24  ~NetBase() override;
25 
26  protected:
27  void Init() override; // MythScreenType
28  virtual ResultItem *GetStreamItem() = 0;
29  virtual void LoadData(void) = 0;
30  void InitProgressDialog();
31  static void CleanCacheDir();
32  void DownloadVideo(const QString &url, const QString &dest);
33  static void RunCmdWithoutScreensaver(const QString &cmd);
34 
35  protected slots:
36  void StreamWebVideo(void);
37  void ShowWebVideo(void);
38  void DoDownloadAndPlay(void);
39  void DoPlayVideo(const QString &filename);
40  void SlotDeleteVideo(void);
41  void DoDeleteVideo(bool remove);
42  void customEvent(QEvent *event) override; // MythUIType
43 
44  protected:
50 
51  QString m_downloadFile;
53 };
54 
55 #endif // NETBASE_H_
build_compdb.dest
dest
Definition: build_compdb.py:9
MythUIImage
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:98
MetadataImageDownload
Definition: metadataimagedownload.h:88
NetBase::~NetBase
~NetBase() override
Definition: netbase.cpp:27
NetBase::SlotDeleteVideo
void SlotDeleteVideo(void)
Definition: netbase.cpp:183
NetBase::DoPlayVideo
void DoPlayVideo(const QString &filename)
Definition: netbase.cpp:311
MythScreenStack
Definition: mythscreenstack.h:16
NetBase::InitProgressDialog
void InitProgressDialog()
Definition: netbase.cpp:53
slots
unsigned int slots[4]
Definition: element.cpp:38
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
NetBase::customEvent
void customEvent(QEvent *event) override
Definition: netbase.cpp:221
NetBase::m_downloadFile
QString m_downloadFile
Definition: netbase.h:51
NetBase::m_thumbImage
MythUIImage * m_thumbImage
Definition: netbase.h:45
NetBase::Init
void Init() override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
Definition: netbase.cpp:42
NetBase::DownloadVideo
void DownloadVideo(const QString &url, const QString &dest)
Definition: netbase.cpp:47
GrabberScript::scriptList
QList< GrabberScript * > scriptList
Definition: netgrabbermanager.h:46
NetBase::m_popupStack
MythScreenStack * m_popupStack
Definition: netbase.h:47
NetBase::GetStreamItem
virtual ResultItem * GetStreamItem()=0
NetBase::CleanCacheDir
static void CleanCacheDir()
Definition: netbase.cpp:68
NetBase::m_grabberList
GrabberScript::scriptList m_grabberList
Definition: netbase.h:52
MythUIProgressDialog
Definition: mythprogressdialog.h:60
NetBase::m_imageDownload
MetadataImageDownload * m_imageDownload
Definition: netbase.h:49
netutils.h
filename
QString filename
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:634
MythUIBusyDialog
Definition: mythprogressdialog.h:37
NetBase::StreamWebVideo
void StreamWebVideo(void)
Definition: netbase.cpp:87
NetBase::DoDeleteVideo
void DoDeleteVideo(bool remove)
Definition: netbase.cpp:199
NetBase::LoadData
virtual void LoadData(void)=0
NetBase::NetBase
NetBase(MythScreenStack *parent, const char *name=nullptr)
Definition: netbase.cpp:19
ResultItem
Definition: rssparse.h:110
NetBase::ShowWebVideo
void ShowWebVideo(void)
Definition: netbase.cpp:106
NetBase::m_downloadable
MythUIStateType * m_downloadable
Definition: netbase.h:46
NetBase::m_progressDialog
MythUIProgressDialog * m_progressDialog
Definition: netbase.h:48
NetBase
Definition: netbase.h:19
MythUIStateType
This widget is used for grouping other widgets for display when a particular named state is called....
Definition: mythuistatetype.h:23
NetBase::DoDownloadAndPlay
void DoDownloadAndPlay(void)
Definition: netbase.cpp:284
mythscreentype.h
NetBase::RunCmdWithoutScreensaver
static void RunCmdWithoutScreensaver(const QString &cmd)
Definition: netbase.cpp:172