blob: 158336559e053b96a1bcf216f79b705fe3d534a0 (
plain)
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
62
63
|
#ifndef _SISFILEHEADER_H
#define _SISFILEHEADER_H
#include "sistypes.h"
/**
* The first part of a SIS file.
*/
class SISFileHeader
{
public:
/**
* Populate the fields.
*/
void fillFrom(uchar* buf, int* base);
enum FileOptions {
op_isUnicode = 1,
op_isDistributable = 2,
#ifdef EPOC6
op_noCompress = 8,
op_shutdownApps = 16,
#endif
};
enum FileType {
FT_App = 0,
#ifdef EPOC6
FT_System = 1,
FT_Option = 2,
FT_Config = 3,
FT_Patch = 4,
FT_Upgrade = 5,
#endif
};
uint32 m_uid1;
uint32 m_uid2;
uint32 m_uid3;
uint32 m_uid4;
uint16 m_crc;
uint16 m_nlangs;
uint16 m_nfiles;
uint16 m_nreqs;
uint16 m_installationLanguage;
uint16 m_installationFiles;
uint32 m_installationDrive;
uint32 m_installerVersion;
uint16 m_options;
uint16 m_type;
uint16 m_major;
uint16 m_minor;
uint32 m_variant;
uint32 m_languagePtr;
uint32 m_filesPtr;
uint32 m_reqPtr;
uint32 m_unknown;
uint32 m_componentPtr;
};
#endif
|