annotate src/versiontester.h @ 598:5bf32465213c

Add script to pull out an i386-only build from the standard universal build -- it seems 10.5 users are getting the x86 one and it isn't working for them
author Chris Cannam
date Tue, 24 Apr 2012 16:55:26 +0100
parents 533519ebc0cb
children ae67ea0af696
rev   line source
Chris@491 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@491 2
Chris@491 3 /*
Chris@491 4 EasyMercurial
Chris@491 5
Chris@491 6 Based on hgExplorer by Jari Korhonen
Chris@491 7 Copyright (c) 2010 Jari Korhonen
Chris@560 8 Copyright (c) 2012 Chris Cannam
Chris@560 9 Copyright (c) 2012 Queen Mary, University of London
Chris@491 10
Chris@491 11 This program is free software; you can redistribute it and/or
Chris@491 12 modify it under the terms of the GNU General Public License as
Chris@491 13 published by the Free Software Foundation; either version 2 of the
Chris@491 14 License, or (at your option) any later version. See the file
Chris@491 15 COPYING included with this distribution for more information.
Chris@491 16 */
Chris@491 17
Chris@491 18 #ifndef _VERSION_TESTER_H_
Chris@491 19 #define _VERSION_TESTER_H_
Chris@491 20
Chris@491 21 #include <QStringList>
Chris@491 22 #include <QString>
Chris@491 23 #include <QObject>
Chris@491 24
Chris@491 25 class QHttpResponseHeader;
Chris@491 26
Chris@491 27 class VersionTester : public QObject
Chris@491 28 {
Chris@491 29 Q_OBJECT
Chris@491 30
Chris@491 31 public:
Chris@491 32 VersionTester(QString hostname, QString versionFilePath, QString myVersion);
Chris@491 33 virtual ~VersionTester();
Chris@491 34
Chris@491 35 static bool isVersionNewerThan(QString, QString);
Chris@491 36
Chris@491 37 signals:
Chris@491 38 void newerVersionAvailable(QString);
Chris@491 39
Chris@491 40 protected slots:
Chris@491 41 void httpResponseHeaderReceived(const QHttpResponseHeader &);
Chris@491 42 void httpDone(bool);
Chris@491 43
Chris@491 44 private:
Chris@491 45 bool m_httpFailed;
Chris@491 46 QString m_myVersion;
Chris@491 47 };
Chris@491 48
Chris@491 49 #endif
Chris@491 50