summaryrefslogtreecommitdiff
path: root/plugins/CurrencyRates/src/CurrencyRatesProviderVisitorTendency.h
blob: d0497889aebd79aff095305ea6195487089cb909 (plain)
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
#ifndef __AD721194_E9944366_9CF1_0307460EF32F_CurrencyRatesProviderVisitorTendency_h__
#define __AD721194_E9944366_9CF1_0307460EF32F_CurrencyRatesProviderVisitorTendency_h__

class CCurrencyRatesProviderVisitorTendency : public CCurrencyRatesProviderVisitor
{
public:
	CCurrencyRatesProviderVisitorTendency(MCONTACT hContact, wchar_t chr);

	bool IsValid()const{ return m_bValid; }
	double GetResult()const{ return m_dResult; }

private:
	virtual void Visit(const CCurrencyRatesProviderBase& rProvider);

private:
	void GetValue(LPCSTR pszDbKeyName);

private:
	MCONTACT m_hContact;
	wchar_t m_chr;
	bool m_bValid;
	double m_dResult;
};

#endif //__AD721194_E9944366_9CF1_0307460EF32F_CurrencyRatesProviderVisitorTendency_h__