-
Notifications
You must be signed in to change notification settings - Fork 0
/
objfilerepair.h
46 lines (33 loc) · 1002 Bytes
/
objfilerepair.h
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
#ifndef OBJFILEREPAIR_H
#define OBJFILEREPAIR_H
#include <QObject>
#include <QList>
#include <filelistdownload.h>
#include "http.h"
class ObjFileRepair : public QObject
{
Q_OBJECT
public:
explicit ObjFileRepair(QObject *parent = 0);
~ObjFileRepair();
void deleteDownloadFile(int nIndex);
void init();
void timerEvent(QTimerEvent *event);
private:
QString getFileRepairUrl(QString strFile);
QString getDownloadFilePath(QString strName);
signals:
void sigDownloadFinished( FileListDownload* pDownload, bool bSuccess ); //下载完毕通知UI
void sigUpdateDownload( int nPercentage );
public slots:
void downloadFile( QString strFile );
void downloadFinished( QString strFile, bool bSuccess );
void CurrentDownloadFile( int nPercentage );
void openFile( int nIndex );
private:
QList<FileListDownload*> m_lstFiles;
Http* m_pHttp;
QString m_strFilePathRepair;
QString m_strFileDownloadName;
};
#endif // OBJFILEREPAIR_H