annotate framework/VersionTester.h @ 270:776e1aae635a tonioni

fixed flexi note layer and propagated model selection to analyser
author gyorgyf
date Sat, 13 Apr 2013 13:39:17 +0100
parents 84b2c1a4984a
children 3c236d31cccd
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@180 21 #ifndef _VERSION_TESTER_H_
Chris@180 22 #define _VERSION_TESTER_H_
Chris@180 23
Chris@180 24 #include <QStringList>
Chris@180 25 #include <QString>
Chris@180 26 #include <QObject>
Chris@180 27
Chris@180 28 class QHttpResponseHeader;
Chris@180 29
Chris@180 30 class VersionTester : public QObject
Chris@180 31 {
Chris@180 32 Q_OBJECT
Chris@180 33
Chris@180 34 public:
Chris@180 35 VersionTester(QString hostname, QString versionFilePath, QString myVersion);
Chris@180 36 virtual ~VersionTester();
Chris@180 37
Chris@180 38 static bool isVersionNewerThan(QString, QString);
Chris@180 39
Chris@180 40 signals:
Chris@180 41 void newerVersionAvailable(QString);
Chris@180 42
Chris@180 43 protected slots:
Chris@180 44 void httpResponseHeaderReceived(const QHttpResponseHeader &);
Chris@180 45 void httpDone(bool);
Chris@180 46
Chris@180 47 private:
Chris@180 48 bool m_httpFailed;
Chris@180 49 QString m_myVersion;
Chris@180 50 };
Chris@180 51
Chris@180 52 #endif
Chris@180 53