MythTV  master
exportnative.h
Go to the documentation of this file.
1 #ifndef EXPORTNATIVE_H_
2 #define EXPORTNATIVE_H_
3 
4 // c++
5 #include <vector>
6 
7 // qt
8 #include <QKeyEvent>
9 
10 // mythtv
11 #include <mythscreentype.h>
12 
13 // mytharchive
14 #include "archiveutil.h"
15 
17 {
20  RT_FILE
21 };
22 
23 class MythUIText;
24 class MythUIButton;
25 class MythUIButtonList;
27 class MythUIProgressBar;
28 
30 {
31 
32  Q_OBJECT
33 
34  public:
35  ExportNative(MythScreenStack *parent, MythScreenType *previousScreen,
36  ArchiveDestination archiveDestination, const QString& name)
37  : MythScreenType(parent, name),
38  m_previousScreen(previousScreen),
39  m_archiveDestination(archiveDestination) {}
40  ~ExportNative(void) override;
41 
42  bool Create(void) override; // MythScreenType
43  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
44 
45  void createConfigFile(const QString &filename);
46 
47  public slots:
48 
49  void handleNextPage(void);
50  void handlePrevPage(void);
51  void handleCancel(void);
52  void handleAddRecording(void);
53  void handleAddVideo(void);
54 
56  void ShowMenu(void) override; // MythScreenType
57  void removeItem(void);
58  void selectorClosed(bool ok);
59 
60  private:
61  void updateArchiveList(void);
62  void getArchiveList(void);
63  void updateSizeBar(void);
64  void loadConfiguration(void);
65  void saveConfiguration(void);
66  void getArchiveListFromDB(void);
67  void runScript();
68 
70 
73 
74  QList<ArchiveItem *> m_archiveList;
75 
76  bool m_bCreateISO {false};
77  bool m_bDoBurn {false};
78  bool m_bEraseDvdRw {false};
79  QString m_saveFilename;
80 
88  MythUIText *m_titleText {nullptr};
98 };
99 
100 #endif
ArchiveDestination
Definition: archiveutil.h:27
ExportNative::handlePrevPage
void handlePrevPage(void)
Definition: exportnative.cpp:207
ExportNative::ExportNative
ExportNative(MythScreenStack *parent, MythScreenType *previousScreen, ArchiveDestination archiveDestination, const QString &name)
Definition: exportnative.h:35
RT_VIDEO
@ RT_VIDEO
Definition: exportnative.h:19
ExportNative::m_titleText
MythUIText * m_titleText
Definition: exportnative.h:88
ExportNative::getArchiveList
void getArchiveList(void)
Definition: exportnative.cpp:282
ExportNative::m_archiveDestination
ArchiveDestination m_archiveDestination
Definition: exportnative.h:71
MythScreenStack
Definition: mythscreenstack.h:16
ExportNative::m_maxsizeText
MythUIText * m_maxsizeText
Definition: exportnative.h:93
ExportNative
Definition: exportnative.h:30
slots
unsigned int slots[4]
Definition: element.cpp:38
ExportNative::saveConfiguration
void saveConfiguration(void)
Definition: exportnative.cpp:296
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
ExportNative::m_nextButton
MythUIButton * m_nextButton
Definition: exportnative.h:82
ExportNative::updateSizeBar
void updateSizeBar(void)
Definition: exportnative.cpp:130
ExportNative::m_bEraseDvdRw
bool m_bEraseDvdRw
Definition: exportnative.h:78
ExportNative::m_descriptionText
MythUIText * m_descriptionText
Definition: exportnative.h:90
ExportNative::m_addrecordingButton
MythUIButton * m_addrecordingButton
Definition: exportnative.h:85
ExportNative::m_nofilesText
MythUIText * m_nofilesText
Definition: exportnative.h:92
ExportNative::m_sizeBar
MythUIProgressBar * m_sizeBar
Definition: exportnative.h:97
ExportNative::titleChanged
void titleChanged(MythUIButtonListItem *item)
Definition: exportnative.cpp:177
ExportNative::m_datetimeText
MythUIText * m_datetimeText
Definition: exportnative.h:89
MythUIButtonListItem
Definition: mythuibuttonlist.h:28
ExportNative::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: exportnative.cpp:98
ExportNative::updateArchiveList
void updateArchiveList(void)
Definition: exportnative.cpp:218
ExportNative::m_usedSpace
uint m_usedSpace
Definition: exportnative.h:72
ExportNative::handleCancel
void handleCancel(void)
Definition: exportnative.cpp:212
ExportNative::~ExportNative
~ExportNative(void) override
Definition: exportnative.cpp:35
ExportNative::handleAddRecording
void handleAddRecording(void)
Definition: exportnative.cpp:449
MythUIProgressBar
Progress bar widget.
Definition: mythuiprogressbar.h:13
ExportNative::handleAddVideo
void handleAddVideo(void)
Definition: exportnative.cpp:468
archiveutil.h
ExportNative::createConfigFile
void createConfigFile(const QString &filename)
Definition: exportnative.cpp:369
NativeItemType
NativeItemType
Definition: exportnative.h:17
MythUIButton
A single button widget.
Definition: mythuibutton.h:22
ExportNative::m_cancelButton
MythUIButton * m_cancelButton
Definition: exportnative.h:84
filename
QString filename
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:634
ExportNative::m_saveFilename
QString m_saveFilename
Definition: exportnative.h:79
ExportNative::m_bCreateISO
bool m_bCreateISO
Definition: exportnative.h:76
ExportNative::m_freespaceText
MythUIText * m_freespaceText
Definition: exportnative.h:87
ExportNative::m_prevButton
MythUIButton * m_prevButton
Definition: exportnative.h:83
ExportNative::m_currsizeText
MythUIText * m_currsizeText
Definition: exportnative.h:95
ExportNative::handleNextPage
void handleNextPage(void)
Definition: exportnative.cpp:193
ExportNative::m_minsizeText
MythUIText * m_minsizeText
Definition: exportnative.h:94
ExportNative::m_bDoBurn
bool m_bDoBurn
Definition: exportnative.h:77
uint
unsigned int uint
Definition: compat.h:140
ExportNative::Create
bool Create(void) override
Definition: exportnative.cpp:44
ExportNative::ShowMenu
void ShowMenu(void) override
Definition: exportnative.cpp:338
ExportNative::m_filesizeText
MythUIText * m_filesizeText
Definition: exportnative.h:91
ExportNative::m_archiveList
QList< ArchiveItem * > m_archiveList
Definition: exportnative.h:74
ExportNative::m_addvideoButton
MythUIButton * m_addvideoButton
Definition: exportnative.h:86
RT_FILE
@ RT_FILE
Definition: exportnative.h:20
ExportNative::m_previousScreen
MythScreenType * m_previousScreen
Definition: exportnative.h:69
RT_RECORDING
@ RT_RECORDING
Definition: exportnative.h:18
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:29
ExportNative::runScript
void runScript()
Definition: exportnative.cpp:418
ExportNative::getArchiveListFromDB
void getArchiveListFromDB(void)
Definition: exportnative.cpp:246
ExportNative::m_currsizeErrText
MythUIText * m_currsizeErrText
Definition: exportnative.h:96
ExportNative::loadConfiguration
void loadConfiguration(void)
Definition: exportnative.cpp:288
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:144
ExportNative::m_archiveButtonList
MythUIButtonList * m_archiveButtonList
Definition: exportnative.h:81
ExportNative::selectorClosed
void selectorClosed(bool ok)
Definition: exportnative.cpp:462
ExportNative::removeItem
void removeItem(void)
Definition: exportnative.cpp:352
mythscreentype.h