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 {
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, QString name)
37  : MythScreenType(parent, name),
38  m_previousScreen(previousScreen),
39  m_archiveDestination(archiveDestination) {}
40  ~ExportNative(void);
41 
42  bool Create(void) override; // MythScreenType
43  bool keyPressEvent(QKeyEvent *) 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
void loadConfiguration(void)
void handleNextPage(void)
void handleAddRecording(void)
unsigned int slots[4]
Definition: element.c:38
void titleChanged(MythUIButtonListItem *item)
void getArchiveListFromDB(void)
~ExportNative(void)
void saveConfiguration(void)
MythUIButton * m_addrecordingButton
Definition: exportnative.h:85
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
ExportNative(MythScreenStack *parent, MythScreenType *previousScreen, ArchiveDestination archiveDestination, QString name)
Definition: exportnative.h:35
MythUIText * m_freespaceText
Definition: exportnative.h:87
MythUIText * m_datetimeText
Definition: exportnative.h:89
void handleAddVideo(void)
void handleCancel(void)
void updateArchiveList(void)
unsigned int uint
Definition: compat.h:140
MythUIText * m_titleText
Definition: exportnative.h:88
uint m_usedSpace
Definition: exportnative.h:72
void handlePrevPage(void)
MythUIText * m_currsizeText
Definition: exportnative.h:95
void updateSizeBar(void)
MythUIButtonList * m_archiveButtonList
Definition: exportnative.h:81
MythUIButton * m_addvideoButton
Definition: exportnative.h:86
bool m_bCreateISO
Definition: exportnative.h:76
ArchiveDestination m_archiveDestination
Definition: exportnative.h:71
bool m_bEraseDvdRw
Definition: exportnative.h:78
MythUIText * m_nofilesText
Definition: exportnative.h:92
MythScreenType * m_previousScreen
Definition: exportnative.h:69
void selectorClosed(bool ok)
void createConfigFile(const QString &filename)
MythUIButton * m_nextButton
Definition: exportnative.h:82
const char * name
Definition: ParseText.cpp:328
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
A single button widget.
Definition: mythuibutton.h:21
MythUIButton * m_cancelButton
Definition: exportnative.h:84
MythUIText * m_currsizeErrText
Definition: exportnative.h:96
QString m_saveFilename
Definition: exportnative.h:79
void removeItem(void)
void ShowMenu(void) override
MythUIText * m_filesizeText
Definition: exportnative.h:91
NativeItemType
Definition: exportnative.h:16
MythUIButton * m_prevButton
Definition: exportnative.h:83
MythUIProgressBar * m_sizeBar
Definition: exportnative.h:97
bool Create(void) override
Screen in which all other widgets are contained and rendered.
void getArchiveList(void)
Progress bar widget.
MythUIText * m_maxsizeText
Definition: exportnative.h:93
MythUIText * m_minsizeText
Definition: exportnative.h:94
MythUIText * m_descriptionText
Definition: exportnative.h:90
QList< ArchiveItem * > m_archiveList
Definition: exportnative.h:74
bool keyPressEvent(QKeyEvent *) override
Key event handler.