annotate framework/VersionTester.h @ 723:2915cc467ebf spectrogram-export

Debug tweak
author Chris Cannam
date Wed, 08 Jan 2020 15:29:35 +0000
parents 26a0cb8335e3
children
rev   line source
Chris@180 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@180 2
Chris@180 3 /*
Chris@180 4 Sonic Visualiser
Chris@180 5 An audio file viewer and annotation editor.
Chris@180 6 Centre for Digital Music, Queen Mary, University of London.
Chris@180 7
Chris@180 8 This program is free software; you can redistribute it and/or
Chris@180 9 modify it under the terms of the GNU General Public License as
Chris@180 10 published by the Free Software Foundation; either version 2 of the
Chris@180 11 License, or (at your option) any later version. See the file
Chris@180 12 COPYING included with this distribution for more information.
Chris@180 13 */
Chris@180 14
Chris@180 15 /*
Chris@180 16 This is a modified version of a source file from the
Chris@180 17 Rosegarden MIDI and audio sequencer and notation editor.
Chris@180 18 This file copyright 2000-2009 Chris Cannam.
Chris@180 19 */
Chris@180 20
Chris@635 21 #ifndef SV_VERSION_TESTER_H
Chris@635 22 #define SV_VERSION_TESTER_H
Chris@180 23
Chris@180 24 #include <QStringList>
Chris@180 25 #include <QString>
Chris@180 26 #include <QObject>
Chris@263 27 #include <QNetworkReply>
Chris@180 28
Chris@287 29 class QNetworkAccessManager;
Chris@287 30
Chris@180 31 class VersionTester : public QObject
Chris@180 32 {
Chris@180 33 Q_OBJECT
Chris@180 34
Chris@180 35 public:
Chris@180 36 VersionTester(QString hostname, QString versionFilePath, QString myVersion);
Chris@180 37 virtual ~VersionTester();
Chris@180 38
Chris@180 39 static bool isVersionNewerThan(QString, QString);
Chris@180 40
Chris@180 41 signals:
Chris@180 42 void newerVersionAvailable(QString);
Chris@180 43
Chris@180 44 protected slots:
Chris@263 45 void finished();
Chris@263 46 void error(QNetworkReply::NetworkError);
Chris@180 47
Chris@180 48 private:
Chris@263 49 QString m_myVersion;
Chris@263 50 QNetworkReply *m_reply;
Chris@180 51 bool m_httpFailed;
Chris@287 52 QNetworkAccessManager *m_nm;
Chris@180 53 };
Chris@180 54
Chris@180 55 #endif
Chris@180 56