diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-02 12:32:44 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-02 12:32:55 +0300 |
commit | 931a7dc1ac0dbc7e6c1083583ced915e572f5b47 (patch) | |
tree | 9fe9a6448d44030e26aa7107ce16044ed413e0d0 /protocols/CurrencyRates/src/stdafx.h | |
parent | dd7d9954042254e66e3bbbec7195c6be8b1a0663 (diff) |
all protocols (even virtual ones) moved to the Protocols folder
Diffstat (limited to 'protocols/CurrencyRates/src/stdafx.h')
-rw-r--r-- | protocols/CurrencyRates/src/stdafx.h | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/protocols/CurrencyRates/src/stdafx.h b/protocols/CurrencyRates/src/stdafx.h new file mode 100644 index 0000000000..d2bc83fd18 --- /dev/null +++ b/protocols/CurrencyRates/src/stdafx.h @@ -0,0 +1,113 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#pragma once + +#undef _HAS_EXCEPTIONS +#define _HAS_EXCEPTIONS 1 + +#include <windows.h> +#include <mshtml.h> +#include <comdef.h> +#include <commctrl.h> +#include <ShellAPI.h> +#include <sys/stat.h> +#include <CommDlg.h> +#include <fstream> +#include <msapi/comptr.h> + +#include <newpluginapi.h> +#include <m_database.h> +#include <win2k.h> +#include <m_xml.h> +#include <m_clist.h> +#include <m_langpack.h> +#include <m_options.h> +#include <m_protosvc.h> +#include <m_extraicons.h> +#include <m_icolib.h> +#include <m_genmenu.h> +#include <m_netlib.h> +#include <m_popup.h> +#include <m_userinfo.h> +#include <m_gui.h> + +#include <m_variables.h> +#include <m_CurrencyRates.h> +#include <m_toptoolbar.h> + +#include <boost\date_time\posix_time\posix_time.hpp> +#include <boost\date_time\c_local_time_adjustor.hpp> + +typedef std::wstring tstring; +typedef std::wostringstream tostringstream; +typedef std::wistringstream tistringstream; +typedef std::wofstream tofstream; +typedef std::wifstream tifstream; +typedef std::wostream tostream; +typedef std::wistream tistream; +typedef boost::posix_time::wtime_input_facet ttime_input_facet; +typedef boost::posix_time::wtime_facet ttime_facet; + +inline std::string currencyrates_t2a(const wchar_t* t) +{ + std::string s; + char* p = mir_u2a(t); + if (p) { + s = p; + mir_free(p); + } + return s; +} + +inline tstring currencyrates_a2t(const char* s) +{ + tstring t; + wchar_t* p = mir_a2u(s); + if (p) { + t = p; + mir_free(p); + } + return t; +} + +#include "resource.h" +#include "version.h" +#include "IconLib.h" +#include "CurrencyRateInfoDlg.h" +#include "ModuleInfo.h" +#include "DBUtils.h" +#include "HTTPSession.h" +#include "CurrencyConverter.h" +#include "WinCtrlHelper.h" +#include "ImportExport.h" +#include "ComHelper.h" +#include "Log.h" +#include "CommonOptionDlg.h" +#include "EconomicRateInfo.h" +#include "SettingsDlg.h" +#include "CreateFilePath.h" +#include "Locale.h" +#include "ExtraImages.h" +#include "IsWithinAccuracy.h" +#include "ICurrencyRatesProvider.h" +#include "CurrencyRatesProviderBase.h" + +#define CHART_IMPLEMENT +#ifdef CHART_IMPLEMENT +#include "CurrencyRateChart.h" +#include "Chart.h" +#endif +#include "IHTMLParser.h" +#include "IHTMLEngine.h" +#include "HTMLParserMS.h" + +struct CMPlugin : public PLUGIN<CMPlugin> +{ + CMPlugin(); + + int Load() override; + int Unload() override; +}; |