Subversion Repositories Scribus

Rev

Rev 5855 | Rev 5923 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5855 cbradney 1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
#ifndef UPGRADECHECKER_H
8
#define UPGRADECHECKER_H
9
 
10
#include <qhttp.h>
11
#include <qobject.h>
12
#include <qstring.h>
13
#include <qstringlist.h>
14
 
15
/**
16
        @author Craig Bradney <cbradney@zip.com.au>
17
*/
18
class UpgradeChecker : public QObject
19
{
20
        Q_OBJECT
21
 
22
public:
23
        UpgradeChecker();
24
        ~UpgradeChecker();
25
 
26
        bool fetch();
5866 cbradney 27
        bool process(QFile& dataFile);
5855 cbradney 28
        void show(bool error);
29
        QStringList upgradeData();
30
 
31
public slots:
32
        void fileStarted(bool error);
33
        void fileFinished(bool error);
34
        void reqStarted(int id);
35
        void reqFinished(int id, bool error);
36
 
37
protected:
38
        QString version;
39
        QString stability;
40
        uint major, minor, revision1, revision2;
41
        bool isCVS;
42
        QString platform;
43
        QStringList updates;
44
        QString tempFile;
45
        bool fin;
46
        QHttp* getter;
47
        int getterID;
48
        bool retrieveError;
49
};
50
 
51
#endif