diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-12-26 19:51:47 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-12-26 19:51:47 -0500 |
| commit | 3eb64c32e8643a34ce2de07bdb0f2fae2869b69a (patch) | |
| tree | a062ec424f37f1cab388b14ac28733219fe8e1f3 /src/downloadstab.h | |
| parent | 2b2bb69351328a93a29ae084d6391ffa347be47f (diff) | |
split downloads tab
Diffstat (limited to 'src/downloadstab.h')
| -rw-r--r-- | src/downloadstab.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/downloadstab.h b/src/downloadstab.h new file mode 100644 index 00000000..3ccdf5f4 --- /dev/null +++ b/src/downloadstab.h @@ -0,0 +1,34 @@ +#ifndef MODORGANIZER_DOWNLOADTAB_INCLUDED +#define MODORGANIZER_DOWNLOADTAB_INCLUDED + +namespace Ui { class MainWindow; } +class OrganizerCore; +class DownloadListWidget; + +class DownloadsTab : public QObject +{ + Q_OBJECT; + +public: + DownloadsTab(OrganizerCore& core, Ui::MainWindow* ui); + + void update(); + +private: + struct DownloadsTabUi + { + QPushButton* refresh; + DownloadListWidget* list; + QCheckBox* showHidden; + QLineEdit* filter; + }; + + OrganizerCore& m_core; + DownloadsTabUi ui; + + void refresh(); + void downloadFilterChanged(const QString &filter); + void resumeDownload(int downloadIndex); +}; + +#endif // MODORGANIZER_DOWNLOADTAB_INCLUDED |
