comparison main/Surveyer.h @ 677:bfd68cc71a25 imaf_enc

Merge from default branch, fix build
author Chris Cannam
date Thu, 05 Dec 2013 10:57:51 +0000
parents 55efa5a18814
children 62b1a3a242ee
comparison
equal deleted inserted replaced
676:dabe6e994a9c 677:bfd68cc71a25
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 Sonic Visualiser
5 An audio file viewer and annotation editor.
6 Centre for Digital Music, Queen Mary, University of London.
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version. See the file
12 COPYING included with this distribution for more information.
13 */
14
15 #ifndef _SURVEYER_H_
16 #define _SURVEYER_H_
17
18 #include <QStringList>
19 #include <QString>
20 #include <QObject>
21 #include <QNetworkReply>
22
23 class QNetworkAccessManager;
24
25 class Surveyer : public QObject
26 {
27 Q_OBJECT
28
29 public:
30 Surveyer(QString hostname, QString testPath, QString surveyPath);
31 virtual ~Surveyer();
32
33 protected slots:
34 void finished();
35 void error(QNetworkReply::NetworkError);
36
37 private:
38 bool m_httpFailed;
39 QString m_hostname;
40 QString m_testPath;
41 QString m_surveyPath;
42 QNetworkReply *m_reply;
43 QNetworkAccessManager *m_nm;
44 };
45
46 #endif
47