~ubuntu-branches/ubuntu/vivid/unrar-nonfree/vivid

« back to all changes in this revision

Viewing changes to extract.hpp

  • Committer: Package Import Robot
  • Author(s): Martin Meredith
  • Date: 2015-02-03 12:58:01 UTC
  • mfrom: (1.1.18) (5.1.18 sid)
  • Revision ID: package-import@ubuntu.com-20150203125801-od6ev8cqy1er51vz
Tags: 1:5.2.5-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
class CmdExtract
7
7
{
8
8
  private:
9
 
    EXTRACT_ARC_CODE ExtractArchive(CommandData *Cmd);
 
9
    EXTRACT_ARC_CODE ExtractArchive();
10
10
    bool ExtractFileCopy(File &New,wchar *ArcName,wchar *NameNew,wchar *NameExisting,size_t NameExistingSize);
11
 
    void ExtrPrepareName(CommandData *Cmd,Archive &Arc,const wchar *ArcFileName,wchar *DestName,size_t DestSize);
 
11
    void ExtrPrepareName(Archive &Arc,const wchar *ArcFileName,wchar *DestName,size_t DestSize);
12
12
#ifdef RARDLL
13
 
    bool ExtrDllGetPassword(CommandData *Cmd);
 
13
    bool ExtrDllGetPassword();
14
14
#else
15
 
    bool ExtrGetPassword(CommandData *Cmd,Archive &Arc,const wchar *ArcFileName);
 
15
    bool ExtrGetPassword(Archive &Arc,const wchar *ArcFileName);
16
16
#endif
17
17
#if defined(_WIN_ALL) && !defined(SFX_MODULE)
18
18
    void ConvertDosPassword(Archive &Arc,SecPassword &DestPwd);
19
19
#endif
20
 
    void ExtrCreateDir(CommandData *Cmd,Archive &Arc,const wchar *ArcFileName);
21
 
    bool ExtrCreateFile(CommandData *Cmd,Archive &Arc,File &CurFile);
 
20
    void ExtrCreateDir(Archive &Arc,const wchar *ArcFileName);
 
21
    bool ExtrCreateFile(Archive &Arc,File &CurFile);
22
22
    bool CheckUnpVer(Archive &Arc,const wchar *ArcFileName);
23
23
 
24
24
    RarTime StartTime; // time when extraction started
25
25
 
 
26
    CommandData *Cmd;
 
27
 
26
28
    ComprDataIO DataIO;
27
29
    Unpack *Unp;
28
30
    unsigned long TotalFileCount;
41
43
 
42
44
    wchar ArcName[NM];
43
45
 
44
 
    SecPassword Password;
45
46
    bool PasswordAll;
46
47
    bool PrevExtracted;
47
48
    wchar DestFileName[NM];
48
49
    bool PasswordCancelled;
 
50
#if defined(_WIN_ALL) && !defined(SFX_MODULE) && !defined(SILENT)
 
51
    bool Fat32,NotFat32;
 
52
#endif
49
53
  public:
50
54
    CmdExtract(CommandData *Cmd);
51
55
    ~CmdExtract();
52
 
    void DoExtract(CommandData *Cmd);
53
 
    void ExtractArchiveInit(CommandData *Cmd,Archive &Arc);
54
 
    bool ExtractCurrentFile(CommandData *Cmd,Archive &Arc,size_t HeaderSize,
55
 
                            bool &Repeat);
 
56
    void DoExtract();
 
57
    void ExtractArchiveInit(Archive &Arc);
 
58
    bool ExtractCurrentFile(Archive &Arc,size_t HeaderSize,bool &Repeat);
56
59
    static void UnstoreFile(ComprDataIO &DataIO,int64 DestUnpSize);
57
60
};
58
61