blob: 47bcf5f05775d2170c37c5edb83bf3fb9f7de561 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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(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
|