From d262ec92c8c0a5a91c52f91921776c9d3982881a Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 30 Jun 2013 18:38:28 +0000 Subject: preparing weather ini information for VI report git-svn-id: http://svn.miranda-ng.org/main/trunk@5196 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/VersionInfo/src/CVersionInfo.cpp | 10 ++++++---- plugins/VersionInfo/src/CVersionInfo.h | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'plugins/VersionInfo') diff --git a/plugins/VersionInfo/src/CVersionInfo.cpp b/plugins/VersionInfo/src/CVersionInfo.cpp index bc84d46001..a58bc5bb72 100644 --- a/plugins/VersionInfo/src/CVersionInfo.cpp +++ b/plugins/VersionInfo/src/CVersionInfo.cpp @@ -707,7 +707,7 @@ bool CVersionInfo::GetPluginLists() DWORD loadError; // SYSTEMTIME sysTime; //for timestamp - //bWeatherPlugin = false; + bWeatherPlugin = false; mirandaVersion = (DWORD)CallService(MS_SYSTEM_GETVERSION, 0, 0); { GetModuleFileName(GetModuleHandle(NULL), szMirandaPath, SIZEOF(szMirandaPath)); @@ -732,8 +732,8 @@ bool CVersionInfo::GetPluginLists() if (!ValidExtension(fd.cFileName, _T("dll"))) continue; //do not report plugins that do not have extension .dll - //if (_tcsicmp(fd.cFileName, _T("weather.dll")) == 0) - //bWeatherPlugin = true; + if (_tcsicmp(fd.cFileName, _T("weather.dll")) == 0) + bWeatherPlugin = true; hInstPlugin = GetModuleHandle(fd.cFileName); //try to get the handle of the module @@ -1153,7 +1153,9 @@ std::tstring CVersionInfo::GetInformationsAsString(int bDisableForumStyle) { out.append(GetListAsString(listUnloadablePlugins, flags, beautify)); BeautifyReport(beautify, normalPluginsEnd, _T(""), out); } - //if (bWeatherPlugin) + if (bWeatherPlugin) { + out.append(_T("\r\nWeather ini files:\r\n-------------------------------------------------------------------------------\r\n")); + } AddInfoFooter(suppressHeader, forumStyle, beautify, out); return out; diff --git a/plugins/VersionInfo/src/CVersionInfo.h b/plugins/VersionInfo/src/CVersionInfo.h index 51155b9148..11eadb078f 100644 --- a/plugins/VersionInfo/src/CVersionInfo.h +++ b/plugins/VersionInfo/src/CVersionInfo.h @@ -61,7 +61,7 @@ class CVersionInfo unsigned int luiEvents; unsigned int luiUnreadEvents; unsigned int luiDBSize; - //bool bWeatherPlugin; + bool bWeatherPlugin; //Configuration bool GetLinkedModulesInfo(TCHAR *moduleName, std::tstring &linkedModules); @@ -78,7 +78,7 @@ class CVersionInfo bool GetLangpackInfo(); bool GetPluginLists(); bool GetEventCount(); //TODO - //bool GetWeatherInfo(); + bool GetWeatherInfo(); //OSInformations bool GetOSVersion(); bool GetHWSettings(); -- cgit v1.2.3