summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/QuotesProviderVisitorFormatSpecificator.cpp
diff options
context:
space:
mode:
authorDioksin <dioksin@ua.fm>2018-06-27 18:03:32 +0300
committerDioksin <dioksin@ua.fm>2018-06-27 18:03:32 +0300
commitc27c86cb021b6bf789ee674fab29164448e0c251 (patch)
tree389d4fe0a7ed2d7d8da360e8a3a46f969e17b981 /plugins/Quotes/src/QuotesProviderVisitorFormatSpecificator.cpp
parentf53ec5ce1181d1595178a8096c4798a7258774e1 (diff)
Quotes plugin
Quotes plugin: as google is not supported currency conversion now it was removed and code to work with https://free.currencyconverterapi.com/ was implemented. So Gooogle goodbye!
Diffstat (limited to 'plugins/Quotes/src/QuotesProviderVisitorFormatSpecificator.cpp')
-rw-r--r--plugins/Quotes/src/QuotesProviderVisitorFormatSpecificator.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Quotes/src/QuotesProviderVisitorFormatSpecificator.cpp b/plugins/Quotes/src/QuotesProviderVisitorFormatSpecificator.cpp
index 5dc1bd1848..09a62442ab 100644
--- a/plugins/Quotes/src/QuotesProviderVisitorFormatSpecificator.cpp
+++ b/plugins/Quotes/src/QuotesProviderVisitorFormatSpecificator.cpp
@@ -14,15 +14,6 @@ void CQuotesProviderVisitorFormatSpecificator::Visit(const CQuotesProviderDukasC
m_aSpecificators.push_back(CFormatSpecificator(L"%d", TranslateT("Quote Name")));
}
-void CQuotesProviderVisitorFormatSpecificator::Visit(const CQuotesProviderGoogle&/* rProvider*/)
-{
- m_aSpecificators.push_back(CFormatSpecificator(L"%F", TranslateT("From Currency Full Name")));
- m_aSpecificators.push_back(CFormatSpecificator(L"%f", TranslateT("From Currency Short Name")));
- m_aSpecificators.push_back(CFormatSpecificator(L"%I", TranslateT("Into Currency Full Name")));
- m_aSpecificators.push_back(CFormatSpecificator(L"%i", TranslateT("Into Currency Short Name")));
- m_aSpecificators.push_back(CFormatSpecificator(L"%s", TranslateT("Short notation for \"%f/%i\"")));
-}
-
void CQuotesProviderVisitorFormatSpecificator::Visit(const CQuotesProviderBase&/* rProvider*/)
{
m_aSpecificators.push_back(CFormatSpecificator(L"%S", TranslateT("Source of Information")));
@@ -60,3 +51,12 @@ void CQuotesProviderVisitorFormatSpecificator::Visit(const CQuotesProviderYahoo&
m_aSpecificators.push_back(CFormatSpecificator(L"%P", TranslateT("Previous Close")));
m_aSpecificators.push_back(CFormatSpecificator(L"%c", TranslateT("Change")));
}
+
+void CQuotesProviderVisitorFormatSpecificator::Visit(const CQuotesProviderCurrencyConverter&)
+{
+ m_aSpecificators.push_back(CFormatSpecificator(L"%F", TranslateT("From Currency Full Name")));
+ m_aSpecificators.push_back(CFormatSpecificator(L"%f", TranslateT("From Currency Short Name")));
+ m_aSpecificators.push_back(CFormatSpecificator(L"%I", TranslateT("Into Currency Full Name")));
+ m_aSpecificators.push_back(CFormatSpecificator(L"%i", TranslateT("Into Currency Short Name")));
+ m_aSpecificators.push_back(CFormatSpecificator(L"%s", TranslateT("Short notation for \"%f/%i\"")));
+} \ No newline at end of file