-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSnoopConfig.h
90 lines (73 loc) · 3.3 KB
/
SnoopConfig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// JPEGsnoop - JPEG Image Decoder & Analysis Utility
// Copyright (C) 2010 - Calvin Hass
// http://www.impulseadventure.com/photo/jpeg-snoop.html
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
#pragma once
class CSnoopConfig
{
public:
CSnoopConfig(void);
~CSnoopConfig(void);
void UseDefaults();
void RegistryLoadStr(CString strKey,CString strDefault,CString &strSetting);
void RegistryLoadBool(CString strKey,unsigned nDefault,bool &bSetting);
void RegistryLoadUint(CString strKey,unsigned nDefault,unsigned &nSetting);
void RegistryStoreStr(CString strKey,CString strSetting);
void RegistryStoreBool(CString strKey,bool bSetting);
void RegistryStoreUint(CString strKey,unsigned nSetting);
void RegistryLoad();
void RegistryStore();
void Dirty(bool mode=true);
void CoachReset(); // Reset all coach messages
CString GetDefaultDbDir(); // Public use by CSettingsDlg
private:
CString GetExeDir();
void CreateDir(char* Path);
public:
bool cmdline_gui; // Do we open GUI?
bool cmdline_open; // input file specified
CString cmdline_open_fname; // input filename
bool cmdline_output; // output file specified?
CString cmdline_output_fname; // output filename
unsigned nPosStart; // Starting decode file offset
// Operating system
bool bIsWindowsNTorLater;
bool bIsWindowsXPorLater;
// Registry Configuration options
bool bDirty; // Registry entry options dirtied?
bool bEulaAccepted; // Accepted the EULA?
bool bUpdateAuto; // Automatically check for updates
unsigned nUpdateAutoDays; // How many days between checks
CString strDbDir; // Directory for User DB
CString strUpdateLastChk; // When last checked for updates
bool bReprocessAuto; // Auto reprocess file when option change
bool bSigSearch; // Automatically search for comp signatures
bool bDecodeScanImg; // Scan image decode enabled
bool bDecodeScanImgAc; // When scan image decode, do full AC
bool bOutputScanDump; // Do we dump a portion of scan data?
bool bOutputDHTexpand;
bool bDecodeMaker;
bool bHistoEn; // Histogram calcs enabled?
bool bStatClipEn; // Enable scan decode clip stats?
bool bDumpHistoY; // Dump full Y DC Histogram
bool bDbSubmitNet; // Submit new entries to net?
bool bExifHideUnknown; // Hide unknown exif tags?
unsigned nErrMaxDecodeScan; // Max # errs to show in scan decode
bool bCoachReprocessAuto; // Coach msg: Need to reprocess or change to auto
bool bCoachDecodeIdct; // Coach msg: Warn about slow AC decode / lowres DC
// Extra config (not in registry)
bool bDecodeColorConvert; // Do we do color convert after scan decode?
};