unrarsrc  6.1.7
About: unrar extracts, views and tests the contents of archives created with the RAR archiver.
  Fossies Dox: unrarsrc-6.1.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ui.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  uiMsgStore
 

Macros

#define UINULL   ((wchar *)NULL)
 

Enumerations

enum  UIMESSAGE_CODE {
  UIERROR_SYSERRMSG , UIERROR_GENERALERRMSG , UIERROR_INCERRCOUNT , UIERROR_CHECKSUM ,
  UIERROR_CHECKSUMENC , UIERROR_CHECKSUMPACKED , UIERROR_BADPSW , UIERROR_MEMORY ,
  UIERROR_FILEOPEN , UIERROR_FILECREATE , UIERROR_FILECLOSE , UIERROR_FILESEEK ,
  UIERROR_FILEREAD , UIERROR_FILEWRITE , UIERROR_FILEDELETE , UIERROR_RECYCLEFAILED ,
  UIERROR_FILERENAME , UIERROR_FILEATTR , UIERROR_FILECOPY , UIERROR_FILECOPYHINT ,
  UIERROR_DIRCREATE , UIERROR_SLINKCREATE , UIERROR_HLINKCREATE , UIERROR_NOLINKTARGET ,
  UIERROR_NEEDADMIN , UIERROR_ARCBROKEN , UIERROR_HEADERBROKEN , UIERROR_MHEADERBROKEN ,
  UIERROR_FHEADERBROKEN , UIERROR_SUBHEADERBROKEN , UIERROR_SUBHEADERUNKNOWN , UIERROR_SUBHEADERDATABROKEN ,
  UIERROR_RRDAMAGED , UIERROR_UNKNOWNMETHOD , UIERROR_UNKNOWNENCMETHOD , UIERROR_RENAMING ,
  UIERROR_NEWERRAR , UIERROR_NOTSFX , UIERROR_OLDTOSFX , UIERROR_WRONGSFXVER ,
  UIERROR_HEADENCMISMATCH , UIERROR_DICTOUTMEM , UIERROR_USESMALLERDICT , UIERROR_MODIFYUNKNOWN ,
  UIERROR_MODIFYOLD , UIERROR_MODIFYLOCKED , UIERROR_MODIFYVOLUME , UIERROR_NOTVOLUME ,
  UIERROR_NOTFIRSTVOLUME , UIERROR_RECVOLLIMIT , UIERROR_RECVOLDIFFSETS , UIERROR_RECVOLALLEXIST ,
  UIERROR_RECVOLFOUND , UIERROR_RECONSTRUCTING , UIERROR_RECVOLCANNOTFIX , UIERROR_OPFAILED ,
  UIERROR_UNEXPEOF , UIERROR_BADARCHIVE , UIERROR_CMTBROKEN , UIERROR_INVALIDNAME ,
  UIERROR_NEWRARFORMAT , UIERROR_NOTSUPPORTED , UIERROR_ENCRNOTSUPPORTED , UIERROR_RARZIPONLY ,
  UIERROR_REPAIROLDFORMAT , UIERROR_NOFILESREPAIRED , UIERROR_NOFILESTOADD , UIERROR_NOFILESTODELETE ,
  UIERROR_NOFILESTOEXTRACT , UIERROR_MISSINGVOL , UIERROR_NEEDPREVVOL , UIERROR_UNKNOWNEXTRA ,
  UIERROR_CORRUPTEXTRA , UIERROR_NTFSREQUIRED , UIERROR_ZIPVOLSFX , UIERROR_FILERO ,
  UIERROR_TOOLARGESFX , UIERROR_NOZIPSFX , UIERROR_EMAIL , UIERROR_ACLGET ,
  UIERROR_ACLBROKEN , UIERROR_ACLUNKNOWN , UIERROR_ACLSET , UIERROR_STREAMBROKEN ,
  UIERROR_STREAMUNKNOWN , UIERROR_INCOMPATSWITCH , UIERROR_PATHTOOLONG , UIERROR_DIRSCAN ,
  UIERROR_UOWNERGET , UIERROR_UOWNERBROKEN , UIERROR_UOWNERGETOWNERID , UIERROR_UOWNERGETGROUPID ,
  UIERROR_UOWNERSET , UIERROR_ULINKREAD , UIERROR_ULINKEXIST , UIERROR_OPENPRESERVEATIME ,
  UIERROR_READERRTRUNCATED , UIERROR_READERRCOUNT , UIERROR_DIRNAMEEXISTS , UIERROR_TRUNCPSW ,
  UIERROR_ADJUSTVALUE , UIMSG_FIRST , UIMSG_STRING , UIMSG_BUILD ,
  UIMSG_RRSEARCH , UIMSG_ANALYZEFILEDATA , UIMSG_RRFOUND , UIMSG_RRNOTFOUND ,
  UIMSG_RRDAMAGED , UIMSG_BLOCKSRECOVERED , UIMSG_COPYINGDATA , UIMSG_AREADAMAGED ,
  UIMSG_SECTORDAMAGED , UIMSG_SECTORRECOVERED , UIMSG_SECTORNOTRECOVERED , UIMSG_FOUND ,
  UIMSG_CORRECTINGNAME , UIMSG_BADARCHIVE , UIMSG_CREATING , UIMSG_RENAMING ,
  UIMSG_RECVOLCALCCHECKSUM , UIMSG_RECVOLFOUND , UIMSG_RECVOLMISSING , UIMSG_MISSINGVOL ,
  UIMSG_RECONSTRUCTING , UIMSG_CHECKSUM , UIMSG_FAT32SIZE , UIMSG_SKIPENCARC ,
  UIWAIT_FIRST , UIWAIT_DISKFULLNEXT , UIWAIT_FCREATEERROR , UIWAIT_BADPSW ,
  UIEVENT_FIRST , UIEVENT_SEARCHDUPFILESSTART , UIEVENT_SEARCHDUPFILESEND , UIEVENT_CLEARATTRSTART ,
  UIEVENT_CLEARATTRFILE , UIEVENT_DELADDEDSTART , UIEVENT_DELADDEDFILE , UIEVENT_FILESFOUND ,
  UIEVENT_ERASEDISK , UIEVENT_FILESUMSTART , UIEVENT_FILESUMPROGRESS , UIEVENT_FILESUMEND ,
  UIEVENT_PROTECTSTART , UIEVENT_PROTECTEND , UIEVENT_TESTADDEDSTART , UIEVENT_TESTADDEDEND ,
  UIEVENT_RRTESTINGSTART , UIEVENT_RRTESTINGEND , UIEVENT_NEWARCHIVE , UIEVENT_NEWREVFILE
}
 
enum  UIASKREP_FLAGS { UIASKREP_F_NORENAME =1 , UIASKREP_F_EXCHSRCDEST =2 , UIASKREP_F_SHOWNAMEONLY =4 }
 
enum  UIASKREP_RESULT {
  UIASKREP_R_REPLACE , UIASKREP_R_SKIP , UIASKREP_R_REPLACEALL , UIASKREP_R_SKIPALL ,
  UIASKREP_R_RENAME , UIASKREP_R_RENAMEAUTO , UIASKREP_R_CANCEL , UIASKREP_R_UNUSED
}
 
enum  UIPASSWORD_TYPE { UIPASSWORD_GLOBAL , UIPASSWORD_FILE , UIPASSWORD_ARCHIVE }
 
enum  UIALARM_TYPE { UIALARM_ERROR , UIALARM_INFO , UIALARM_QUESTION }
 

Functions

UIASKREP_RESULT uiAskReplace (wchar *Name, size_t MaxNameSize, int64 FileSize, RarTime *FileTime, uint Flags)
 
UIASKREP_RESULT uiAskReplaceEx (RAROptions *Cmd, wchar *Name, size_t MaxNameSize, int64 FileSize, RarTime *FileTime, uint Flags)
 
void uiInit (SOUND_NOTIFY_MODE Sound)
 
void uiStartArchiveExtract (bool Extract, const wchar *ArcName)
 
bool uiStartFileExtract (const wchar *FileName, bool Extract, bool Test, bool Skip)
 
void uiExtractProgress (int64 CurFileSize, int64 TotalFileSize, int64 CurSize, int64 TotalSize)
 
void uiProcessProgress (const char *Command, int64 CurSize, int64 TotalSize)
 
bool uiGetPassword (UIPASSWORD_TYPE Type, const wchar *FileName, SecPassword *Password)
 
bool uiIsGlobalPasswordSet ()
 
void uiAlarm (UIALARM_TYPE Type)
 
void uiEolAfterMsg ()
 
bool uiAskNextVolume (wchar *VolName, size_t MaxSize)
 
void uiAskRepeatRead (const wchar *FileName, bool &Ignore, bool &All, bool &Retry, bool &Quit)
 
bool uiAskRepeatWrite (const wchar *FileName, bool DiskFull)
 
const wcharuiGetMonthName (int Month)
 
void uiMsg (UIMESSAGE_CODE Code)
 
template<class T1 >
void uiMsg (UIMESSAGE_CODE Code, T1 a1)
 
template<class T1 , class T2 >
void uiMsg (UIMESSAGE_CODE Code, T1 a1, T2 a2)
 
template<class T1 , class T2 , class T3 >
void uiMsg (UIMESSAGE_CODE code, T1 a1, T2 a2, T3 a3)
 

Macro Definition Documentation

◆ UINULL

#define UINULL   ((wchar *)NULL)

Definition at line 146 of file ui.hpp.

Enumeration Type Documentation

◆ UIALARM_TYPE

Enumerator
UIALARM_ERROR 
UIALARM_INFO 
UIALARM_QUESTION 

Definition at line 94 of file ui.hpp.

◆ UIASKREP_FLAGS

Enumerator
UIASKREP_F_NORENAME 
UIASKREP_F_EXCHSRCDEST 
UIASKREP_F_SHOWNAMEONLY 

Definition at line 68 of file ui.hpp.

◆ UIASKREP_RESULT

Enumerator
UIASKREP_R_REPLACE 
UIASKREP_R_SKIP 
UIASKREP_R_REPLACEALL 
UIASKREP_R_SKIPALL 
UIASKREP_R_RENAME 
UIASKREP_R_RENAMEAUTO 
UIASKREP_R_CANCEL 
UIASKREP_R_UNUSED 

Definition at line 74 of file ui.hpp.

◆ UIMESSAGE_CODE

Enumerator
UIERROR_SYSERRMSG 
UIERROR_GENERALERRMSG 
UIERROR_INCERRCOUNT 
UIERROR_CHECKSUM 
UIERROR_CHECKSUMENC 
UIERROR_CHECKSUMPACKED 
UIERROR_BADPSW 
UIERROR_MEMORY 
UIERROR_FILEOPEN 
UIERROR_FILECREATE 
UIERROR_FILECLOSE 
UIERROR_FILESEEK 
UIERROR_FILEREAD 
UIERROR_FILEWRITE 
UIERROR_FILEDELETE 
UIERROR_RECYCLEFAILED 
UIERROR_FILERENAME 
UIERROR_FILEATTR 
UIERROR_FILECOPY 
UIERROR_FILECOPYHINT 
UIERROR_DIRCREATE 
UIERROR_SLINKCREATE 
UIERROR_HLINKCREATE 
UIERROR_NOLINKTARGET 
UIERROR_NEEDADMIN 
UIERROR_ARCBROKEN 
UIERROR_HEADERBROKEN 
UIERROR_MHEADERBROKEN 
UIERROR_FHEADERBROKEN 
UIERROR_SUBHEADERBROKEN 
UIERROR_SUBHEADERUNKNOWN 
UIERROR_SUBHEADERDATABROKEN 
UIERROR_RRDAMAGED 
UIERROR_UNKNOWNMETHOD 
UIERROR_UNKNOWNENCMETHOD 
UIERROR_RENAMING 
UIERROR_NEWERRAR 
UIERROR_NOTSFX 
UIERROR_OLDTOSFX 
UIERROR_WRONGSFXVER 
UIERROR_HEADENCMISMATCH 
UIERROR_DICTOUTMEM 
UIERROR_USESMALLERDICT 
UIERROR_MODIFYUNKNOWN 
UIERROR_MODIFYOLD 
UIERROR_MODIFYLOCKED 
UIERROR_MODIFYVOLUME 
UIERROR_NOTVOLUME 
UIERROR_NOTFIRSTVOLUME 
UIERROR_RECVOLLIMIT 
UIERROR_RECVOLDIFFSETS 
UIERROR_RECVOLALLEXIST 
UIERROR_RECVOLFOUND 
UIERROR_RECONSTRUCTING 
UIERROR_RECVOLCANNOTFIX 
UIERROR_OPFAILED 
UIERROR_UNEXPEOF 
UIERROR_BADARCHIVE 
UIERROR_CMTBROKEN 
UIERROR_INVALIDNAME 
UIERROR_NEWRARFORMAT 
UIERROR_NOTSUPPORTED 
UIERROR_ENCRNOTSUPPORTED 
UIERROR_RARZIPONLY 
UIERROR_REPAIROLDFORMAT 
UIERROR_NOFILESREPAIRED 
UIERROR_NOFILESTOADD 
UIERROR_NOFILESTODELETE 
UIERROR_NOFILESTOEXTRACT 
UIERROR_MISSINGVOL 
UIERROR_NEEDPREVVOL 
UIERROR_UNKNOWNEXTRA 
UIERROR_CORRUPTEXTRA 
UIERROR_NTFSREQUIRED 
UIERROR_ZIPVOLSFX 
UIERROR_FILERO 
UIERROR_TOOLARGESFX 
UIERROR_NOZIPSFX 
UIERROR_EMAIL 
UIERROR_ACLGET 
UIERROR_ACLBROKEN 
UIERROR_ACLUNKNOWN 
UIERROR_ACLSET 
UIERROR_STREAMBROKEN 
UIERROR_STREAMUNKNOWN 
UIERROR_INCOMPATSWITCH 
UIERROR_PATHTOOLONG 
UIERROR_DIRSCAN 
UIERROR_UOWNERGET 
UIERROR_UOWNERBROKEN 
UIERROR_UOWNERGETOWNERID 
UIERROR_UOWNERGETGROUPID 
UIERROR_UOWNERSET 
UIERROR_ULINKREAD 
UIERROR_ULINKEXIST 
UIERROR_OPENPRESERVEATIME 
UIERROR_READERRTRUNCATED 
UIERROR_READERRCOUNT 
UIERROR_DIRNAMEEXISTS 
UIERROR_TRUNCPSW 
UIERROR_ADJUSTVALUE 
UIMSG_FIRST 
UIMSG_STRING 
UIMSG_BUILD 
UIMSG_RRSEARCH 
UIMSG_ANALYZEFILEDATA 
UIMSG_RRFOUND 
UIMSG_RRNOTFOUND 
UIMSG_RRDAMAGED 
UIMSG_BLOCKSRECOVERED 
UIMSG_COPYINGDATA 
UIMSG_AREADAMAGED 
UIMSG_SECTORDAMAGED 
UIMSG_SECTORRECOVERED 
UIMSG_SECTORNOTRECOVERED 
UIMSG_FOUND 
UIMSG_CORRECTINGNAME 
UIMSG_BADARCHIVE 
UIMSG_CREATING 
UIMSG_RENAMING 
UIMSG_RECVOLCALCCHECKSUM 
UIMSG_RECVOLFOUND 
UIMSG_RECVOLMISSING 
UIMSG_MISSINGVOL 
UIMSG_RECONSTRUCTING 
UIMSG_CHECKSUM 
UIMSG_FAT32SIZE 
UIMSG_SKIPENCARC 
UIWAIT_FIRST 
UIWAIT_DISKFULLNEXT 
UIWAIT_FCREATEERROR 
UIWAIT_BADPSW 
UIEVENT_FIRST 
UIEVENT_SEARCHDUPFILESSTART 
UIEVENT_SEARCHDUPFILESEND 
UIEVENT_CLEARATTRSTART 
UIEVENT_CLEARATTRFILE 
UIEVENT_DELADDEDSTART 
UIEVENT_DELADDEDFILE 
UIEVENT_FILESFOUND 
UIEVENT_ERASEDISK 
UIEVENT_FILESUMSTART 
UIEVENT_FILESUMPROGRESS 
UIEVENT_FILESUMEND 
UIEVENT_PROTECTSTART 
UIEVENT_PROTECTEND 
UIEVENT_TESTADDEDSTART 
UIEVENT_TESTADDEDEND 
UIEVENT_RRTESTINGSTART 
UIEVENT_RRTESTINGEND 
UIEVENT_NEWARCHIVE 
UIEVENT_NEWREVFILE 

Definition at line 9 of file ui.hpp.

◆ UIPASSWORD_TYPE

Enumerator
UIPASSWORD_GLOBAL 
UIPASSWORD_FILE 
UIPASSWORD_ARCHIVE 

Definition at line 90 of file ui.hpp.

Function Documentation

◆ uiAlarm()

void uiAlarm ( UIALARM_TYPE  Type)

Definition at line 413 of file uiconsole.cpp.

References MonoClock(), SOUND_NOTIFY_ON, and uiSoundNotify.

Referenced by Ask(), ErrorHandler::Exit(), GetConsolePassword(), and Log().

◆ uiAskNextVolume()

bool uiAskNextVolume ( wchar VolName,
size_t  MaxSize 
)

Definition at line 433 of file uiconsole.cpp.

References Ask(), eprintf(), MAskNextVol, MContinueQuit, and St().

Referenced by MergeArchive().

◆ uiAskRepeatRead()

void uiAskRepeatRead ( const wchar FileName,
bool &  Ignore,
bool &  All,
bool &  Retry,
bool &  Quit 
)

Definition at line 440 of file uiconsole.cpp.

References Ask(), eprintf(), MErrReadInfo, MIgnoreAllRetryQuit, and St().

Referenced by ErrorHandler::AskRepeatRead().

◆ uiAskRepeatWrite()

bool uiAskRepeatWrite ( const wchar FileName,
bool  DiskFull 
)

Definition at line 452 of file uiconsole.cpp.

References Ask(), Log(), MErrWrite, MNotEnoughDisk, mprintf(), MRetryAbort, and St().

Referenced by ErrorHandler::AskRepeatWrite().

◆ uiAskReplace()

◆ uiAskReplaceEx()

◆ uiEolAfterMsg()

void uiEolAfterMsg ( )

Definition at line 472 of file uiconsole.cpp.

References AnyMessageDisplayed, and mprintf().

Referenced by CmdExtract::ExtractCurrentFile().

◆ uiExtractProgress()

void uiExtractProgress ( int64  CurFileSize,
int64  TotalFileSize,
int64  CurSize,
int64  TotalSize 
)

Definition at line 72 of file uiconsole.cpp.

References mprintf(), and ToPercent().

Referenced by CalcFileSum(), and ComprDataIO::ShowUnpRead().

◆ uiGetMonthName()

const wchar * uiGetMonthName ( int  Month)

◆ uiGetPassword()

bool uiGetPassword ( UIPASSWORD_TYPE  Type,
const wchar FileName,
SecPassword Password 
)

◆ uiInit()

void uiInit ( SOUND_NOTIFY_MODE  Sound)

Definition at line 3 of file uicommon.cpp.

References uiSoundNotify.

Referenced by main().

◆ uiIsGlobalPasswordSet()

bool uiIsGlobalPasswordSet ( )

Definition at line 407 of file uiconsole.cpp.

Referenced by CmdExtract::ExtractArchiveInit(), and Archive::ReadHeader50().

◆ uiMsg() [1/4]

◆ uiMsg() [2/4]

template<class T1 >
void uiMsg ( UIMESSAGE_CODE  Code,
T1  a1 
)

Definition at line 154 of file ui.hpp.

References uiMsgStore::Msg().

◆ uiMsg() [3/4]

template<class T1 , class T2 >
void uiMsg ( UIMESSAGE_CODE  Code,
T1  a1,
T2  a2 
)

Definition at line 161 of file ui.hpp.

References uiMsgStore::Msg().

◆ uiMsg() [4/4]

template<class T1 , class T2 , class T3 >
void uiMsg ( UIMESSAGE_CODE  code,
T1  a1,
T2  a2,
T3  a3 
)

Definition at line 168 of file ui.hpp.

References uiMsgStore::Msg().

◆ uiProcessProgress()

void uiProcessProgress ( const char *  Command,
int64  CurSize,
int64  TotalSize 
)

Definition at line 82 of file uiconsole.cpp.

References mprintf(), and ToPercent().

Referenced by RecVolumes3::Restore(), and RecVolumes5::Restore().

◆ uiStartArchiveExtract()

void uiStartArchiveExtract ( bool  Extract,
const wchar ArcName 
)

Definition at line 60 of file uiconsole.cpp.

References MExtracting, MExtrTest, mprintf(), and St().

Referenced by CmdExtract::ExtractArchive().

◆ uiStartFileExtract()

bool uiStartFileExtract ( const wchar FileName,
bool  Extract,
bool  Test,
bool  Skip 
)