diff options
Diffstat (limited to 'Network/eqsl.h')
| -rw-r--r-- | Network/eqsl.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Network/eqsl.h b/Network/eqsl.h new file mode 100644 index 00000000..00eb51d8 --- /dev/null +++ b/Network/eqsl.h @@ -0,0 +1,43 @@ +#ifndef EQSL_H +#define EQSL_H + +#include <QObject> +#include <QString> +//#include <QList> +//#include <QHash> +//#include <QQueue> +#include "Radio.hpp" + + +class QNetworkAccessManager; +class QTimer; +class QNetworkReply; + +class EQSL : public QObject +{ + Q_OBJECT; + +public: + explicit EQSL(QNetworkAccessManager *, QObject *parent = nullptr); + void upload(QString const& eqsl_username, QString const& eqsl_passwd, QString const& eqsl_nickname + , QString const& call, QString const& mode + , QDateTime const& QSO_date_on + , QString const& rpt_sent, QString const& band + , QString const& eqslcomments); + +//signals: +// void uploadStatus(QString); + +public slots: + void networkReply(QNetworkReply *); + void work(); + +private: + QNetworkAccessManager *networkManager; + QString myadif; + QTimer *uploadTimer; + QNetworkReply *reply; + bool m_in_progress; +}; + +#endif // EQSL_H |
