From 787cbfe91acc56cc792dcf3db1b8b802cd3a2337 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Sat, 4 Aug 2012 14:02:25 +0000 Subject: PackUpdater renamed to PluginUpdater - part 3 git-svn-id: http://svn.miranda-ng.org/main/trunk@1352 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/PackUpdater_10.vcxproj | 225 --------------------- .../PluginUpdater/PackUpdater_10.vcxproj.filters | 109 ---------- plugins/PluginUpdater/PluginUpdater_10.vcxproj | 225 +++++++++++++++++++++ .../PluginUpdater/PluginUpdater_10.vcxproj.filters | 109 ++++++++++ plugins/PluginUpdater/src/PackUpdater.cpp | 106 ---------- plugins/PluginUpdater/src/PluginUpdater.cpp | 106 ++++++++++ 6 files changed, 440 insertions(+), 440 deletions(-) delete mode 100644 plugins/PluginUpdater/PackUpdater_10.vcxproj delete mode 100644 plugins/PluginUpdater/PackUpdater_10.vcxproj.filters create mode 100644 plugins/PluginUpdater/PluginUpdater_10.vcxproj create mode 100644 plugins/PluginUpdater/PluginUpdater_10.vcxproj.filters delete mode 100644 plugins/PluginUpdater/src/PackUpdater.cpp create mode 100644 plugins/PluginUpdater/src/PluginUpdater.cpp (limited to 'plugins') diff --git a/plugins/PluginUpdater/PackUpdater_10.vcxproj b/plugins/PluginUpdater/PackUpdater_10.vcxproj deleted file mode 100644 index ce340b3835..0000000000 --- a/plugins/PluginUpdater/PackUpdater_10.vcxproj +++ /dev/null @@ -1,225 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - PluginUpdater - {21F6C0E4-DD1A-49E6-82FD-64574BB902BD} - - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - - - DynamicLibrary - Unicode - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Disabled - ..\..\include;..\ExternalAPI;.\src\Minizip;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - MultiThreadedDebugDLL - Level3 - EditAndContinue - Use - Common.h - - - true - Windows - false - $(IntDir)$(TargetName).lib - $(SolutionDir)\lib - - - ..\..\include\msapi - _DEBUG;%(PreprocessorDefinitions) - - - - - Disabled - ..\..\include;..\ExternalAPI;.\Minizip;%(AdditionalIncludeDirectories) - WIN64;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - MultiThreadedDebugDLL - Level3 - Use - Common.h - - - true - Windows - false - $(IntDir)$(TargetName).lib - $(SolutionDir)\lib - - - ..\..\include\msapi - _DEBUG;%(PreprocessorDefinitions) - - - - - Full - Size - ..\..\include;..\ExternalAPI;.\Minizip;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Level3 - Use - Common.h - - - Windows - true - true - false - $(IntDir)$(TargetName).lib - true - $(SolutionDir)\lib - - - ..\..\include\msapi - NDEBUG;%(PreprocessorDefinitions) - - - - - Full - Size - ..\..\include;..\ExternalAPI;.\Minizip;%(AdditionalIncludeDirectories) - WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Level3 - Use - Common.h - - - Windows - true - true - false - $(IntDir)$(TargetName).lib - true - $(SolutionDir)\lib - - - ..\..\include\msapi - NDEBUG;%(PreprocessorDefinitions) - - - - - - - - - - - - - - - - - - - - - - - - NotUsing - NotUsing - NotUsing - NotUsing - - - NotUsing - NotUsing - NotUsing - NotUsing - - - NotUsing - NotUsing - NotUsing - NotUsing - - - - - Create - - - - - - - {e2a369cd-eda3-414f-8ad0-e732cd7ee68c} - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/PluginUpdater/PackUpdater_10.vcxproj.filters b/plugins/PluginUpdater/PackUpdater_10.vcxproj.filters deleted file mode 100644 index b22edcde74..0000000000 --- a/plugins/PluginUpdater/PackUpdater_10.vcxproj.filters +++ /dev/null @@ -1,109 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - {845e5403-a8df-47fc-a179-7ac2048f954d} - - - - - Resource Files - - - Resource Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Source Files\Minizip - - - Source Files\Minizip - - - Source Files\Minizip - - - Source Files\Minizip - - - Source Files\Minizip - - - Source Files\Minizip - - - Source Files\Minizip - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files\Minizip - - - Source Files\Minizip - - - Source Files\Minizip - - - - - Resource Files - - - Resource Files - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/PluginUpdater/PluginUpdater_10.vcxproj b/plugins/PluginUpdater/PluginUpdater_10.vcxproj new file mode 100644 index 0000000000..ce340b3835 --- /dev/null +++ b/plugins/PluginUpdater/PluginUpdater_10.vcxproj @@ -0,0 +1,225 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + PluginUpdater + {21F6C0E4-DD1A-49E6-82FD-64574BB902BD} + + + + DynamicLibrary + Unicode + true + + + DynamicLibrary + Unicode + true + + + DynamicLibrary + Unicode + + + DynamicLibrary + Unicode + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>10.0.30319.1 + $(SolutionDir)$(Configuration)\Plugins\ + $(SolutionDir)$(Configuration)64\Plugins\ + $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)\Plugins\ + $(SolutionDir)$(Configuration)64\Plugins\ + $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ + true + + + + Disabled + ..\..\include;..\ExternalAPI;.\src\Minizip;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + MultiThreadedDebugDLL + Level3 + EditAndContinue + Use + Common.h + + + true + Windows + false + $(IntDir)$(TargetName).lib + $(SolutionDir)\lib + + + ..\..\include\msapi + _DEBUG;%(PreprocessorDefinitions) + + + + + Disabled + ..\..\include;..\ExternalAPI;.\Minizip;%(AdditionalIncludeDirectories) + WIN64;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + MultiThreadedDebugDLL + Level3 + Use + Common.h + + + true + Windows + false + $(IntDir)$(TargetName).lib + $(SolutionDir)\lib + + + ..\..\include\msapi + _DEBUG;%(PreprocessorDefinitions) + + + + + Full + Size + ..\..\include;..\ExternalAPI;.\Minizip;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + Level3 + Use + Common.h + + + Windows + true + true + false + $(IntDir)$(TargetName).lib + true + $(SolutionDir)\lib + + + ..\..\include\msapi + NDEBUG;%(PreprocessorDefinitions) + + + + + Full + Size + ..\..\include;..\ExternalAPI;.\Minizip;%(AdditionalIncludeDirectories) + WIN64;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + Level3 + Use + Common.h + + + Windows + true + true + false + $(IntDir)$(TargetName).lib + true + $(SolutionDir)\lib + + + ..\..\include\msapi + NDEBUG;%(PreprocessorDefinitions) + + + + + + + + + + + + + + + + + + + + + + + + NotUsing + NotUsing + NotUsing + NotUsing + + + NotUsing + NotUsing + NotUsing + NotUsing + + + NotUsing + NotUsing + NotUsing + NotUsing + + + + + Create + + + + + + + {e2a369cd-eda3-414f-8ad0-e732cd7ee68c} + + + + + + + + + + + + \ No newline at end of file diff --git a/plugins/PluginUpdater/PluginUpdater_10.vcxproj.filters b/plugins/PluginUpdater/PluginUpdater_10.vcxproj.filters new file mode 100644 index 0000000000..b22edcde74 --- /dev/null +++ b/plugins/PluginUpdater/PluginUpdater_10.vcxproj.filters @@ -0,0 +1,109 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav + + + {845e5403-a8df-47fc-a179-7ac2048f954d} + + + + + Resource Files + + + Resource Files + + + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Source Files\Minizip + + + Source Files\Minizip + + + Source Files\Minizip + + + Source Files\Minizip + + + Source Files\Minizip + + + Source Files\Minizip + + + Source Files\Minizip + + + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files\Minizip + + + Source Files\Minizip + + + Source Files\Minizip + + + + + Resource Files + + + Resource Files + + + Resource Files + + + Resource Files + + + \ No newline at end of file diff --git a/plugins/PluginUpdater/src/PackUpdater.cpp b/plugins/PluginUpdater/src/PackUpdater.cpp deleted file mode 100644 index 73bcee1e13..0000000000 --- a/plugins/PluginUpdater/src/PackUpdater.cpp +++ /dev/null @@ -1,106 +0,0 @@ -/* -Copyright (C) 2010 Mataes - -This is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public -License as published by the Free Software Foundation; either -version 2 of the License, or (at your option) any later version. - -This is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Library General Public License for more details. - -You should have received a copy of the GNU Library General Public -License along with this file; see the file license.txt. If -not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. -*/ - -#include "common.h" - -HINSTANCE hInst = NULL; - -HANDLE hPluginUpdaterFolder = NULL, hCheckUpdates = NULL, hEmptyFolder = NULL; -TCHAR tszRoot[MAX_PATH] = {0}; -int hLangpack; - -PLUGININFOEX pluginInfoEx = { - sizeof(PLUGININFOEX), - __PLUGIN_NAME, - PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), - __DESCRIPTION, - __AUTHOR, - __AUTHOREMAIL, - __COPYRIGHT, - __AUTHORWEB, - UNICODE_AWARE, - //{29517BE5-779A-48e5-8950-CB4DE1D43172} - {0x29517be5, 0x779a, 0x48e5, {0x89, 0x50, 0xcb, 0x4d, 0xe1, 0xd4, 0x31, 0x72}} -}; - -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) -{ - hInst = hinstDLL; - return TRUE; -} - -extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) -{ - return &pluginInfoEx; -} - -extern "C" __declspec(dllexport) int Load(void) -{ - mir_getLP(&pluginInfoEx); - - TCHAR* tszFolder = Utils_ReplaceVarsT(_T("%miranda_userdata%\\"DEFAULT_UPDATES_FOLDER)); - lstrcpyn(tszRoot, tszFolder, SIZEOF(tszRoot)); - if (ServiceExists(MS_FOLDERS_REGISTER_PATH)) { - hPluginUpdaterFolder = FoldersRegisterCustomPathT(MODULEA, "Plugin Updater", MIRANDA_USERDATAT _T("\\")DEFAULT_UPDATES_FOLDER); - FoldersGetCustomPathT(hPluginUpdaterFolder, tszRoot, MAX_PATH, _T("")); - } - mir_free(tszFolder); - - LoadOptions(); - InitPopupList(); - NetlibInit(); - IcoLibInit(); - - // Add cheking update menu item - hCheckUpdates = CreateServiceFunction(MODNAME"/CheckUpdates", MenuCommand); - - CLISTMENUITEM mi = { 0 }; - mi.cbSize = sizeof(mi); - mi.position = -0x7FFFFFFF; - mi.flags = CMIF_ICONFROMICOLIB; - mi.icolibItem = Skin_GetIconHandle("check_update"); - mi.pszName = LPGEN("Check for plugin updates"); - mi.pszService = MODNAME"/CheckUpdates"; - Menu_AddMainMenuItem(&mi); - - // Add empty updates folder menu item - hEmptyFolder = CreateServiceFunction(MODNAME"/EmptyFolder", EmptyFolder); - - mi.icolibItem = Skin_GetIconHandle("empty_folder"); - mi.pszName = LPGEN("Clear plugin updates folder"); - mi.pszService = MODNAME"/EmptyFolder"; - Menu_AddMainMenuItem(&mi); - - // Add options hook - HookEvent(ME_OPT_INITIALISE, OptInit); - HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded); - HookEvent(ME_SYSTEM_PRESHUTDOWN, OnPreShutdown); - return 0; -} - -extern "C" __declspec(dllexport) int Unload(void) -{ - if (CheckThread) - CheckThread = NULL; - - NetlibUnInit(); - DestroyServiceFunction(hCheckUpdates); - DestroyServiceFunction(hEmptyFolder); - return 0; -} diff --git a/plugins/PluginUpdater/src/PluginUpdater.cpp b/plugins/PluginUpdater/src/PluginUpdater.cpp new file mode 100644 index 0000000000..73bcee1e13 --- /dev/null +++ b/plugins/PluginUpdater/src/PluginUpdater.cpp @@ -0,0 +1,106 @@ +/* +Copyright (C) 2010 Mataes + +This is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public +License as published by the Free Software Foundation; either +version 2 of the License, or (at your option) any later version. + +This is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with this file; see the file license.txt. If +not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. +*/ + +#include "common.h" + +HINSTANCE hInst = NULL; + +HANDLE hPluginUpdaterFolder = NULL, hCheckUpdates = NULL, hEmptyFolder = NULL; +TCHAR tszRoot[MAX_PATH] = {0}; +int hLangpack; + +PLUGININFOEX pluginInfoEx = { + sizeof(PLUGININFOEX), + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, + UNICODE_AWARE, + //{29517BE5-779A-48e5-8950-CB4DE1D43172} + {0x29517be5, 0x779a, 0x48e5, {0x89, 0x50, 0xcb, 0x4d, 0xe1, 0xd4, 0x31, 0x72}} +}; + +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + hInst = hinstDLL; + return TRUE; +} + +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +{ + return &pluginInfoEx; +} + +extern "C" __declspec(dllexport) int Load(void) +{ + mir_getLP(&pluginInfoEx); + + TCHAR* tszFolder = Utils_ReplaceVarsT(_T("%miranda_userdata%\\"DEFAULT_UPDATES_FOLDER)); + lstrcpyn(tszRoot, tszFolder, SIZEOF(tszRoot)); + if (ServiceExists(MS_FOLDERS_REGISTER_PATH)) { + hPluginUpdaterFolder = FoldersRegisterCustomPathT(MODULEA, "Plugin Updater", MIRANDA_USERDATAT _T("\\")DEFAULT_UPDATES_FOLDER); + FoldersGetCustomPathT(hPluginUpdaterFolder, tszRoot, MAX_PATH, _T("")); + } + mir_free(tszFolder); + + LoadOptions(); + InitPopupList(); + NetlibInit(); + IcoLibInit(); + + // Add cheking update menu item + hCheckUpdates = CreateServiceFunction(MODNAME"/CheckUpdates", MenuCommand); + + CLISTMENUITEM mi = { 0 }; + mi.cbSize = sizeof(mi); + mi.position = -0x7FFFFFFF; + mi.flags = CMIF_ICONFROMICOLIB; + mi.icolibItem = Skin_GetIconHandle("check_update"); + mi.pszName = LPGEN("Check for plugin updates"); + mi.pszService = MODNAME"/CheckUpdates"; + Menu_AddMainMenuItem(&mi); + + // Add empty updates folder menu item + hEmptyFolder = CreateServiceFunction(MODNAME"/EmptyFolder", EmptyFolder); + + mi.icolibItem = Skin_GetIconHandle("empty_folder"); + mi.pszName = LPGEN("Clear plugin updates folder"); + mi.pszService = MODNAME"/EmptyFolder"; + Menu_AddMainMenuItem(&mi); + + // Add options hook + HookEvent(ME_OPT_INITIALISE, OptInit); + HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded); + HookEvent(ME_SYSTEM_PRESHUTDOWN, OnPreShutdown); + return 0; +} + +extern "C" __declspec(dllexport) int Unload(void) +{ + if (CheckThread) + CheckThread = NULL; + + NetlibUnInit(); + DestroyServiceFunction(hCheckUpdates); + DestroyServiceFunction(hEmptyFolder); + return 0; +} -- cgit v1.2.3