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
12
13// mytharchive
14#include "archiveutil.h"
15
16enum NativeItemType : std::uint8_t
17{
21};
22
23class MythUIText;
24class MythUIButton;
28
30{
31
32 Q_OBJECT
33
34 public:
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};
80
98};
99
100#endif
ExportNative(MythScreenStack *parent, MythScreenType *previousScreen, ArchiveDestination &archiveDestination, const QString &name)
Definition: exportnative.h:35
void handleNextPage(void)
void loadConfiguration(void)
bool m_bCreateISO
Definition: exportnative.h:76
MythUIText * m_descriptionText
Definition: exportnative.h:90
MythScreenType * m_previousScreen
Definition: exportnative.h:69
~ExportNative(void) override
void removeItem(void)
void getArchiveList(void)
bool Create(void) override
void handlePrevPage(void)
MythUIButtonList * m_archiveButtonList
Definition: exportnative.h:81
void createConfigFile(const QString &filename)
void titleChanged(MythUIButtonListItem *item)
void handleAddRecording(void)
void ShowMenu(void) override
MythUIButton * m_nextButton
Definition: exportnative.h:82
MythUIText * m_currsizeText
Definition: exportnative.h:95
void updateArchiveList(void)
MythUIText * m_currsizeErrText
Definition: exportnative.h:96
uint m_usedSpace
Definition: exportnative.h:72
QList< ArchiveItem * > m_archiveList
Definition: exportnative.h:74
MythUIText * m_freespaceText
Definition: exportnative.h:87
MythUIButton * m_cancelButton
Definition: exportnative.h:84
MythUIButton * m_addrecordingButton
Definition: exportnative.h:85
MythUIText * m_datetimeText
Definition: exportnative.h:89
MythUIText * m_filesizeText
Definition: exportnative.h:91
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythUIButton * m_prevButton
Definition: exportnative.h:83
void selectorClosed(bool ok)
void getArchiveListFromDB(void)
ArchiveDestination m_archiveDestination
Definition: exportnative.h:71
void saveConfiguration(void)
void handleAddVideo(void)
void updateSizeBar(void)
MythUIButton * m_addvideoButton
Definition: exportnative.h:86
MythUIProgressBar * m_sizeBar
Definition: exportnative.h:97
MythUIText * m_nofilesText
Definition: exportnative.h:92
void handleCancel(void)
QString m_saveFilename
Definition: exportnative.h:79
bool m_bEraseDvdRw
Definition: exportnative.h:78
MythUIText * m_maxsizeText
Definition: exportnative.h:93
MythUIText * m_titleText
Definition: exportnative.h:88
MythUIText * m_minsizeText
Definition: exportnative.h:94
Screen in which all other widgets are contained and rendered.
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
A single button widget.
Definition: mythuibutton.h:22
Progress bar widget.
All purpose text widget, displays a text string.
Definition: mythuitext.h:29
NativeItemType
Definition: exportnative.h:17
@ RT_VIDEO
Definition: exportnative.h:19
@ RT_FILE
Definition: exportnative.h:20
@ RT_RECORDING
Definition: exportnative.h:18
unsigned int uint
Definition: freesurround.h:24