From f7d2c07c102d940727b0f053864c04ed32a76ff8 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 13 Oct 2012 09:49:24 +0000 Subject: Quotes: folders restructurization git-svn-id: http://svn.miranda-ng.org/main/trunk@1905 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- .../QuotesProviderVisitorFormatSpecificator.cpp | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 protocols/Quotes/src/QuotesProviderVisitorFormatSpecificator.cpp (limited to 'protocols/Quotes/src/QuotesProviderVisitorFormatSpecificator.cpp') diff --git a/protocols/Quotes/src/QuotesProviderVisitorFormatSpecificator.cpp b/protocols/Quotes/src/QuotesProviderVisitorFormatSpecificator.cpp new file mode 100644 index 0000000000..9e643fe1b6 --- /dev/null +++ b/protocols/Quotes/src/QuotesProviderVisitorFormatSpecificator.cpp @@ -0,0 +1,63 @@ +#include "StdAfx.h" +#include "QuotesProviderVisitorFormatSpecificator.h" + +CQuotesProviderVisitorFormatSpecificator::CQuotesProviderVisitorFormatSpecificator() +{ +} + +CQuotesProviderVisitorFormatSpecificator::~CQuotesProviderVisitorFormatSpecificator() +{ +} + +void CQuotesProviderVisitorFormatSpecificator::Visit(const CQuotesProviderDukasCopy&/* rProvider*/) +{ + m_aSpecificators.push_back(CFormatSpecificator(_T("%s"),TranslateT("Quote Symbol"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%d"),TranslateT("Quote Name"))); +} + +void CQuotesProviderVisitorFormatSpecificator::Visit(const CQuotesProviderGoogle&/* rProvider*/) +{ + m_aSpecificators.push_back(CFormatSpecificator(_T("%F"),TranslateT("From Currency Full Name"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%f"),TranslateT("From Currency Short Name"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%I"),TranslateT("Into Currency Full Name"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%i"),TranslateT("Into Currency Short Name"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%s"),TranslateT("Short notation for \"%f/%i\""))); +} + +void CQuotesProviderVisitorFormatSpecificator::Visit(const CQuotesProviderBase&/* rProvider*/) +{ + m_aSpecificators.push_back(CFormatSpecificator(_T("%S"),TranslateT("Source of Information"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%r"),TranslateT("Rate Value"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%p"),TranslateT("Previous Rate Value"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%X"),TranslateT("Fetch Time"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%x"),TranslateT("Fetch Date"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%t"),TranslateT("Fetch Time and Date"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("\\%"),TranslateT("Percentage Character (%)"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("\\t"),TranslateT("Tabulation"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("\\\\"),TranslateT("Left slash (\\)"))); +} + +void CQuotesProviderVisitorFormatSpecificator::Visit(const CQuotesProviderGoogleFinance&/* rProvider*/) +{ + m_aSpecificators.push_back(CFormatSpecificator(_T("%s"),TranslateT("Quote Symbol"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%n"),TranslateT("Quote Name"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%o"),TranslateT("Open Price"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%d"),TranslateT("Percent Change to After Hours"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%y"),TranslateT("Percent Change to Yesterday Close"))); +} + +const CQuotesProviderVisitorFormatSpecificator::TFormatSpecificators& CQuotesProviderVisitorFormatSpecificator::GetSpecificators()const +{ + return m_aSpecificators; +} + +void CQuotesProviderVisitorFormatSpecificator::Visit(const CQuotesProviderYahoo& rProvider) +{ + m_aSpecificators.push_back(CFormatSpecificator(_T("%s"),TranslateT("Quote Symbol"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%n"),TranslateT("Quote Name"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%o"),TranslateT("Open Price"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%h"),TranslateT("Day's High"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%g"),TranslateT("Day's Low"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%P"),TranslateT("Previous Close"))); + m_aSpecificators.push_back(CFormatSpecificator(_T("%c"),TranslateT("Change"))); +} -- cgit v1.2.3