| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#ifndef H_FREAC_CONFIG |
| 14 |
#define H_FREAC_CONFIG |
| 15 |
|
| 16 |
#include <smooth.h> |
| 17 |
|
| 18 |
using namespace smooth; |
| 19 |
|
| 20 |
namespace freac |
| 21 |
{ |
| 22 |
class Config |
| 23 |
{ |
| 24 |
constants: |
| 25 |
static const String CategorySettingsID; |
| 26 |
static const String CategoryDialogsID; |
| 27 |
static const String CategoryResourcesID; |
| 28 |
static const String CategoryJoblistID; |
| 29 |
static const String CategorySplitterID; |
| 30 |
static const String CategoryRipperID; |
| 31 |
static const String CategoryPlaylistID; |
| 32 |
static const String CategoryTagsID; |
| 33 |
static const String CategoryFreedbID; |
| 34 |
static const String CategoryVerificationID; |
| 35 |
static const String CategoryProcessingID; |
| 36 |
static const String CategoryLoggingID; |
| 37 |
static const String CategoryInternalID; |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
static const String SettingsStartCountID; |
| 42 |
static const Int SettingsStartCountDefault; |
| 43 |
|
| 44 |
static const String SettingsEnableConsoleID; |
| 45 |
static const Bool SettingsEnableConsoleDefault; |
| 46 |
|
| 47 |
static const String SettingsWindowPosXID; |
| 48 |
static const Int SettingsWindowPosXDefault; |
| 49 |
|
| 50 |
static const String SettingsWindowPosYID; |
| 51 |
static const Int SettingsWindowPosYDefault; |
| 52 |
|
| 53 |
static const String SettingsWindowSizeXID; |
| 54 |
static const Int SettingsWindowSizeXDefault; |
| 55 |
|
| 56 |
static const String SettingsWindowSizeYID; |
| 57 |
static const Int SettingsWindowSizeYDefault; |
| 58 |
|
| 59 |
static const String SettingsWindowMaximizedID; |
| 60 |
static const Bool SettingsWindowMaximizedDefault; |
| 61 |
|
| 62 |
static const String SettingsLanguageID; |
| 63 |
static const String SettingsLanguageDefault; |
| 64 |
|
| 65 |
static const String SettingsShowTitleInfoID; |
| 66 |
static const Bool SettingsShowTitleInfoDefault; |
| 67 |
|
| 68 |
static const String SettingsShowTooltipsID; |
| 69 |
static const Bool SettingsShowTooltipsDefault; |
| 70 |
|
| 71 |
static const String SettingsShowTipsID; |
| 72 |
static const Bool SettingsShowTipsDefault; |
| 73 |
|
| 74 |
static const String SettingsNextTipID; |
| 75 |
static const Int SettingsNextTipDefault; |
| 76 |
|
| 77 |
static const String SettingsDisplayErrorsID; |
| 78 |
static const Bool SettingsDisplayErrorsDefault; |
| 79 |
|
| 80 |
static const String SettingsCheckForUpdatesID; |
| 81 |
static const Bool SettingsCheckForUpdatesDefault; |
| 82 |
|
| 83 |
static const String SettingsUpdatesCheckedID; |
| 84 |
static const Bool SettingsUpdatesCheckedDefault; |
| 85 |
|
| 86 |
static const String SettingsLastUsedGenreID; |
| 87 |
|
| 88 |
static const String SettingsLastOutputDirectoryID; |
| 89 |
static const String SettingsLastFilePatternID; |
| 90 |
|
| 91 |
static const String SettingsLastAddedDirID; |
| 92 |
static const String SettingsLastAddedDirDefault; |
| 93 |
|
| 94 |
static const String SettingsLastAddedPatternID; |
| 95 |
static const String SettingsLastAddedPatternDefault; |
| 96 |
|
| 97 |
static const String SettingsLastSearchSubFoldersID; |
| 98 |
static const Bool SettingsLastSearchSubFoldersDefault; |
| 99 |
|
| 100 |
static const String SettingsEncodeOnTheFlyID; |
| 101 |
static const Bool SettingsEncodeOnTheFlyDefault; |
| 102 |
|
| 103 |
static const String SettingsKeepWaveFilesID; |
| 104 |
static const Bool SettingsKeepWaveFilesDefault; |
| 105 |
|
| 106 |
static const String SettingsEncodeToSingleFileID; |
| 107 |
static const Bool SettingsEncodeToSingleFileDefault; |
| 108 |
|
| 109 |
static const String SettingsSingleFilenameID; |
| 110 |
static const String SettingsSingleFilenameDefault; |
| 111 |
|
| 112 |
static const String SettingsRemoveTracksID; |
| 113 |
static const Bool SettingsRemoveTracksDefault; |
| 114 |
|
| 115 |
static const String SettingsAddEncodedTracksID; |
| 116 |
static const Bool SettingsAddEncodedTracksDefault; |
| 117 |
|
| 118 |
static const String SettingsWriteToInputDirectoryID; |
| 119 |
static const Bool SettingsWriteToInputDirectoryDefault; |
| 120 |
|
| 121 |
static const String SettingsAllowOverwriteSourceID; |
| 122 |
static const Bool SettingsAllowOverwriteSourceDefault; |
| 123 |
|
| 124 |
static const String SettingsFilenamesAllowUnicodeID; |
| 125 |
static const Bool SettingsFilenamesAllowUnicodeDefault; |
| 126 |
|
| 127 |
static const String SettingsFilenamesReplaceSpacesID; |
| 128 |
static const Bool SettingsFilenamesReplaceSpacesDefault; |
| 129 |
|
| 130 |
static const String SettingsFilenamesKeepTimeStampsID; |
| 131 |
static const Bool SettingsFilenamesKeepTimeStampsDefault; |
| 132 |
|
| 133 |
static const String SettingsFilenamesAddSequentialNumbersID; |
| 134 |
static const Bool SettingsFilenamesAddSequentialNumbersDefault; |
| 135 |
|
| 136 |
static const String SettingsFilenamesUseFallbackID; |
| 137 |
static const Bool SettingsFilenamesUseFallbackDefault; |
| 138 |
|
| 139 |
static const String SettingsEncoderID; |
| 140 |
static const String SettingsEncoderDefault; |
| 141 |
|
| 142 |
static const String SettingsEncoderOutputDirectoryID; |
| 143 |
static String SettingsEncoderOutputDirectoryDefault; |
| 144 |
|
| 145 |
static const String SettingsEncoderFilenamePatternID; |
| 146 |
static const String SettingsEncoderFilenamePatternDefault; |
| 147 |
|
| 148 |
static const String SettingsLastCustomCharsetID; |
| 149 |
static const String SettingsLastCustomCharsetDefault; |
| 150 |
|
| 151 |
static const String SettingsShowJobsTabID; |
| 152 |
static const Bool SettingsShowJobsTabDefault; |
| 153 |
|
| 154 |
static const String SettingsWarnLossyToLosslessID; |
| 155 |
static const Bool SettingsWarnLossyToLosslessDefault; |
| 156 |
|
| 157 |
static const String SettingsExcludeExtensionsID; |
| 158 |
static const String SettingsExcludeExtensionsDefault; |
| 159 |
|
| 160 |
static const String SettingsLastSelectedOpenDirID; |
| 161 |
|
| 162 |
static const String SettingsLastSelectedSaveDirID; |
| 163 |
|
| 164 |
static const String SettingsLastSelectedJoblistDirID; |
| 165 |
|
| 166 |
static const String SettingsDeleteAfterEncodingID; |
| 167 |
static const Bool SettingsDeleteAfterEncodingDefault; |
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
static const String DialogsCDDBSubmitSizeXID; |
| 172 |
static const Int DialogsCDDBSubmitSizeXDefault; |
| 173 |
|
| 174 |
static const String DialogsCDDBSubmitSizeYID; |
| 175 |
static const Int DialogsCDDBSubmitSizeYDefault; |
| 176 |
|
| 177 |
static const String DialogsCDDBMultiMatchSizeXID; |
| 178 |
static const Int DialogsCDDBMultiMatchSizeXDefault; |
| 179 |
|
| 180 |
static const String DialogsCDDBMultiMatchSizeYID; |
| 181 |
static const Int DialogsCDDBMultiMatchSizeYDefault; |
| 182 |
|
| 183 |
static const String DialogsCDDBManageQueriesSizeXID; |
| 184 |
static const Int DialogsCDDBManageQueriesSizeXDefault; |
| 185 |
|
| 186 |
static const String DialogsCDDBManageQueriesSizeYID; |
| 187 |
static const Int DialogsCDDBManageQueriesSizeYDefault; |
| 188 |
|
| 189 |
static const String DialogsCDDBManageSubmitsSizeXID; |
| 190 |
static const Int DialogsCDDBManageSubmitsSizeXDefault; |
| 191 |
|
| 192 |
static const String DialogsCDDBManageSubmitsSizeYID; |
| 193 |
static const Int DialogsCDDBManageSubmitsSizeYDefault; |
| 194 |
|
| 195 |
static const String DialogsCDDBManageCacheSizeXID; |
| 196 |
static const Int DialogsCDDBManageCacheSizeXDefault; |
| 197 |
|
| 198 |
static const String DialogsCDDBManageCacheSizeYID; |
| 199 |
static const Int DialogsCDDBManageCacheSizeYDefault; |
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
static const String ProcessingEnableProcessingID; |
| 204 |
static const Int ProcessingEnableProcessingDefault; |
| 205 |
|
| 206 |
static const String ProcessingProcessPlaybackID; |
| 207 |
static const Int ProcessingProcessPlaybackDefault; |
| 208 |
|
| 209 |
static const String ProcessingComponentsID; |
| 210 |
static const String ProcessingComponentsDefault; |
| 211 |
|
| 212 |
static const String ProcessingSingleFileModeID; |
| 213 |
static const Int ProcessingSingleFileModeDefault; |
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
static const String VerificationVerifyInputID; |
| 218 |
static const Bool VerificationVerifyInputDefault; |
| 219 |
|
| 220 |
static const String VerificationVerifyOutputID; |
| 221 |
static const Bool VerificationVerifyOutputDefault; |
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
static const String ResourcesEnableParallelConversionsID; |
| 226 |
static const Bool ResourcesEnableParallelConversionsDefault; |
| 227 |
|
| 228 |
static const String ResourcesEnableSuperFastModeID; |
| 229 |
static const Bool ResourcesEnableSuperFastModeDefault; |
| 230 |
|
| 231 |
static const String ResourcesNumberOfConversionThreadsID; |
| 232 |
static const Int ResourcesNumberOfConversionThreadsDefault; |
| 233 |
|
| 234 |
static const String ResourcesPriorityID; |
| 235 |
static const Int ResourcesPriorityDefault; |
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
static const String JoblistFieldsID; |
| 240 |
static const String JoblistFieldsDefault; |
| 241 |
|
| 242 |
static const String JoblistFieldSizesID; |
| 243 |
static const String JoblistFieldSizesDefault; |
| 244 |
|
| 245 |
|
| 246 |
|
| 247 |
static const String SplitterSplitModeID; |
| 248 |
static const Int SplitterSplitModeDefault; |
| 249 |
|
| 250 |
static const String SplitterSplitAtTracksID; |
| 251 |
static const Bool SplitterSplitAtTracksDefault; |
| 252 |
|
| 253 |
static const String SplitterPartDurationModeID; |
| 254 |
static const Int SplitterPartDurationModeDefault; |
| 255 |
|
| 256 |
static const String SplitterPartDurationID; |
| 257 |
static const Int SplitterPartDurationDefault; |
| 258 |
|
| 259 |
static const String SplitterPartDurationUnitID; |
| 260 |
static const Int SplitterPartDurationUnitDefault; |
| 261 |
|
| 262 |
static const String SplitterNumberOfPartsID; |
| 263 |
static const Int SplitterNumberOfPartsDefault; |
| 264 |
|
| 265 |
static const String SplitterMetadataStringID; |
| 266 |
static const String SplitterMetadataStringDefault; |
| 267 |
|
| 268 |
static const String SplitterFileNamePatternID; |
| 269 |
static const String SplitterFileNamePatternDefault; |
| 270 |
|
| 271 |
static const String SplitterRepeatEndID; |
| 272 |
static const Bool SplitterRepeatEndDefault; |
| 273 |
|
| 274 |
static const String SplitterRepeatSecondsID; |
| 275 |
static const Int SplitterRepeatSecondsDefault; |
| 276 |
|
| 277 |
static const String SplitterWindowPosXID; |
| 278 |
|
| 279 |
static const String SplitterWindowPosYID; |
| 280 |
|
| 281 |
static const String SplitterWindowSizeXID; |
| 282 |
static const Int SplitterWindowSizeXDefault; |
| 283 |
|
| 284 |
static const String SplitterWindowSizeYID; |
| 285 |
static const Int SplitterWindowSizeYDefault; |
| 286 |
|
| 287 |
|
| 288 |
|
| 289 |
static const String RipperActiveDriveID; |
| 290 |
static const Int RipperActiveDriveDefault; |
| 291 |
|
| 292 |
static const String RipperEjectAfterRippingID; |
| 293 |
static const Bool RipperEjectAfterRippingDefault; |
| 294 |
|
| 295 |
static const String RipperAutoReadContentsID; |
| 296 |
static const Bool RipperAutoReadContentsDefault; |
| 297 |
|
| 298 |
static const String RipperAutoRipID; |
| 299 |
static const Bool RipperAutoRipDefault; |
| 300 |
|
| 301 |
static const String RipperTimeoutID; |
| 302 |
static const Int RipperTimeoutDefault; |
| 303 |
|
| 304 |
|
| 305 |
|
| 306 |
static const String PlaylistCreatePlaylistID; |
| 307 |
static const Bool PlaylistCreatePlaylistDefault; |
| 308 |
|
| 309 |
static const String PlaylistCreateCueSheetID; |
| 310 |
static const Bool PlaylistCreateCueSheetDefault; |
| 311 |
|
| 312 |
static const String PlaylistFormatID; |
| 313 |
static const String PlaylistFormatDefault; |
| 314 |
|
| 315 |
static const String PlaylistUseEncoderOutputDirID; |
| 316 |
static const Bool PlaylistUseEncoderOutputDirDefault; |
| 317 |
|
| 318 |
static const String PlaylistOutputDirID; |
| 319 |
|
| 320 |
static const String PlaylistFilenamePatternID; |
| 321 |
static const String PlaylistFilenamePatternDefault; |
| 322 |
|
| 323 |
static const String PlaylistCreateSingleFileID; |
| 324 |
static const Bool PlaylistCreateSingleFileDefault; |
| 325 |
|
| 326 |
static const String PlaylistFilenameID; |
| 327 |
static const String PlaylistFilenameDefault; |
| 328 |
|
| 329 |
static const String PlaylistCueSheetID; |
| 330 |
static const String PlaylistCueSheetDefault; |
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
static const String TagsAlbumArtReadFromTagsID; |
| 335 |
static const Bool TagsAlbumArtReadFromTagsDefault; |
| 336 |
|
| 337 |
static const String TagsAlbumArtReadFromFilesID; |
| 338 |
static const Bool TagsAlbumArtReadFromFilesDefault; |
| 339 |
|
| 340 |
static const String TagsAlbumArtUsePatternsID; |
| 341 |
static const Bool TagsAlbumArtUsePatternsDefault; |
| 342 |
|
| 343 |
static const String TagsAlbumArtPatternsID; |
| 344 |
static const String TagsAlbumArtPatternsDefault; |
| 345 |
|
| 346 |
static const String TagsAlbumArtMaxFileSizeID; |
| 347 |
static const Int TagsAlbumArtMaxFileSizeDefault; |
| 348 |
|
| 349 |
static const String TagsAlbumArtWriteToTagsID; |
| 350 |
static const Bool TagsAlbumArtWriteToTagsDefault; |
| 351 |
|
| 352 |
static const String TagsAlbumArtWriteToFilesID; |
| 353 |
static const Bool TagsAlbumArtWriteToFilesDefault; |
| 354 |
|
| 355 |
static const String TagsAlbumArtWriteToFilesWithReferenceID; |
| 356 |
static const Bool TagsAlbumArtWriteToFilesWithReferenceDefault; |
| 357 |
|
| 358 |
static const String TagsAlbumArtFilenamePatternID; |
| 359 |
static const String TagsAlbumArtFilenamePatternDefault; |
| 360 |
|
| 361 |
static const String TagsReadEmbeddedCueSheetsID; |
| 362 |
static const Int TagsReadEmbeddedCueSheetsDefault; |
| 363 |
|
| 364 |
static const String TagsPreferCueSheetsToChaptersID; |
| 365 |
static const Int TagsPreferCueSheetsToChaptersDefault; |
| 366 |
|
| 367 |
static const String TagsReadChaptersID; |
| 368 |
static const Bool TagsReadChaptersDefault; |
| 369 |
|
| 370 |
static const String TagsWriteChaptersID; |
| 371 |
static const Bool TagsWriteChaptersDefault; |
| 372 |
|
| 373 |
static const String TagsWriteMCDIID; |
| 374 |
static const Bool TagsWriteMCDIDefault; |
| 375 |
|
| 376 |
static const String TagsPreserveReplayGainID; |
| 377 |
static const Bool TagsPreserveReplayGainDefault; |
| 378 |
|
| 379 |
static const String TagsExtractFromFileNamesID; |
| 380 |
static const Bool TagsExtractFromFileNamesDefault; |
| 381 |
|
| 382 |
static const String TagsReplaceExistingCommentsID; |
| 383 |
static const Bool TagsReplaceExistingCommentsDefault; |
| 384 |
|
| 385 |
static const String TagsDefaultCommentID; |
| 386 |
|
| 387 |
|
| 388 |
|
| 389 |
static const String FreedbDirectoryID; |
| 390 |
static const String FreedbDirectoryDefault; |
| 391 |
|
| 392 |
static const String FreedbServerID; |
| 393 |
static const String FreedbServerDefault; |
| 394 |
|
| 395 |
static const String FreedbModeID; |
| 396 |
static const Int FreedbModeDefault; |
| 397 |
|
| 398 |
static const String FreedbHTTPPortID; |
| 399 |
static const Int FreedbHTTPPortDefault; |
| 400 |
|
| 401 |
static const String FreedbCDDBPPortID; |
| 402 |
static const Int FreedbCDDBPPortDefault; |
| 403 |
|
| 404 |
static const String FreedbQueryPathID; |
| 405 |
static const String FreedbQueryPathDefault; |
| 406 |
|
| 407 |
static const String FreedbSubmitPathID; |
| 408 |
static const String FreedbSubmitPathDefault; |
| 409 |
|
| 410 |
static const String FreedbEmailID; |
| 411 |
static const String FreedbEmailDefault; |
| 412 |
|
| 413 |
static const String FreedbProxyID; |
| 414 |
static const String FreedbProxyDefault; |
| 415 |
|
| 416 |
static const String FreedbProxyUserID; |
| 417 |
static const String FreedbProxyUserDefault; |
| 418 |
|
| 419 |
static const String FreedbProxyPasswordID; |
| 420 |
static const String FreedbProxyPasswordDefault; |
| 421 |
|
| 422 |
static const String FreedbProxyModeID; |
| 423 |
static const Int FreedbProxyModeDefault; |
| 424 |
|
| 425 |
static const String FreedbProxyPortID; |
| 426 |
static const Int FreedbProxyPortDefault; |
| 427 |
|
| 428 |
static const String FreedbEnableLocalID; |
| 429 |
static const Bool FreedbEnableLocalDefault; |
| 430 |
|
| 431 |
static const String FreedbEnableRemoteID; |
| 432 |
static const Bool FreedbEnableRemoteDefault; |
| 433 |
|
| 434 |
static const String FreedbAutoQueryID; |
| 435 |
static const Bool FreedbAutoQueryDefault; |
| 436 |
|
| 437 |
static const String FreedbAutoSelectID; |
| 438 |
static const Bool FreedbAutoSelectDefault; |
| 439 |
|
| 440 |
static const String FreedbEnableCacheID; |
| 441 |
static const Bool FreedbEnableCacheDefault; |
| 442 |
|
| 443 |
static const String FreedbOverwriteCDTextID; |
| 444 |
static const Bool FreedbOverwriteCDTextDefault; |
| 445 |
|
| 446 |
static const String FreedbUpdateJoblistID; |
| 447 |
static const Bool FreedbUpdateJoblistDefault; |
| 448 |
|
| 449 |
static const String FreedbDisplayNotFoundID; |
| 450 |
static const Bool FreedbDisplayNotFoundDefault; |
| 451 |
|
| 452 |
|
| 453 |
|
| 454 |
static const String LoggingLogCompletePathsID; |
| 455 |
static const Bool LoggingLogCompletePathsDefault; |
| 456 |
|
| 457 |
|
| 458 |
|
| 459 |
static const String InternalNotificationAvailableID; |
| 460 |
|
| 461 |
static const String InternalDeleteAfterEncodingID; |
| 462 |
static const String InternalShutdownAfterEncodingID; |
| 463 |
private: |
| 464 |
|
| 465 |
|
| 466 |
static Config *instance; |
| 467 |
|
| 468 |
Config(); |
| 469 |
~Config(); |
| 470 |
public: |
| 471 |
String resourcesPath; |
| 472 |
String documentationPath; |
| 473 |
|
| 474 |
Bool enable_eUpdate; |
| 475 |
|
| 476 |
|
| 477 |
|
| 478 |
static Config *Get(); |
| 479 |
|
| 480 |
|
| 481 |
|
| 482 |
static Void Free(); |
| 483 |
}; |
| 484 |
}; |
| 485 |
|
| 486 |
#endif |