summaryrefslogtreecommitdiff
path: root/plugins/Quotes/QuotesProviderVisitorTendency.h
blob: fa0f04c5f045da3a053ae79fa2cb808eaa0bd56f (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
26
27
28
29
#ifndef __AD721194_E9944366_9CF1_0307460EF32F_QuotesProviderVisitorTendency_h__
#define __AD721194_E9944366_9CF1_0307460EF32F_QuotesProviderVisitorTendency_h__

#include "quotesprovidervisitor.h"

class CQuotesProviderVisitorTendency : public CQuotesProviderVisitor
{
public:
	CQuotesProviderVisitorTendency(HANDLE hContact,TCHAR chr);
	
	bool IsValid()const{return m_bValid;}
	double GetResult()const{return m_dResult;}

private:
	virtual void Visit(const CQuotesProviderBase& rProvider);
	virtual void Visit(const CQuotesProviderGoogleFinance& rProvider);
	virtual void Visit(const CQuotesProviderYahoo& rProvider);

private:
	void GetValue(LPCSTR pszDbKeyName);

private:
	HANDLE m_hContact;
	TCHAR m_chr;
	bool m_bValid;
	double m_dResult;
};

#endif //__AD721194_E9944366_9CF1_0307460EF32F_QuotesProviderVisitorTendency_h__