-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdater.h
More file actions
61 lines (50 loc) · 1.16 KB
/
Copy pathupdater.h
File metadata and controls
61 lines (50 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* This software is a part to the amonsoft solution
*
* Copyright Amon & Sesam Micro
* Developper contact pascal.bart@sesam-micro.Fr
*
* $Id: updater.h,v 1.1 2006/08/27 15:42:00 pascal Exp $
* $Log: updater.h,v $
* Revision 1.1 2006/08/27 15:42:00 pascal
* - Système de mise à jour automatique
*
*/
#ifndef _UPDATER_H_
# define _UPDATER_H_
#include <qobject.h>
#include <qstring.h>
#include <qhttp.h>
#include <qfile.h>
#include <qnetworkprotocol.h>
# define URL_UPDATE "otsbn.dnsalias.net"
/*
* CUpdater
* Check for available update on the Internet
* Install update
*/
class CUpdater : public QObject
{
Q_OBJECT
public:
// Constructor
CUpdater( QWidget& );
// Destructor
~CUpdater();
public:
// Check version
void updateAvailable();
private:
// Download Update
void downloadUpdate( QString sVersion );
// Diff version
int diffVersion( QString sCurrent, QString sNet );
private slots:
void done( bool done );
private:
QHttp url_;
QWidget &main_;
ushort state_;
QFile *file_;
};
#endif /* _UPDATER_H_ */