8 #include "threads/Event.h"
10 class CGUIDialogProgress;
15 void ShowUnpRead(Int64 ArcPos,Int64 ArcSize);
19 bool UnpackFromMemory;
20 uint UnpackFromMemorySize;
21 byte *UnpackFromMemoryAddr;
24 //uint UnpackToMemorySize;
25 byte *UnpackToMemoryAddr;
57 int UnpRead(byte *Addr,uint Count);
58 void UnpWrite(byte *Addr,uint Count);
59 void EnableShowProgress(bool Show) {ShowProgress=Show;}
60 void GetUnpackedData(byte **Data,uint *Size);
61 void SetPackedSizeToRead(Int64 Size) {UnpPackedSize=Size;}
62 void SetTestMode(bool Mode) {TestMode=Mode;}
63 void SetSkipUnpCRC(bool Skip) {SkipUnpCRC=Skip;}
64 void SetFiles(File *SrcFile,File *DestFile);
65 void SetCommand(CmdAdd *Cmd) {Command=Cmd;}
66 void SetSubHeader(FileHeader *hd,Int64 *Pos) {SubHead=hd;SubHeadPos=Pos;}
67 void SetEncryption(int Method,char *Password,byte *Salt,bool Encrypt);
68 void SetAV15Encryption();
69 void SetCmt13Encryption();
70 void SetUnpackToMemory(byte *Addr,uint Size);
71 void SetCurrentCommand(char Cmd) {CurrentCommand=Cmd;}
75 bool NextVolumeMissing;
78 Int64 CurPackRead,CurPackWrite,CurUnpRead,CurUnpWrite;
79 Int64 ProcessedArcSize,TotalArcSize;
81 uint PackFileCRC,UnpFileCRC,PackedCRC;
85 int UnpackToMemorySize;
88 CEvent* hBufferFilled;
93 CGUIDialogProgress* m_pDlgProgress;
96 Int64 m_iStartOfBuffer;