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
|
#include "StdAfx.h"
CCurrencyRatesProviderVisitorDbSettings::CCurrencyRatesProviderVisitorDbSettings() :
m_pszDbRefreshRateType(nullptr),
m_pszDbRefreshRateValue(nullptr),
m_pszDbDisplayNameFormat(nullptr),
m_pszDefDisplayFormat(nullptr),
m_pszDefLogFileFormat(nullptr),
m_pszDefHistoryFormat(nullptr),
m_pszXMLIniFileName(nullptr),
m_pszDbStatusMsgFormat(nullptr),
m_pszDefStatusMsgFormat(nullptr),
m_pszDbLogMode(nullptr),
m_pszDbHistoryFormat(nullptr),
m_pszDbHistoryCondition(nullptr),
m_pszDbLogFile(nullptr),
m_pszDbLogFormat(nullptr),
m_pszDbLogCondition(nullptr),
m_pszDbPopupFormat(nullptr),
m_pszDefPopupFormat(nullptr),
m_pszDbPopupCondition(nullptr),
m_pszDbPopupColourMode(nullptr),
m_pszDbPopupBkColour(nullptr),
m_pszDbPopupTextColour(nullptr),
m_pszDbPopupDelayMode(nullptr),
m_pszDbPopupDelayTimeout(nullptr),
m_pszDbPopupHistoryFlag(nullptr),
m_pszDbTendencyFormat(nullptr),
m_pszDefTendencyFormat(L"%r>%p")
{
}
CCurrencyRatesProviderVisitorDbSettings::~CCurrencyRatesProviderVisitorDbSettings()
{
}
void CCurrencyRatesProviderVisitorDbSettings::Visit(const CCurrencyRatesProviderBase&/* rProvider*/)
{
m_pszDefLogFileFormat = L"%s\\t%t\\t%r\\n";
m_pszDefHistoryFormat = L"%s %r";
m_pszDefPopupFormat = L"\\nCurrent = %r\\nPrevious = %p";
}
void CCurrencyRatesProviderVisitorDbSettings::Visit(const CCurrencyRatesProviderCurrencyConverter&)
{
m_pszDbRefreshRateType = "CC_RefreshRateType";
m_pszDbRefreshRateValue = "CC_RefreshRateValue";
m_pszDbDisplayNameFormat = "CC_DspNameFrmt";
m_pszDefDisplayFormat = L"1 %f = %r %i";
m_pszXMLIniFileName = L"CC.xml";
m_pszDbStatusMsgFormat = "CC_StatusMessageFormat";
m_pszDbLogMode = "CC_LogMode";
m_pszDbHistoryFormat = "CC_HistoryFormat";
m_pszDbHistoryCondition = "CC_AddToHistoryOnlyIfValueIsChanged";
m_pszDbLogFile = "CC_LogFile";
m_pszDbLogFormat = "CC_LogFileFormat";
m_pszDbLogCondition = "CC_AddToLogOnlyIfValueIsChanged";
m_pszDbPopupFormat = "CC_PopupFormat";
m_pszDbPopupCondition = "CC_ShowPopupOnlyIfValueChanged";
m_pszDbPopupColourMode = "CC_PopupColourMode";
m_pszDbPopupBkColour = "CC_PopupColourBk";
m_pszDbPopupTextColour = "CC_PopupColourText";
m_pszDbPopupDelayMode = "CC_PopupDelayMode";
m_pszDbPopupDelayTimeout = "CC_PopupDelayTimeout";
m_pszDbPopupHistoryFlag = "CC_PopupHistoryFlag";
m_pszDbTendencyFormat = "CC_TendencyFormat";
}
|