-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcffflashcontainer.h
45 lines (28 loc) · 897 Bytes
/
cffflashcontainer.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
#ifndef CFFFLASHCONTAINER_H
#define CFFFLASHCONTAINER_H
#include <QObject>
#include <QFile>
class CFFFlashHeader;
class CTFHeader;
class CFFFlashContainer : public QObject
{
Q_OBJECT
public:
explicit CFFFlashContainer(QObject *parent = nullptr);
Q_INVOKABLE static CFFFlashContainer * openCaesarFlashContainer(QString fname, QObject *parent = nullptr);
Q_INVOKABLE uint32_t readChecksum();
Q_INVOKABLE uint32_t genChecksum();
QByteArray readHeader();
QByteArray readCFFHeader();
Q_INVOKABLE CFFFlashHeader * readFlashCFF();
Q_INVOKABLE CTFHeader * readCTF();
signals:
private:
QFile * m_cff_file;
QByteArray m_cff_mem;
CFFFlashHeader * m_FlashHeader;
CTFHeader * m_CTFHeader;
const int StubHeaderSize = 0x410;
QString FileHeader = "CBF-TRANSLATOR-VERSION:04.00";
};
#endif // CFFFLASHCONTAINER_H