1 #ifndef QRZLOOKUP_H 2 #define QRZLOOKUP_H 3 4 #include <QNetworkAccessManager> 5 #include <QString> 6 #include <QHash> 7 8 9 10 11 class QRZLookup : public QObject 12 { 13 Q_OBJECT 14 15 public: 16 QRZLookup(QString un, QString pw); 17 void lookup(QString dxCall); 18 19 private: 20 QString _username; 21 QString _password; 22 QString _url = "https://xmldata.qrz.com/xml/"; 23 QString _sessionKey; 24 QNetworkAccessManager * _networkManager; 25 void initialize(); 26 void setSessionKey(QNetworkReply *r); 27 void parseResponse(QNetworkReply * r); 28 29 }; 30 31 #endif // QRZLOOKUP_H 32