annotate src/versiontester.h @ 532:06507a59f2b8 easyhg_v1.1

This will do for the Merge topic
author Chris Cannam
date Wed, 23 Nov 2011 17:24:47 +0000
parents 1d90cd7a1c5f
children 533519ebc0cb
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@491 8 Copyright (c) 2011 Chris Cannam
Chris@491 9 Copyright (c) 2011 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