From 4a966be3c32e745b2567e51c27766942f798f77d Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 26 Jul 2015 12:33:08 +0000 Subject: common projects git-svn-id: http://svn.miranda-ng.org/main/trunk@14724 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NotifyAnything/NotifyAnything.vcxproj | 28 +++ .../NotifyAnything/NotifyAnything.vcxproj.filters | 4 + plugins/NotifyAnything/NotifyAnything_10.vcxproj | 199 -------------------- .../NotifyAnything_10.vcxproj.filters | 47 ----- plugins/NotifyAnything/NotifyAnything_12.vcxproj | 202 --------------------- .../NotifyAnything_12.vcxproj.filters | 47 ----- plugins/NotifyAnything/NotifyAnything_14.vcxproj | 202 --------------------- .../NotifyAnything_14.vcxproj.filters | 47 ----- plugins/NotifyAnything/src/common.h | 50 ----- plugins/NotifyAnything/src/main.cpp | 2 +- plugins/NotifyAnything/src/options.cpp | 2 +- plugins/NotifyAnything/src/stdafx.cpp | 18 -- plugins/NotifyAnything/src/stdafx.cxx | 18 ++ plugins/NotifyAnything/src/stdafx.h | 50 +++++ 14 files changed, 102 insertions(+), 814 deletions(-) create mode 100644 plugins/NotifyAnything/NotifyAnything.vcxproj create mode 100644 plugins/NotifyAnything/NotifyAnything.vcxproj.filters delete mode 100644 plugins/NotifyAnything/NotifyAnything_10.vcxproj delete mode 100644 plugins/NotifyAnything/NotifyAnything_10.vcxproj.filters delete mode 100644 plugins/NotifyAnything/NotifyAnything_12.vcxproj delete mode 100644 plugins/NotifyAnything/NotifyAnything_12.vcxproj.filters delete mode 100644 plugins/NotifyAnything/NotifyAnything_14.vcxproj delete mode 100644 plugins/NotifyAnything/NotifyAnything_14.vcxproj.filters delete mode 100644 plugins/NotifyAnything/src/common.h delete mode 100644 plugins/NotifyAnything/src/stdafx.cpp create mode 100644 plugins/NotifyAnything/src/stdafx.cxx create mode 100644 plugins/NotifyAnything/src/stdafx.h (limited to 'plugins/NotifyAnything') diff --git a/plugins/NotifyAnything/NotifyAnything.vcxproj b/plugins/NotifyAnything/NotifyAnything.vcxproj new file mode 100644 index 0000000000..89341aebd6 --- /dev/null +++ b/plugins/NotifyAnything/NotifyAnything.vcxproj @@ -0,0 +1,28 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + NotifyAnything + {F5E3FAFE-B650-4736-8D27-FA53866668C6} + + + + + \ No newline at end of file diff --git a/plugins/NotifyAnything/NotifyAnything.vcxproj.filters b/plugins/NotifyAnything/NotifyAnything.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/plugins/NotifyAnything/NotifyAnything.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/plugins/NotifyAnything/NotifyAnything_10.vcxproj b/plugins/NotifyAnything/NotifyAnything_10.vcxproj deleted file mode 100644 index 564854f35a..0000000000 --- a/plugins/NotifyAnything/NotifyAnything_10.vcxproj +++ /dev/null @@ -1,199 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - NotifyAnything - {F5E3FAFE-B650-4736-8D27-FA53866668C6} - - - - DynamicLibrary - Unicode - - - DynamicLibrary - Unicode - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - true - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.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 - - - - Full - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - common.h - Level3 - 4996;%(DisableSpecificWarnings) - OnlyExplicitInline - Size - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - ws2_32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - Full - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - common.h - Level3 - 4996;%(DisableSpecificWarnings) - OnlyExplicitInline - Size - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - ws2_32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Use - common.h - Level3 - EditAndContinue - 4996;%(DisableSpecificWarnings) - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - ws2_32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Use - common.h - Level3 - 4996;%(DisableSpecificWarnings) - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - ws2_32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - - - - - - - Create - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/NotifyAnything/NotifyAnything_10.vcxproj.filters b/plugins/NotifyAnything/NotifyAnything_10.vcxproj.filters deleted file mode 100644 index ec9e88d5fd..0000000000 --- a/plugins/NotifyAnything/NotifyAnything_10.vcxproj.filters +++ /dev/null @@ -1,47 +0,0 @@ - - - - - {7e24b5e6-2653-4143-a42b-d3486d5c416f} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {596c44cc-f8d3-4837-8fb4-49d4aa913452} - h;hpp;hxx;hm;inl - - - {9c926bbb-252f-489c-8433-2db02ad00ba7} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/NotifyAnything/NotifyAnything_12.vcxproj b/plugins/NotifyAnything/NotifyAnything_12.vcxproj deleted file mode 100644 index c0fc58a963..0000000000 --- a/plugins/NotifyAnything/NotifyAnything_12.vcxproj +++ /dev/null @@ -1,202 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - NotifyAnything - {F5E3FAFE-B650-4736-8D27-FA53866668C6} - - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - Unicode - v120_xp - true - - - DynamicLibrary - Unicode - v120_xp - true - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.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 - - - - Full - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - common.h - Level3 - 4996;%(DisableSpecificWarnings) - OnlyExplicitInline - Size - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - ws2_32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - - - - - Full - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - common.h - Level3 - 4996;%(DisableSpecificWarnings) - OnlyExplicitInline - Size - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - ws2_32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Use - common.h - Level3 - EditAndContinue - 4996;%(DisableSpecificWarnings) - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - ws2_32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - false - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Use - common.h - Level3 - 4996;%(DisableSpecificWarnings) - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - ws2_32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - - - - - - - Create - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/NotifyAnything/NotifyAnything_12.vcxproj.filters b/plugins/NotifyAnything/NotifyAnything_12.vcxproj.filters deleted file mode 100644 index ec9e88d5fd..0000000000 --- a/plugins/NotifyAnything/NotifyAnything_12.vcxproj.filters +++ /dev/null @@ -1,47 +0,0 @@ - - - - - {7e24b5e6-2653-4143-a42b-d3486d5c416f} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {596c44cc-f8d3-4837-8fb4-49d4aa913452} - h;hpp;hxx;hm;inl - - - {9c926bbb-252f-489c-8433-2db02ad00ba7} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/NotifyAnything/NotifyAnything_14.vcxproj b/plugins/NotifyAnything/NotifyAnything_14.vcxproj deleted file mode 100644 index 2575306533..0000000000 --- a/plugins/NotifyAnything/NotifyAnything_14.vcxproj +++ /dev/null @@ -1,202 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - NotifyAnything - {F5E3FAFE-B650-4736-8D27-FA53866668C6} - - - - DynamicLibrary - Unicode - v140_xp - - - DynamicLibrary - Unicode - v140_xp - - - DynamicLibrary - Unicode - v140_xp - true - - - DynamicLibrary - Unicode - v140_xp - true - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.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 - - - - Full - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - common.h - Level3 - 4996;%(DisableSpecificWarnings) - OnlyExplicitInline - Size - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - ws2_32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin14\lib - - - - - Full - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - common.h - Level3 - 4996;%(DisableSpecificWarnings) - OnlyExplicitInline - Size - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - ws2_32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin14\lib - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Use - common.h - Level3 - EditAndContinue - 4996;%(DisableSpecificWarnings) - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - ws2_32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin14\lib - false - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Use - common.h - Level3 - 4996;%(DisableSpecificWarnings) - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - ws2_32.lib;comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin14\lib - - - - - - - Create - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/NotifyAnything/NotifyAnything_14.vcxproj.filters b/plugins/NotifyAnything/NotifyAnything_14.vcxproj.filters deleted file mode 100644 index ec9e88d5fd..0000000000 --- a/plugins/NotifyAnything/NotifyAnything_14.vcxproj.filters +++ /dev/null @@ -1,47 +0,0 @@ - - - - - {7e24b5e6-2653-4143-a42b-d3486d5c416f} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {596c44cc-f8d3-4837-8fb4-49d4aa913452} - h;hpp;hxx;hm;inl - - - {9c926bbb-252f-489c-8433-2db02ad00ba7} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/NotifyAnything/src/common.h b/plugins/NotifyAnything/src/common.h deleted file mode 100644 index 3b2ee7f221..0000000000 --- a/plugins/NotifyAnything/src/common.h +++ /dev/null @@ -1,50 +0,0 @@ -#define _CRT_SECURE_NO_DEPRECATE - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "newpluginapi.h" -#include "m_options.h" -#include "m_skin.h" -#include "m_langpack.h" -#include "m_database.h" -#include "m_popup.h" - -#include "resource.h" -#include "Version.h" - -extern HINSTANCE hInst; - -const char PlugName[] = "NotifyAnything"; - -//--------------------------- -//---Internal Hooks (see main.c) -//---(Workaround till CallServiceSync is available) - -struct NASettings { - enum sound_t { never, always, request }; - - bool local_only, debug_messages, log_to_file, use_pcspeaker, allow_execute; - sound_t sound; - int port; - std::tstring password, log_filename; -}; - -extern NASettings g_settings; - -void stop_threads(); -void start_threads(); - -void save_settings(); -void load_settings(); - -int OptionsInitialize(WPARAM wParam, LPARAM lParam); - -extern std::tstring g_mirandaDir; -#define LOG_ID LPGEN("NotifyAnything") diff --git a/plugins/NotifyAnything/src/main.cpp b/plugins/NotifyAnything/src/main.cpp index c82c54019f..932b307f84 100644 --- a/plugins/NotifyAnything/src/main.cpp +++ b/plugins/NotifyAnything/src/main.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" void cslog(const TCHAR *what, const TCHAR *file, int line) { diff --git a/plugins/NotifyAnything/src/options.cpp b/plugins/NotifyAnything/src/options.cpp index 109654a678..589c0f79f0 100644 --- a/plugins/NotifyAnything/src/options.cpp +++ b/plugins/NotifyAnything/src/options.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" NASettings g_settings; diff --git a/plugins/NotifyAnything/src/stdafx.cpp b/plugins/NotifyAnything/src/stdafx.cpp deleted file mode 100644 index c5fe5abaad..0000000000 --- a/plugins/NotifyAnything/src/stdafx.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org) - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation version 2 -of the License. - -This program 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 General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - -#include "common.h" \ No newline at end of file diff --git a/plugins/NotifyAnything/src/stdafx.cxx b/plugins/NotifyAnything/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/NotifyAnything/src/stdafx.cxx @@ -0,0 +1,18 @@ +/* +Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org) + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation version 2 +of the License. + +This program 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 General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#include "stdafx.h" \ No newline at end of file diff --git a/plugins/NotifyAnything/src/stdafx.h b/plugins/NotifyAnything/src/stdafx.h new file mode 100644 index 0000000000..3b2ee7f221 --- /dev/null +++ b/plugins/NotifyAnything/src/stdafx.h @@ -0,0 +1,50 @@ +#define _CRT_SECURE_NO_DEPRECATE + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "newpluginapi.h" +#include "m_options.h" +#include "m_skin.h" +#include "m_langpack.h" +#include "m_database.h" +#include "m_popup.h" + +#include "resource.h" +#include "Version.h" + +extern HINSTANCE hInst; + +const char PlugName[] = "NotifyAnything"; + +//--------------------------- +//---Internal Hooks (see main.c) +//---(Workaround till CallServiceSync is available) + +struct NASettings { + enum sound_t { never, always, request }; + + bool local_only, debug_messages, log_to_file, use_pcspeaker, allow_execute; + sound_t sound; + int port; + std::tstring password, log_filename; +}; + +extern NASettings g_settings; + +void stop_threads(); +void start_threads(); + +void save_settings(); +void load_settings(); + +int OptionsInitialize(WPARAM wParam, LPARAM lParam); + +extern std::tstring g_mirandaDir; +#define LOG_ID LPGEN("NotifyAnything") -- cgit v1.2.3