Mercurial > hg > sonic-visualiser
diff main/Surveyer.h @ 2535:62b1a3a242ee
Towards reusing the survey logic for a request for info & guidance
author | Chris Cannam |
---|---|
date | Tue, 12 May 2020 17:41:54 +0100 |
parents | 55efa5a18814 |
children |
line wrap: on
line diff
--- a/main/Surveyer.h Mon May 11 17:30:51 2020 +0100 +++ b/main/Surveyer.h Tue May 12 17:41:54 2020 +0100 @@ -27,7 +27,20 @@ Q_OBJECT public: - Surveyer(QString hostname, QString testPath, QString surveyPath); + struct Config { + QString hostname; + QString testPath; + QString surveyPath; + QString countdownKey; + int countdownFrom; + QString title; + QString text; + QString acceptLabel; + QString rejectLabel; + bool includeSystemInfo; + }; + + Surveyer(Config config); virtual ~Surveyer(); protected slots: @@ -35,10 +48,8 @@ void error(QNetworkReply::NetworkError); private: + Config m_config; bool m_httpFailed; - QString m_hostname; - QString m_testPath; - QString m_surveyPath; QNetworkReply *m_reply; QNetworkAccessManager *m_nm; };