Chris@662: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@662: Chris@662: /* Chris@662: Sonic Visualiser Chris@662: An audio file viewer and annotation editor. Chris@662: Centre for Digital Music, Queen Mary, University of London. Chris@662: Chris@662: This program is free software; you can redistribute it and/or Chris@662: modify it under the terms of the GNU General Public License as Chris@662: published by the Free Software Foundation; either version 2 of the Chris@662: License, or (at your option) any later version. See the file Chris@662: COPYING included with this distribution for more information. Chris@662: */ Chris@662: Chris@662: #ifndef _SURVEYER_H_ Chris@662: #define _SURVEYER_H_ Chris@662: Chris@662: #include Chris@662: #include Chris@662: #include Chris@662: #include Chris@662: Chris@662: class QNetworkAccessManager; Chris@662: Chris@662: class Surveyer : public QObject Chris@662: { Chris@662: Q_OBJECT Chris@662: Chris@662: public: Chris@662: Surveyer(QString hostname, QString testPath, QString surveyPath); Chris@662: virtual ~Surveyer(); Chris@662: Chris@662: protected slots: Chris@662: void finished(); Chris@662: void error(QNetworkReply::NetworkError); Chris@662: Chris@662: private: Chris@662: bool m_httpFailed; Chris@662: QString m_hostname; Chris@662: QString m_testPath; Chris@662: QString m_surveyPath; Chris@662: QNetworkReply *m_reply; Chris@662: QNetworkAccessManager *m_nm; Chris@662: }; Chris@662: Chris@662: #endif Chris@662: