-
Notifications
You must be signed in to change notification settings - Fork 2
/
update698.h
48 lines (38 loc) · 915 Bytes
/
update698.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
47
48
#ifndef UPDATE698_H
#define UPDATE698_H
#include "libproto/lib698/lib698obj.h"
#include "libdb/libdb.h"
#include "libnet/libnet.h"
#include <QMainWindow>
#include <QString>
#include <QFile>
#include <QByteArray>
#include <QList>
#include <QSettings>
namespace Ui {
class update698;
}
class update698 : public QMainWindow
{
Q_OBJECT
public:
explicit update698(QWidget *parent = 0);
~update698();
private:
Ui::update698 *ui;
QList<QByteArray> m_blockList;
QByteArray m_fileblock; //whole file bytes
int m_filesize; //whole file length
int m_oneBlockSize; //size of per file block
int m_blockCount; //counts of update file
QSettings* m_settings;
lib698Obj* m_lib698Obj;
sqliteDb* m_db;
netSvr *m_netSvr;
private slots:
void browse();
void calcBlocks();
void on_btn_exit_clicked(bool);
void btnToggle(int);
};
#endif // UPDATE698_H