diff options
| author | hibby <d@vehibberd.com> | 2018-02-16 15:18:44 +0000 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2018-02-16 15:18:44 +0000 |
| commit | 368f5331a7641772aa7e0cd1feea57d09a394a36 (patch) | |
| tree | b421ac60cc6eb726896ea268ea24e47fc4ce7c88 /SampleDownloader.hpp | |
| parent | 71c717edc92fa771c857b3c2e5ed65f523f68f90 (diff) | |
| parent | 37f727ac0746fd85504aa46c1f023c09b3eff33a (diff) | |
Update upstream source from tag 'upstream/1.8.0+repack'
Update to upstream version '1.8.0+repack'
with Debian dir a83ef78cb70a32d1211871fdc08f3ffa295e45a8
Diffstat (limited to 'SampleDownloader.hpp')
| -rw-r--r-- | SampleDownloader.hpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/SampleDownloader.hpp b/SampleDownloader.hpp new file mode 100644 index 00000000..0dfa05be --- /dev/null +++ b/SampleDownloader.hpp @@ -0,0 +1,50 @@ +#ifndef SAMPLE_DOWNLOADER_HPP__ +#define SAMPLE_DOWNLOADER_HPP__ + +#include <QObject> + +#include "pimpl_h.hpp" + +class QSettings; +class QWidget; +class QNetworkAccessManager; +class Configuration; + +// +// SampleDownloader - A Dialog to maintain sample files +// +// This uses a Qt Dialog window that contains a tree view of the +// available sample files on a web or ftp server. The files can be +// installed locally by ticking a check box or removed from the local +// machine by un-ticking the check boxes. +// +// The class requires a pointer to an open QSettings instance where it +// will save its persistent state, a pointer to a WSJT-X Configuration +// instance that is used to obtain configuration information like the +// current file save location and, a pointer to a +// QNetworkAccessManager instance which is used for network requests. +// +// An instance of SampleDownloader need not be destroyed after use, +// just call SampleDownloader::show() to make the dialog visible +// again. +// +class SampleDownloader final + : public QObject +{ + Q_OBJECT; + +public: + SampleDownloader (QSettings * settings + , Configuration const * + , QNetworkAccessManager * + , QWidget * parent = nullptr); + ~SampleDownloader (); + + Q_SLOT void show (); + +private: + class impl; + pimpl<impl> m_; +}; + +#endif |
