annotate main/Surveyer.h @ 662:6f06094daba0

Restore and update old Surveyer class (survey itself is not there yet)
author Chris Cannam
date Tue, 26 Nov 2013 11:41:12 +0000
parents
children 55efa5a18814
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 /*
Chris@662 16 This is a modified version of a source file from the
Chris@662 17 Rosegarden MIDI and audio sequencer and notation editor.
Chris@662 18 This file copyright 2000-2009 Chris Cannam.
Chris@662 19 */
Chris@662 20
Chris@662 21 #ifndef _SURVEYER_H_
Chris@662 22 #define _SURVEYER_H_
Chris@662 23
Chris@662 24 #include <QStringList>
Chris@662 25 #include <QString>
Chris@662 26 #include <QObject>
Chris@662 27 #include <QNetworkReply>
Chris@662 28
Chris@662 29 class QNetworkAccessManager;
Chris@662 30
Chris@662 31 class Surveyer : public QObject
Chris@662 32 {
Chris@662 33 Q_OBJECT
Chris@662 34
Chris@662 35 public:
Chris@662 36 Surveyer(QString hostname, QString testPath, QString surveyPath);
Chris@662 37 virtual ~Surveyer();
Chris@662 38
Chris@662 39 protected slots:
Chris@662 40 void finished();
Chris@662 41 void error(QNetworkReply::NetworkError);
Chris@662 42
Chris@662 43 private:
Chris@662 44 bool m_httpFailed;
Chris@662 45 QString m_hostname;
Chris@662 46 QString m_testPath;
Chris@662 47 QString m_surveyPath;
Chris@662 48 QNetworkReply *m_reply;
Chris@662 49 QNetworkAccessManager *m_nm;
Chris@662 50 };
Chris@662 51
Chris@662 52 #endif
Chris@662 53