summaryrefslogtreecommitdiff
path: root/plugins/Quotes/QuotesProviderVisitorTendency.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-05-19 14:24:27 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-05-19 14:24:27 +0000
commit162e60d66c78bd51aa44c691fe4f4e2f1deb990f (patch)
tree789cf10a148bf3912579e18393604e268ff9934c /plugins/Quotes/QuotesProviderVisitorTendency.h
parent6a22ccd156510e65fb91f45a81a9e87d5ad07568 (diff)
added Quotes
git-svn-id: http://svn.miranda-ng.org/main/trunk@76 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/QuotesProviderVisitorTendency.h')
-rw-r--r--plugins/Quotes/QuotesProviderVisitorTendency.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/plugins/Quotes/QuotesProviderVisitorTendency.h b/plugins/Quotes/QuotesProviderVisitorTendency.h
new file mode 100644
index 0000000000..fa0f04c5f0
--- /dev/null
+++ b/plugins/Quotes/QuotesProviderVisitorTendency.h
@@ -0,0 +1,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__