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 
8 #include <libmythbase/netutils.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 DoPlayVideo();
41  void SlotDeleteVideo(void);
42  void DoDeleteVideo(bool remove);
43  void customEvent(QEvent *event) override; // MythUIType
44 
45  protected:
51 
52  QString m_downloadFile;
54 };
55 
56 #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:97
MetadataImageDownload
Definition: metadataimagedownload.h:87
NetBase::~NetBase
~NetBase() override
Definition: netbase.cpp:26
NetBase::SlotDeleteVideo
void SlotDeleteVideo(void)
Definition: netbase.cpp:182
MythScreenStack
Definition: mythscreenstack.h:16
NetBase::InitProgressDialog
void InitProgressDialog()
Definition: netbase.cpp:52
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:220
NetBase::m_downloadFile
QString m_downloadFile
Definition: netbase.h:52
NetBase::m_thumbImage
MythUIImage * m_thumbImage
Definition: netbase.h:46
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:41
NetBase::DownloadVideo
void DownloadVideo(const QString &url, const QString &dest)
Definition: netbase.cpp:46
NetBase::DoPlayVideo
void DoPlayVideo()
Definition: netbase.cpp:315
GrabberScript::scriptList
QList< GrabberScript * > scriptList
Definition: netgrabbermanager.h:52
NetBase::m_popupStack
MythScreenStack * m_popupStack
Definition: netbase.h:48
NetBase::GetStreamItem
virtual ResultItem * GetStreamItem()=0
NetBase::CleanCacheDir
static void CleanCacheDir()
Definition: netbase.cpp:67
NetBase::m_grabberList
GrabberScript::scriptList m_grabberList
Definition: netbase.h:53
MythUIProgressDialog
Definition: mythprogressdialog.h:59
NetBase::m_imageDownload
MetadataImageDownload * m_imageDownload
Definition: netbase.h:50
netutils.h
MythUIBusyDialog
Definition: mythprogressdialog.h:36
NetBase::StreamWebVideo
void StreamWebVideo(void)
Definition: netbase.cpp:85
NetBase::DoDeleteVideo
void DoDeleteVideo(bool remove)
Definition: netbase.cpp:198
NetBase::LoadData
virtual void LoadData(void)=0
NetBase::NetBase
NetBase(MythScreenStack *parent, const char *name=nullptr)
Definition: netbase.cpp:18
ResultItem
Definition: rssparse.h:109
NetBase::ShowWebVideo
void ShowWebVideo(void)
Definition: netbase.cpp:105
NetBase::m_downloadable
MythUIStateType * m_downloadable
Definition: netbase.h:47
NetBase::m_progressDialog
MythUIProgressDialog * m_progressDialog
Definition: netbase.h:49
NetBase
Definition: netbase.h:18
build_compdb.filename
filename
Definition: build_compdb.py:21
MythUIStateType
This widget is used for grouping other widgets for display when a particular named state is called....
Definition: mythuistatetype.h:22
NetBase::DoDownloadAndPlay
void DoDownloadAndPlay(void)
Definition: netbase.cpp:279
mythscreentype.h
NetBase::RunCmdWithoutScreensaver
static void RunCmdWithoutScreensaver(const QString &cmd)
Definition: netbase.cpp:171