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)  

options.hpp
Go to the documentation of this file.
1#ifndef _RAR_OPTIONS_
2#define _RAR_OPTIONS_
3
4#define DEFAULT_RECOVERY -3
5
6#define DEFAULT_RECVOLUMES -10
7
8#define VOLSIZE_AUTO INT64NDF // Automatically detect the volume size.
9
11 EXCL_UNCHANGED=0, // Process paths as is (default).
12 EXCL_SKIPWHOLEPATH, // -ep (exclude the path completely)
13 EXCL_BASEPATH, // -ep1 (exclude the base part of path)
14 EXCL_SAVEFULLPATH, // -ep2 (the full path without the disk letter)
15 EXCL_ABSPATH // -ep3 (the full path with the disk letter)
16};
17
20
22
25};
26
28
30
32{
33 RECURSE_NONE=0, // no recurse switches
34 RECURSE_DISABLE, // switch -r-
35 RECURSE_ALWAYS, // switch -r
36 RECURSE_WILDCARDS, // switch -r0
37};
38
40{
41 OVERWRITE_DEFAULT=0, // Ask when extracting, silently overwrite when archiving.
46};
47
48
50
52
53#define MAX_FILTER_TYPES 16
55
56
60};
61
63{
66};
67
71};
72
73
74// Need "forced off" state to turn off sound in GUI command line.
76
78{
80 int Param1;
81 int Param2;
82};
83
84#define MAX_GENERATE_MASK 128
85
86
88{
89 public:
90 RAROptions();
92 void Init();
93
96
97 // We handle -ed and -e+d with special flags instead of attribute mask,
98 // so it works with both Windows and Unix archives.
99 bool ExclDir;
101
103 size_t WinSize;
106
107#ifdef USE_QOPEN
108 QOPEN_MODE QOpenMode;
109#endif
110
111 bool ConfigDisabled; // Switch -cfg-.
118
119 wchar ArcPath[NM]; // For -ap<path>.
120 wchar ExclArcPath[NM]; // For -ep4<path> switch.
124
125 bool ManualPassword; // Password entered manually during operation, might need to clean for next archive.
126
140 int Solid;
152 bool AllYes;
153 bool VerboseOutput; // -iv, display verbose output, used only in "WinRAR t" now.
166
167#ifdef _WIN_ALL
168 bool AllowIncompatNames; // Allow names with trailing dots and spaces.
169#endif
170
171
172#ifndef SFX_MODULE
176#endif
188 bool Lock;
189 bool Test;
196 EXTTIME_MODE xmtime; // Extended time modes (time precision to store).
200
201 // Read data from stdin and store in archive under a name specified here
202 // when archiving. Read an archive from stdin if any non-empty string
203 // is specified here when extracting.
205
206 uint Threads; // We use it to init hash even if RAR_SMP is not defined.
207
208
209
210
211
212#ifdef RARDLL
213 wchar DllDestName[NM];
214 int DllOpMode;
215 int DllError;
216 LPARAM UserData;
217 UNRARCALLBACK Callback;
218 CHANGEVOLPROC ChangeVolProc;
219 PROCESSDATAPROC ProcessDataProc;
220#endif
221};
222#endif
bool AddArcOnly
Definition: options.hpp:143
RarTime FileAtimeBefore
Definition: options.hpp:182
bool EncryptHeaders
Definition: options.hpp:122
bool FileMtimeAfterOR
Definition: options.hpp:185
bool VolumePause
Definition: options.hpp:190
bool SetCompressedAttr
Definition: options.hpp:180
bool FreshFiles
Definition: options.hpp:145
wchar GenerateMask[128]
Definition: options.hpp:174
bool AbsoluteLinks
Definition: options.hpp:160
bool IgnoreGeneralAttr
Definition: options.hpp:181
bool InclDir
Definition: options.hpp:100
RarTime FileAtimeAfter
Definition: options.hpp:184
RarTime FileMtimeBefore
Definition: options.hpp:182
HASH_TYPE HashType
Definition: options.hpp:132
bool SaveHardLinks
Definition: options.hpp:159
bool PrintVersion
Definition: options.hpp:139
RAR_CHARSET CommentCharset
Definition: options.hpp:114
bool FileCtimeBeforeOR
Definition: options.hpp:183
bool PreserveAtime
Definition: options.hpp:199
APPENDARCNAME_MODE AppendArcNameToPath
Definition: options.hpp:194
bool DisableNames
Definition: options.hpp:138
bool UpdateFiles
Definition: options.hpp:146
bool GenerateArcName
Definition: options.hpp:173
bool ManualPassword
Definition: options.hpp:125
int Priority
Definition: options.hpp:161
RECURSE_MODE Recurse
Definition: options.hpp:148
bool AllYes
Definition: options.hpp:152
bool DisableSortSolid
Definition: options.hpp:154
bool KeepBroken
Definition: options.hpp:163
wchar ExtrPath[NM]
Definition: options.hpp:112
RarTime FileCtimeAfter
Definition: options.hpp:184
~RAROptions()
Definition: options.cpp:9
bool VerboseOutput
Definition: options.hpp:153
Array< int64 > NextVolSizes
Definition: options.hpp:150
wchar SFXModule[NM]
Definition: options.hpp:105
RAR_CHARSET FilelistCharset
Definition: options.hpp:115
SecPassword Password
Definition: options.hpp:121
int SolidCount
Definition: options.hpp:141
wchar EmailTo[NM]
Definition: options.hpp:192
RarTime FileMtimeAfter
Definition: options.hpp:184
int64 VolSize
Definition: options.hpp:149
bool ExclDir
Definition: options.hpp:99
bool DisableCopyright
Definition: options.hpp:136
SOUND_NOTIFY_MODE Sound
Definition: options.hpp:129
bool FileAtimeAfterOR
Definition: options.hpp:185
bool ConfigDisabled
Definition: options.hpp:111
int Recovery
Definition: options.hpp:133
wchar UseStdin[NM]
Definition: options.hpp:204
wchar CommentFile[NM]
Definition: options.hpp:113
RarTime FileCtimeBefore
Definition: options.hpp:182
EXTTIME_MODE xmtime
Definition: options.hpp:196
bool FileAtimeBeforeOR
Definition: options.hpp:183
wchar ExclArcPath[NM]
Definition: options.hpp:120
size_t WinSize
Definition: options.hpp:103
bool SaveSymLinks
Definition: options.hpp:158
RAROptions()
Definition: options.cpp:3
POWER_MODE Shutdown
Definition: options.hpp:195
EXTTIME_MODE xatime
Definition: options.hpp:198
PATH_EXCL_MODE ExclPath
Definition: options.hpp:147
bool ProcessOwners
Definition: options.hpp:157
int SleepTime
Definition: options.hpp:162
uint InclFileAttr
Definition: options.hpp:95
bool SyncFiles
Definition: options.hpp:177
wchar LogName[NM]
Definition: options.hpp:127
int ArcTime
Definition: options.hpp:155
bool SkipEncrypted
Definition: options.hpp:123
int Method
Definition: options.hpp:131
wchar TempPath[NM]
Definition: options.hpp:104
RAR_CHARSET RedirectCharset
Definition: options.hpp:117
bool ClearArc
Definition: options.hpp:142
bool DisableDone
Definition: options.hpp:137
bool SaveStreams
Definition: options.hpp:179
MESSAGE_TYPE MsgStream
Definition: options.hpp:128
uint ExclFileAttr
Definition: options.hpp:94
int ConvertNames
Definition: options.hpp:156
bool DisablePercentage
Definition: options.hpp:135
bool Lock
Definition: options.hpp:188
bool DisableComment
Definition: options.hpp:144
int64 FileSizeLess
Definition: options.hpp:186
uint VersionControl
Definition: options.hpp:193
bool Test
Definition: options.hpp:189
bool OpenShared
Definition: options.hpp:164
bool FileMtimeBeforeOR
Definition: options.hpp:183
uint Threads
Definition: options.hpp:206
void Init()
Definition: options.cpp:17
bool InclAttrSet
Definition: options.hpp:102
int64 FileSizeMore
Definition: options.hpp:187
wchar ArcPath[NM]
Definition: options.hpp:119
bool ProcessEA
Definition: options.hpp:178
OVERWRITE_MODE Overwrite
Definition: options.hpp:130
uint CurVolNum
Definition: options.hpp:151
RAR_CHARSET ErrlogCharset
Definition: options.hpp:116
FilterMode FilterModes[16]
Definition: options.hpp:191
bool FileCtimeAfterOR
Definition: options.hpp:185
int RecVolNumber
Definition: options.hpp:134
wchar DefGenerateMask[128]
Definition: options.hpp:175
EXTTIME_MODE xctime
Definition: options.hpp:197
bool DeleteFiles
Definition: options.hpp:165
int(PASCAL * PROCESSDATAPROC)(unsigned char *Addr, int Size)
Definition: dll.hpp:164
int(PASCAL * CHANGEVOLPROC)(char *ArcName, int Mode)
Definition: dll.hpp:163
int(CALLBACK * UNRARCALLBACK)(UINT msg, LPARAM UserData, LPARAM P1, LPARAM P2)
Definition: dll.hpp:126
HASH_TYPE
Definition: hash.hpp:4
@ NAMES_LOWERCASE
Definition: options.hpp:27
@ NAMES_ORIGINALCASE
Definition: options.hpp:27
@ NAMES_UPPERCASE
Definition: options.hpp:27
POWER_MODE
Definition: options.hpp:68
@ POWERMODE_OFF
Definition: options.hpp:69
@ POWERMODE_KEEP
Definition: options.hpp:69
@ POWERMODE_HIBERNATE
Definition: options.hpp:69
@ POWERMODE_RESTART
Definition: options.hpp:70
@ POWERMODE_SLEEP
Definition: options.hpp:69
#define MAX_GENERATE_MASK
Definition: options.hpp:84
FilterState
Definition: options.hpp:54
@ FILTER_FORCE
Definition: options.hpp:54
@ FILTER_DISABLE
Definition: options.hpp:54
@ FILTER_AUTO
Definition: options.hpp:54
@ FILTER_DEFAULT
Definition: options.hpp:54
RECURSE_MODE
Definition: options.hpp:32
@ RECURSE_NONE
Definition: options.hpp:33
@ RECURSE_WILDCARDS
Definition: options.hpp:36
@ RECURSE_DISABLE
Definition: options.hpp:34
@ RECURSE_ALWAYS
Definition: options.hpp:35
RAR_CHARSET
Definition: options.hpp:51
@ RCH_UTF8
Definition: options.hpp:51
@ RCH_OEM
Definition: options.hpp:51
@ RCH_ANSI
Definition: options.hpp:51
@ RCH_DEFAULT
Definition: options.hpp:51
@ RCH_UNICODE
Definition: options.hpp:51
EXTTIME_MODE
Definition: options.hpp:23
@ EXTTIME_NONE
Definition: options.hpp:24
@ EXTTIME_MAX
Definition: options.hpp:24
@ EXTTIME_1S
Definition: options.hpp:24
OVERWRITE_MODE
Definition: options.hpp:40
@ OVERWRITE_NONE
Definition: options.hpp:43
@ OVERWRITE_DEFAULT
Definition: options.hpp:41
@ OVERWRITE_FORCE_ASK
Definition: options.hpp:45
@ OVERWRITE_AUTORENAME
Definition: options.hpp:44
@ OVERWRITE_ALL
Definition: options.hpp:42
#define MAX_FILTER_TYPES
Definition: options.hpp:53
MESSAGE_TYPE
Definition: options.hpp:29
@ MSG_NULL
Definition: options.hpp:29
@ MSG_STDERR
Definition: options.hpp:29
@ MSG_ERRONLY
Definition: options.hpp:29
@ MSG_STDOUT
Definition: options.hpp:29
PATH_EXCL_MODE
Definition: options.hpp:10
@ EXCL_SAVEFULLPATH
Definition: options.hpp:14
@ EXCL_UNCHANGED
Definition: options.hpp:11
@ EXCL_ABSPATH
Definition: options.hpp:15
@ EXCL_SKIPWHOLEPATH
Definition: options.hpp:12
@ EXCL_BASEPATH
Definition: options.hpp:13
APPENDARCNAME_MODE
Definition: options.hpp:63
@ APPENDARCNAME_DESTPATH
Definition: options.hpp:64
@ APPENDARCNAME_OWNDIR
Definition: options.hpp:65
@ APPENDARCNAME_NONE
Definition: options.hpp:64
@ APPENDARCNAME_OWNSUBDIR
Definition: options.hpp:64
@ SOLID_COUNT
Definition: options.hpp:18
@ SOLID_FILEEXT
Definition: options.hpp:18
@ SOLID_VOLUME_DEPENDENT
Definition: options.hpp:19
@ SOLID_VOLUME_INDEPENDENT
Definition: options.hpp:19
@ SOLID_NONE
Definition: options.hpp:18
@ SOLID_NORMAL
Definition: options.hpp:18
@ ARCTIME_KEEP
Definition: options.hpp:21
@ ARCTIME_NONE
Definition: options.hpp:21
@ ARCTIME_LATEST
Definition: options.hpp:21
SOUND_NOTIFY_MODE
Definition: options.hpp:75
@ SOUND_NOTIFY_DEFAULT
Definition: options.hpp:75
@ SOUND_NOTIFY_OFF
Definition: options.hpp:75
@ SOUND_NOTIFY_ON
Definition: options.hpp:75
QOPEN_MODE
Definition: options.hpp:49
@ QOPEN_AUTO
Definition: options.hpp:49
@ QOPEN_NONE
Definition: options.hpp:49
@ QOPEN_ALWAYS
Definition: options.hpp:49
SAVECOPY_MODE
Definition: options.hpp:57
@ SAVECOPY_SILENT
Definition: options.hpp:58
@ SAVECOPY_DUPLISTEXIT
Definition: options.hpp:59
@ SAVECOPY_LISTEXIT
Definition: options.hpp:58
@ SAVECOPY_LIST
Definition: options.hpp:58
@ SAVECOPY_NONE
Definition: options.hpp:58
wchar_t wchar
Definition: rartypes.hpp:13
int64_t int64
Definition: rartypes.hpp:12
unsigned int uint
Definition: rartypes.hpp:8
int Param1
Definition: options.hpp:80
FilterState State
Definition: options.hpp:79
int Param2
Definition: options.hpp:81