annotate main/Surveyer.h @ 1324:b5bce5d34927 piper

Avoid assigning model resolution of 0 to models coming from plugins that report weirdly high output rates (symptom: data did not show up in edit layer data dialog, as the row/frame conversion failed)
author Chris Cannam
date Sat, 05 Nov 2016 10:40:22 +0000
parents 55efa5a18814
children 62b1a3a242ee
rev   line source
Chris@662 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@662 2
Chris@662 3 /*
Chris@662 4 Sonic Visualiser
Chris@662 5 An audio file viewer and annotation editor.
Chris@662 6 Centre for Digital Music, Queen Mary, University of London.
Chris@662 7
Chris@662 8 This program is free software; you can redistribute it and/or
Chris@662 9 modify it under the terms of the GNU General Public License as
Chris@662 10 published by the Free Software Foundation; either version 2 of the
Chris@662 11 License, or (at your option) any later version. See the file
Chris@662 12 COPYING included with this distribution for more information.
Chris@662 13 */
Chris@662 14
Chris@662 15 #ifndef _SURVEYER_H_
Chris@662 16 #define _SURVEYER_H_
Chris@662 17
Chris@662 18 #include <QStringList>
Chris@662 19 #include <QString>
Chris@662 20 #include <QObject>
Chris@662 21 #include <QNetworkReply>
Chris@662 22
Chris@662 23 class QNetworkAccessManager;
Chris@662 24
Chris@662 25 class Surveyer : public QObject
Chris@662 26 {
Chris@662 27 Q_OBJECT
Chris@662 28
Chris@662 29 public:
Chris@662 30 Surveyer(QString hostname, QString testPath, QString surveyPath);
Chris@662 31 virtual ~Surveyer();
Chris@662 32
Chris@662 33 protected slots:
Chris@662 34 void finished();
Chris@662 35 void error(QNetworkReply::NetworkError);
Chris@662 36
Chris@662 37 private:
Chris@662 38 bool m_httpFailed;
Chris@662 39 QString m_hostname;
Chris@662 40 QString m_testPath;
Chris@662 41 QString m_surveyPath;
Chris@662 42 QNetworkReply *m_reply;
Chris@662 43 QNetworkAccessManager *m_nm;
Chris@662 44 };
Chris@662 45
Chris@662 46 #endif
Chris@662 47