MythTV master
netbase.h
Go to the documentation of this file.
1#ifndef NETBASE_H_
2#define NETBASE_H_
3
4#include <QDomDocument>
5#include <QString>
6#include <QUrl>
7
10
11class MythUIImage;
12class MythUIStateType;
16class ResultItem;
17
18class 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 DoPlayVideo();
41 void SlotDeleteVideo(void);
42 void DoDeleteVideo(bool remove);
43 void customEvent(QEvent *event) override; // MythUIType
44
45 protected:
51
54};
55
56#endif // NETBASE_H_
QList< GrabberScript * > scriptList
Screen in which all other widgets are contained and rendered.
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:98
This widget is used for grouping other widgets for display when a particular named state is called.
GrabberScript::scriptList m_grabberList
Definition: netbase.h:53
void DownloadVideo(const QString &url, const QString &dest)
Definition: netbase.cpp:46
void DoPlayVideo()
Definition: netbase.cpp:317
NetBase(MythScreenStack *parent, const char *name=nullptr)
Definition: netbase.cpp:18
void ShowWebVideo(void)
Definition: netbase.cpp:105
static void CleanCacheDir()
Definition: netbase.cpp:67
MythUIProgressDialog * m_progressDialog
Definition: netbase.h:49
static void RunCmdWithoutScreensaver(const QString &cmd)
Definition: netbase.cpp:171
void DoDeleteVideo(bool remove)
Definition: netbase.cpp:200
void customEvent(QEvent *event) override
Definition: netbase.cpp:222
MythUIStateType * m_downloadable
Definition: netbase.h:47
void SlotDeleteVideo(void)
Definition: netbase.cpp:182
MetadataImageDownload * m_imageDownload
Definition: netbase.h:50
void StreamWebVideo(void)
Definition: netbase.cpp:85
MythScreenStack * m_popupStack
Definition: netbase.h:48
MythUIImage * m_thumbImage
Definition: netbase.h:46
~NetBase() override
Definition: netbase.cpp:26
virtual ResultItem * GetStreamItem()=0
void InitProgressDialog()
Definition: netbase.cpp:52
void Init() override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
Definition: netbase.cpp:41
QString m_downloadFile
Definition: netbase.h:52
virtual void LoadData(void)=0
void DoDownloadAndPlay(void)
Definition: netbase.cpp:281