Chris@180: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@180: Chris@180: /* Chris@180: Sonic Visualiser Chris@180: An audio file viewer and annotation editor. Chris@180: Centre for Digital Music, Queen Mary, University of London. Chris@180: Chris@180: This program is free software; you can redistribute it and/or Chris@180: modify it under the terms of the GNU General Public License as Chris@180: published by the Free Software Foundation; either version 2 of the Chris@180: License, or (at your option) any later version. See the file Chris@180: COPYING included with this distribution for more information. Chris@180: */ Chris@180: Chris@180: /* Chris@180: This is a modified version of a source file from the Chris@180: Rosegarden MIDI and audio sequencer and notation editor. Chris@180: This file copyright 2000-2009 Chris Cannam. Chris@180: */ Chris@180: Chris@180: #ifndef _VERSION_TESTER_H_ Chris@180: #define _VERSION_TESTER_H_ Chris@180: Chris@180: #include Chris@180: #include Chris@180: #include Chris@180: Chris@180: class QHttpResponseHeader; Chris@180: Chris@180: class VersionTester : public QObject Chris@180: { Chris@180: Q_OBJECT Chris@180: Chris@180: public: Chris@180: VersionTester(QString hostname, QString versionFilePath, QString myVersion); Chris@180: virtual ~VersionTester(); Chris@180: Chris@180: static bool isVersionNewerThan(QString, QString); Chris@180: Chris@180: signals: Chris@180: void newerVersionAvailable(QString); Chris@180: Chris@180: protected slots: Chris@180: void httpResponseHeaderReceived(const QHttpResponseHeader &); Chris@180: void httpDone(bool); Chris@180: Chris@180: private: Chris@180: bool m_httpFailed; Chris@180: QString m_myVersion; Chris@180: }; Chris@180: Chris@180: #endif Chris@180: