From 29c9f860fa28228dac98f810f0305a6d74f8a7f5 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 31 Jul 2015 18:28:09 +0000 Subject: sms: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14768 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- bin10/mir_dev.sln | 2 +- bin10/mir_full.sln | 2 +- bin10/mir_full_pro.sln | 2 +- bin12/mir_dev.sln | 2 +- bin12/mir_full.sln | 2 +- bin14/mir_dev.sln | 2 +- bin14/mir_full.sln | 2 +- plugins/SMS/sms.vcxproj | 31 ++++++ plugins/SMS/sms.vcxproj.filters | 4 + plugins/SMS/sms_10.vcxproj | 212 ------------------------------------ plugins/SMS/sms_10.vcxproj.filters | 86 --------------- plugins/SMS/sms_12.vcxproj | 215 ------------------------------------- plugins/SMS/sms_12.vcxproj.filters | 86 --------------- plugins/SMS/sms_14.vcxproj | 215 ------------------------------------- plugins/SMS/sms_14.vcxproj.filters | 86 --------------- plugins/SMS/src/SMS_svc.cpp | 2 +- plugins/SMS/src/common.h | 133 ----------------------- plugins/SMS/src/functions.cpp | 2 +- plugins/SMS/src/main.cpp | 2 +- plugins/SMS/src/options.cpp | 2 +- plugins/SMS/src/receive.cpp | 2 +- plugins/SMS/src/recvdlg.cpp | 2 +- plugins/SMS/src/send.cpp | 2 +- plugins/SMS/src/senddlg.cpp | 2 +- plugins/SMS/src/stdafx.cpp | 18 ---- plugins/SMS/src/stdafx.cxx | 18 ++++ plugins/SMS/src/stdafx.h | 131 ++++++++++++++++++++++ 27 files changed, 199 insertions(+), 1066 deletions(-) create mode 100644 plugins/SMS/sms.vcxproj create mode 100644 plugins/SMS/sms.vcxproj.filters delete mode 100644 plugins/SMS/sms_10.vcxproj delete mode 100644 plugins/SMS/sms_10.vcxproj.filters delete mode 100644 plugins/SMS/sms_12.vcxproj delete mode 100644 plugins/SMS/sms_12.vcxproj.filters delete mode 100644 plugins/SMS/sms_14.vcxproj delete mode 100644 plugins/SMS/sms_14.vcxproj.filters delete mode 100644 plugins/SMS/src/common.h delete mode 100644 plugins/SMS/src/stdafx.cpp create mode 100644 plugins/SMS/src/stdafx.cxx create mode 100644 plugins/SMS/src/stdafx.h diff --git a/bin10/mir_dev.sln b/bin10/mir_dev.sln index ad29ce2e2a..fd435f84e8 100644 --- a/bin10/mir_dev.sln +++ b/bin10/mir_dev.sln @@ -333,7 +333,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Clist_blind", "..\plugins\C EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StartPosition", "..\plugins\StartPosition\StartPosition_10.vcxproj", "{046C5F80-ABE5-488F-BFC8-B024D4AACC8C}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SMS", "..\plugins\SMS\sms_10.vcxproj", "{A3EA507E-C77E-4966-9AEE-51442AF96E4D}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SMS", "..\plugins\SMS\sms.vcxproj", "{A3EA507E-C77E-4966-9AEE-51442AF96E4D}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NoHistory", "..\plugins\NoHistory\NoHistory.vcxproj", "{ABF05E2C-C335-4BD1-8C3E-4C63285362CF}" EndProject diff --git a/bin10/mir_full.sln b/bin10/mir_full.sln index 2ee7213b49..a12884f4c0 100644 --- a/bin10/mir_full.sln +++ b/bin10/mir_full.sln @@ -340,7 +340,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Clist_blind", "..\plugins\C EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StartPosition", "..\plugins\StartPosition\StartPosition_10.vcxproj", "{046C5F80-ABE5-488F-BFC8-B024D4AACC8C}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SMS", "..\plugins\SMS\sms_10.vcxproj", "{A3EA507E-C77E-4966-9AEE-51442AF96E4D}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SMS", "..\plugins\SMS\sms.vcxproj", "{A3EA507E-C77E-4966-9AEE-51442AF96E4D}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HTTPServer", "..\plugins\HTTPServer\HTTPServer_10.vcxproj", "{F7A70398-AFA0-4A58-B645-85268F9517DE}" EndProject diff --git a/bin10/mir_full_pro.sln b/bin10/mir_full_pro.sln index 8a6c8eb09e..a7848f7c70 100644 --- a/bin10/mir_full_pro.sln +++ b/bin10/mir_full_pro.sln @@ -374,7 +374,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Clist_blind", "..\plugins\C EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StartPosition", "..\plugins\StartPosition\StartPosition_10.vcxproj", "{046C5F80-ABE5-488F-BFC8-B024D4AACC8C}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SMS", "..\plugins\SMS\sms_10.vcxproj", "{A3EA507E-C77E-4966-9AEE-51442AF96E4D}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SMS", "..\plugins\SMS\sms.vcxproj", "{A3EA507E-C77E-4966-9AEE-51442AF96E4D}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HTTPServer", "..\plugins\HTTPServer\HTTPServer_10.vcxproj", "{F7A70398-AFA0-4A58-B645-85268F9517DE}" EndProject diff --git a/bin12/mir_dev.sln b/bin12/mir_dev.sln index e429452040..07e9bb3bd0 100644 --- a/bin12/mir_dev.sln +++ b/bin12/mir_dev.sln @@ -340,7 +340,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Clist_blind", "..\plugins\C EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StartPosition", "..\plugins\StartPosition\StartPosition_12.vcxproj", "{046C5F80-ABE5-488F-BFC8-B024D4AACC8C}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SMS", "..\plugins\SMS\sms_12.vcxproj", "{A3EA507E-C77E-4966-9AEE-51442AF96E4D}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SMS", "..\plugins\SMS\sms.vcxproj", "{A3EA507E-C77E-4966-9AEE-51442AF96E4D}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NoHistory", "..\plugins\NoHistory\NoHistory.vcxproj", "{ABF05E2C-C335-4BD1-8C3E-4C63285362CF}" EndProject diff --git a/bin12/mir_full.sln b/bin12/mir_full.sln index ce5ddde1dd..61bf0cd673 100644 --- a/bin12/mir_full.sln +++ b/bin12/mir_full.sln @@ -344,7 +344,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Clist_blind", "..\plugins\C EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StartPosition", "..\plugins\StartPosition\StartPosition_12.vcxproj", "{046C5F80-ABE5-488F-BFC8-B024D4AACC8C}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SMS", "..\plugins\SMS\sms_12.vcxproj", "{A3EA507E-C77E-4966-9AEE-51442AF96E4D}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SMS", "..\plugins\SMS\sms.vcxproj", "{A3EA507E-C77E-4966-9AEE-51442AF96E4D}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HTTPServer", "..\plugins\HTTPServer\HTTPServer_12.vcxproj", "{F7A70398-AFA0-4A58-B645-85268F9517DE}" EndProject diff --git a/bin14/mir_dev.sln b/bin14/mir_dev.sln index df201009c9..f018f7e73b 100644 --- a/bin14/mir_dev.sln +++ b/bin14/mir_dev.sln @@ -340,7 +340,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Clist_blind", "..\plugins\C EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StartPosition", "..\plugins\StartPosition\StartPosition_14.vcxproj", "{046C5F80-ABE5-488F-BFC8-B024D4AACC8C}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SMS", "..\plugins\SMS\sms_14.vcxproj", "{A3EA507E-C77E-4966-9AEE-51442AF96E4D}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SMS", "..\plugins\SMS\sms.vcxproj", "{A3EA507E-C77E-4966-9AEE-51442AF96E4D}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NoHistory", "..\plugins\NoHistory\NoHistory.vcxproj", "{ABF05E2C-C335-4BD1-8C3E-4C63285362CF}" EndProject diff --git a/bin14/mir_full.sln b/bin14/mir_full.sln index 66e5ef7aba..dc89eef19b 100644 --- a/bin14/mir_full.sln +++ b/bin14/mir_full.sln @@ -344,7 +344,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Clist_blind", "..\plugins\C EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StartPosition", "..\plugins\StartPosition\StartPosition_14.vcxproj", "{046C5F80-ABE5-488F-BFC8-B024D4AACC8C}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SMS", "..\plugins\SMS\sms_14.vcxproj", "{A3EA507E-C77E-4966-9AEE-51442AF96E4D}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SMS", "..\plugins\SMS\sms.vcxproj", "{A3EA507E-C77E-4966-9AEE-51442AF96E4D}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HTTPServer", "..\plugins\HTTPServer\HTTPServer_14.vcxproj", "{F7A70398-AFA0-4A58-B645-85268F9517DE}" EndProject diff --git a/plugins/SMS/sms.vcxproj b/plugins/SMS/sms.vcxproj new file mode 100644 index 0000000000..49466f89eb --- /dev/null +++ b/plugins/SMS/sms.vcxproj @@ -0,0 +1,31 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + SMS + {A3EA507E-C77E-4966-9AEE-51442AF96E4D} + + + + + + + + \ No newline at end of file diff --git a/plugins/SMS/sms.vcxproj.filters b/plugins/SMS/sms.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/plugins/SMS/sms.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/plugins/SMS/sms_10.vcxproj b/plugins/SMS/sms_10.vcxproj deleted file mode 100644 index a4d38c739a..0000000000 --- a/plugins/SMS/sms_10.vcxproj +++ /dev/null @@ -1,212 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - SMS - {A3EA507E-C77E-4966-9AEE-51442AF96E4D} - - - - 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 - OnlyExplicitInline - Size - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - Full - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - common.h - Level3 - OnlyExplicitInline - Size - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Use - common.h - Level3 - EditAndContinue - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Use - common.h - Level3 - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin10\lib - - - - - - - - - - - - - Create - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/SMS/sms_10.vcxproj.filters b/plugins/SMS/sms_10.vcxproj.filters deleted file mode 100644 index e6fbbf8372..0000000000 --- a/plugins/SMS/sms_10.vcxproj.filters +++ /dev/null @@ -1,86 +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 - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/SMS/sms_12.vcxproj b/plugins/SMS/sms_12.vcxproj deleted file mode 100644 index 6c225bcf61..0000000000 --- a/plugins/SMS/sms_12.vcxproj +++ /dev/null @@ -1,215 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - SMS - {A3EA507E-C77E-4966-9AEE-51442AF96E4D} - - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - Unicode - true - v120_xp - - - DynamicLibrary - Unicode - true - v120_xp - - - - - - - - - - - - - - - - - - - <_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 - OnlyExplicitInline - Size - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - - - - - Full - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - common.h - Level3 - OnlyExplicitInline - Size - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Use - common.h - Level3 - EditAndContinue - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - false - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Use - common.h - Level3 - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin12\lib - - - - - - - - - - - - - Create - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/SMS/sms_12.vcxproj.filters b/plugins/SMS/sms_12.vcxproj.filters deleted file mode 100644 index e6fbbf8372..0000000000 --- a/plugins/SMS/sms_12.vcxproj.filters +++ /dev/null @@ -1,86 +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 - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/SMS/sms_14.vcxproj b/plugins/SMS/sms_14.vcxproj deleted file mode 100644 index 88c0a08862..0000000000 --- a/plugins/SMS/sms_14.vcxproj +++ /dev/null @@ -1,215 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - SMS - {A3EA507E-C77E-4966-9AEE-51442AF96E4D} - - - - DynamicLibrary - Unicode - v140_xp - - - DynamicLibrary - Unicode - v140_xp - - - DynamicLibrary - Unicode - true - v140_xp - - - DynamicLibrary - Unicode - true - v140_xp - - - - - - - - - - - - - - - - - - - <_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 - OnlyExplicitInline - Size - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin14\lib - - - - - Full - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Use - common.h - Level3 - OnlyExplicitInline - Size - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - false - $(IntDir)$(TargetName).lib - true - true - true - Windows - comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin14\lib - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Use - common.h - Level3 - EditAndContinue - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin14\lib - false - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Use - common.h - Level3 - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - false - $(IntDir)$(TargetName).lib - Windows - comctl32.lib;%(AdditionalDependencies) - $(ProfileDir)..\..\bin14\lib - - - - - - - - - - - - - Create - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/SMS/sms_14.vcxproj.filters b/plugins/SMS/sms_14.vcxproj.filters deleted file mode 100644 index e6fbbf8372..0000000000 --- a/plugins/SMS/sms_14.vcxproj.filters +++ /dev/null @@ -1,86 +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 - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/SMS/src/SMS_svc.cpp b/plugins/SMS/src/SMS_svc.cpp index 323e08f1d5..6fb8511a84 100644 --- a/plugins/SMS/src/SMS_svc.cpp +++ b/plugins/SMS/src/SMS_svc.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" int LoadServices(void) { diff --git a/plugins/SMS/src/common.h b/plugins/SMS/src/common.h deleted file mode 100644 index 5eae581d27..0000000000 --- a/plugins/SMS/src/common.h +++ /dev/null @@ -1,133 +0,0 @@ -#ifndef _COMMON_H -#define _COMMON_H - -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers -#define VC_EXTRALEAN - -#define _CRT_SECURE_NO_WARNINGS - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "AdditionalFunctions/InterlockedFunctions.h" -#include "AdditionalFunctions/ListMT.h" -#include "AdditionalFunctions/MemoryCompare.h" -#include "AdditionalFunctions/MemoryFindByte.h" -#include "resource.h" -#include "version.h" -#include "recvdlg.h" -#include "SMSConstans.h" -#include "senddlg.h" - -extern HINSTANCE hInst; - -// ñòðóêòóðà ñîäåðæàùàÿ èíôîðìàöèþ ïî ïîñòðîåíèþ ìåíþ èëè ðàñøèðåíûõ èêîíîê -struct GUI_DISPLAY_ITEM -{ - LPSTR lpszName; // èìÿ ñåðâèñà, îíî æå èìÿ â èêîëèáå - LPWSTR lpwszDescr; // òåêñòîâîå îïèñàíèå îòîáðàæàåìîå þçåðó - LONG defIcon; // èêîíêà èç ðåñóðñîâ - LPVOID lpFunc; // ôóíêöèÿ âûçûâàåìàÿ ìåíþ -}; - - -#define MAIN_MENU_ITEMS_COUNT 1 -#define CONTACT_MENU_ITEMS_COUNT 1 - - -typedef struct -{ - HANDLE hHeap; - HINSTANCE hInstance; - - HGENMENU hMainMenuItems[MAIN_MENU_ITEMS_COUNT+1]; - HGENMENU hContactMenuItems[CONTACT_MENU_ITEMS_COUNT+1]; - - LIST_MT lmtSendSMSWindowsListMT; - LIST_MT lmtRecvSMSWindowsListMT; - - PROTOACCOUNT **ppaSMSAccounts; - size_t dwSMSAccountsCount; - -} SMS_SETTINGS; - - - -extern SMS_SETTINGS ssSMSSettings; - - - - -#define MEMALLOC(Size) HeapAlloc(ssSMSSettings.hHeap,HEAP_ZERO_MEMORY,(Size+sizeof(size_t))) -#define MEMREALLOC(Mem,Size) HeapReAlloc(ssSMSSettings.hHeap,(HEAP_ZERO_MEMORY),(LPVOID)Mem,(Size+sizeof(size_t))) -#define MEMFREE(Mem) if (Mem) {HeapFree(ssSMSSettings.hHeap,0,(LPVOID)Mem);Mem=NULL;} - - -#define GET_DLG_ITEM_TEXT_LENGTH(hDlg,nIDDlgItem) SendDlgItemMessage(hDlg,nIDDlgItem,WM_GETTEXTLENGTH,NULL,NULL) -#define GET_CURRENT_COMBO_DATA(hWndDlg,ControlID) SendDlgItemMessage(hWndDlg,ControlID,CB_GETITEMDATA,SendDlgItemMessage(hWndDlg,ControlID,CB_GETCURSEL,0,0),0) - -#define DB_SMS_DeleteValue(Contact,valueName) db_unset(Contact,PROTOCOL_NAMEA,valueName) -#define DB_SMS_GetDword(Contact,valueName,parDefltValue) db_get_dw(Contact,PROTOCOL_NAMEA,valueName,parDefltValue) -#define DB_SMS_SetDword(Contact,valueName,parValue) db_set_dw(Contact,PROTOCOL_NAMEA,valueName,parValue) -#define DB_SMS_GetWord(Contact,valueName,parDefltValue) db_get_w(Contact,PROTOCOL_NAMEA,valueName,parDefltValue) -#define DB_SMS_SetWord(Contact,valueName,parValue) db_set_w(Contact,PROTOCOL_NAMEA,valueName,parValue) -#define DB_SMS_GetByte(Contact,valueName,parDefltValue) db_get_b(Contact,PROTOCOL_NAMEA,valueName,parDefltValue) -#define DB_SMS_SetByte(Contact,valueName,parValue) db_set_b(Contact,PROTOCOL_NAMEA,valueName,parValue) -BOOL DB_GetStaticStringW(MCONTACT hContact,LPSTR lpszModule,LPSTR lpszValueName,LPWSTR lpszRetBuff,size_t dwRetBuffSize,size_t *pdwRetBuffSize); -#define DB_SMS_GetStaticStringW(Contact,ValueName,Ret,RetBuffSize,pRetBuffSize) DB_GetStaticStringW(Contact,PROTOCOL_NAMEA,ValueName,Ret,RetBuffSize,pRetBuffSize) -#define DB_SetStringW(Contact,Module,valueName,parValue) db_set_ws(Contact,Module,valueName,parValue) -#define DB_SMS_SetStringW(Contact,valueName,parValue) db_set_ws(Contact,PROTOCOL_NAMEA,valueName,parValue) - -LRESULT CALLBACK MessageSubclassProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam); - -LPSTR GetModuleName(MCONTACT hContact); -void EnableControlsArray(HWND hWndDlg,WORD *pwControlsList,size_t dwControlsListCount,BOOL bEnabled); - -// Declaration of function that returns received string with only numbers -size_t CopyNumberA(LPSTR lpszOutBuff,LPSTR lpszBuff,size_t dwLen); -size_t CopyNumberW(LPWSTR lpcOutBuff,LPWSTR lpcBuff,size_t dwLen); -bool IsPhoneW(LPWSTR lpwszString,size_t dwStringLen); -DWORD GetContactPhonesCount(MCONTACT hContact); -BOOL IsContactPhone(MCONTACT hContact,LPWSTR lpwszPhone,size_t dwPhoneSize); - -// Declaration of function that returns HANDLE of contact by his cellular number -MCONTACT HContactFromPhone(LPWSTR lpwszPhone,size_t dwPhoneSize); -BOOL GetDataFromMessage(LPSTR lpszMessage,size_t dwMessageSize,DWORD *pdwEventType,LPWSTR lpwszPhone,size_t dwPhoneSize,size_t *pdwPhoneSizeRet,UINT *piIcon); - -// Declaration of function that gets a XML string and return the asked tag. -BOOL GetXMLFieldEx(LPSTR lpszXML,size_t dwXMLSize,LPSTR *plpszData,size_t *pdwDataSize,const char *tag1,...); -BOOL GetXMLFieldExBuff(LPSTR lpszXML,size_t dwXMLSize,LPSTR lpszBuff,size_t dwBuffSize,size_t *pdwBuffSizeRet,const char *tag1,...); -DWORD DecodeXML(LPTSTR lptszMessage,size_t dwMessageSize,LPTSTR lptszMessageConverted,size_t dwMessageConvertedBuffSize,size_t *pdwMessageConvertedSize); -DWORD EncodeXML(LPTSTR lptszMessage,size_t dwMessageSize,LPTSTR lptszMessageConverted,size_t dwMessageConvertedBuffSize,size_t *pdwMessageConvertedSize); -void LoadMsgDlgFont(int i,LOGFONT *lf,COLORREF *colour); -int RefreshAccountList(WPARAM eventCode,LPARAM lParam); -void FreeAccountList(); - -int OptInitialise(WPARAM wParam,LPARAM lParam); - -int LoadServices(); -int LoadModules(); - -int handleAckSMS(WPARAM wParam,LPARAM lParam); -int handleNewMessage(WPARAM wParam,LPARAM lParam); -void RestoreUnreadMessageAlerts(); - -// Declaration of Menu SMS send click function -int SmsRebuildContactMenu(WPARAM wParam,LPARAM lParam); - -void StartSmsSend(HWND hWndDlg,size_t dwModuleIndex,LPWSTR lpwszPhone,size_t dwPhoneSize,LPWSTR lpwszMessage,size_t dwMessageSize); - -#endif \ No newline at end of file diff --git a/plugins/SMS/src/functions.cpp b/plugins/SMS/src/functions.cpp index 440f08d8f9..95c1f2910b 100644 --- a/plugins/SMS/src/functions.cpp +++ b/plugins/SMS/src/functions.cpp @@ -1,4 +1,4 @@ -#include "common.h" +#include "stdafx.h" BOOL DB_GetStaticStringW(MCONTACT hContact,LPSTR lpszModule,LPSTR lpszValueName,LPWSTR lpwszRetBuff,size_t dwRetBuffSize,size_t *pdwRetBuffSize) {// sizes in wchars diff --git a/plugins/SMS/src/main.cpp b/plugins/SMS/src/main.cpp index e670a6fbb2..4d741bdba6 100644 --- a/plugins/SMS/src/main.cpp +++ b/plugins/SMS/src/main.cpp @@ -25,7 +25,7 @@ All the information needed you can find at www.nuke007.tk Enjoy the code and use it smartly! */ -#include "common.h" +#include "stdafx.h" CLIST_INTERFACE *pcli; int hLangpack; diff --git a/plugins/SMS/src/options.cpp b/plugins/SMS/src/options.cpp index f4faad168b..2d59221d13 100644 --- a/plugins/SMS/src/options.cpp +++ b/plugins/SMS/src/options.cpp @@ -25,7 +25,7 @@ All the information needed you can find at www.nuke007.tk Enjoy the code and use it smartly! */ -#include "common.h" +#include "stdafx.h" WORD wSMSSignControlsList[] = { IDC_BEGIN, IDC_END, IDC_SIGNATURE, IDC_SIGNGROUP }; diff --git a/plugins/SMS/src/receive.cpp b/plugins/SMS/src/receive.cpp index 949f2f89b7..f43a8c9fd9 100644 --- a/plugins/SMS/src/receive.cpp +++ b/plugins/SMS/src/receive.cpp @@ -25,7 +25,7 @@ All the information needed you can find at www.nuke007.tk Enjoy the code and use it smartly! */ -#include "common.h" +#include "stdafx.h" //This function handles the ACK received from that hooked. int handleAckSMS(WPARAM wParam, LPARAM lParam) diff --git a/plugins/SMS/src/recvdlg.cpp b/plugins/SMS/src/recvdlg.cpp index f101df922b..14b28bddbb 100644 --- a/plugins/SMS/src/recvdlg.cpp +++ b/plugins/SMS/src/recvdlg.cpp @@ -25,7 +25,7 @@ All the information needed you can find at www.nuke007.tk Enjoy the code and use it smartly! */ -#include "common.h" +#include "stdafx.h" //Defnition needed to the SMS window list typedef struct diff --git a/plugins/SMS/src/send.cpp b/plugins/SMS/src/send.cpp index f07fb812b4..c0ab45f149 100644 --- a/plugins/SMS/src/send.cpp +++ b/plugins/SMS/src/send.cpp @@ -25,7 +25,7 @@ All the information needed you can find at www.nuke007.tk Enjoy the code and use it smartly! */ -#include "common.h" +#include "stdafx.h" //This function gets HWND of the window, the number, and the message. void StartSmsSend(HWND hWndDlg,size_t dwModuleIndex,LPWSTR lpwszPhone,size_t dwPhoneSize,LPWSTR lpwszMessage,size_t dwMessageSize) diff --git a/plugins/SMS/src/senddlg.cpp b/plugins/SMS/src/senddlg.cpp index 63d353bdc2..994cb83d8e 100644 --- a/plugins/SMS/src/senddlg.cpp +++ b/plugins/SMS/src/senddlg.cpp @@ -25,7 +25,7 @@ All the information needed you can find at www.nuke007.tk Enjoy the code and use it smartly! */ -#include "common.h" +#include "stdafx.h" #define TIMERID_MSGSEND 0 #define TIMEDOUT_CANCEL 0 diff --git a/plugins/SMS/src/stdafx.cpp b/plugins/SMS/src/stdafx.cpp deleted file mode 100644 index c5fe5abaad..0000000000 --- a/plugins/SMS/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/SMS/src/stdafx.cxx b/plugins/SMS/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/SMS/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/SMS/src/stdafx.h b/plugins/SMS/src/stdafx.h new file mode 100644 index 0000000000..245a2f20e2 --- /dev/null +++ b/plugins/SMS/src/stdafx.h @@ -0,0 +1,131 @@ +#ifndef _COMMON_H +#define _COMMON_H + +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers +#define VC_EXTRALEAN + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "AdditionalFunctions/InterlockedFunctions.h" +#include "AdditionalFunctions/ListMT.h" +#include "AdditionalFunctions/MemoryCompare.h" +#include "AdditionalFunctions/MemoryFindByte.h" +#include "resource.h" +#include "version.h" +#include "recvdlg.h" +#include "SMSConstans.h" +#include "senddlg.h" + +extern HINSTANCE hInst; + +// ñòðóêòóðà ñîäåðæàùàÿ èíôîðìàöèþ ïî ïîñòðîåíèþ ìåíþ èëè ðàñøèðåíûõ èêîíîê +struct GUI_DISPLAY_ITEM +{ + LPSTR lpszName; // èìÿ ñåðâèñà, îíî æå èìÿ â èêîëèáå + LPWSTR lpwszDescr; // òåêñòîâîå îïèñàíèå îòîáðàæàåìîå þçåðó + LONG defIcon; // èêîíêà èç ðåñóðñîâ + LPVOID lpFunc; // ôóíêöèÿ âûçûâàåìàÿ ìåíþ +}; + + +#define MAIN_MENU_ITEMS_COUNT 1 +#define CONTACT_MENU_ITEMS_COUNT 1 + + +typedef struct +{ + HANDLE hHeap; + HINSTANCE hInstance; + + HGENMENU hMainMenuItems[MAIN_MENU_ITEMS_COUNT+1]; + HGENMENU hContactMenuItems[CONTACT_MENU_ITEMS_COUNT+1]; + + LIST_MT lmtSendSMSWindowsListMT; + LIST_MT lmtRecvSMSWindowsListMT; + + PROTOACCOUNT **ppaSMSAccounts; + size_t dwSMSAccountsCount; + +} SMS_SETTINGS; + + + +extern SMS_SETTINGS ssSMSSettings; + + + + +#define MEMALLOC(Size) HeapAlloc(ssSMSSettings.hHeap,HEAP_ZERO_MEMORY,(Size+sizeof(size_t))) +#define MEMREALLOC(Mem,Size) HeapReAlloc(ssSMSSettings.hHeap,(HEAP_ZERO_MEMORY),(LPVOID)Mem,(Size+sizeof(size_t))) +#define MEMFREE(Mem) if (Mem) {HeapFree(ssSMSSettings.hHeap,0,(LPVOID)Mem);Mem=NULL;} + + +#define GET_DLG_ITEM_TEXT_LENGTH(hDlg,nIDDlgItem) SendDlgItemMessage(hDlg,nIDDlgItem,WM_GETTEXTLENGTH,NULL,NULL) +#define GET_CURRENT_COMBO_DATA(hWndDlg,ControlID) SendDlgItemMessage(hWndDlg,ControlID,CB_GETITEMDATA,SendDlgItemMessage(hWndDlg,ControlID,CB_GETCURSEL,0,0),0) + +#define DB_SMS_DeleteValue(Contact,valueName) db_unset(Contact,PROTOCOL_NAMEA,valueName) +#define DB_SMS_GetDword(Contact,valueName,parDefltValue) db_get_dw(Contact,PROTOCOL_NAMEA,valueName,parDefltValue) +#define DB_SMS_SetDword(Contact,valueName,parValue) db_set_dw(Contact,PROTOCOL_NAMEA,valueName,parValue) +#define DB_SMS_GetWord(Contact,valueName,parDefltValue) db_get_w(Contact,PROTOCOL_NAMEA,valueName,parDefltValue) +#define DB_SMS_SetWord(Contact,valueName,parValue) db_set_w(Contact,PROTOCOL_NAMEA,valueName,parValue) +#define DB_SMS_GetByte(Contact,valueName,parDefltValue) db_get_b(Contact,PROTOCOL_NAMEA,valueName,parDefltValue) +#define DB_SMS_SetByte(Contact,valueName,parValue) db_set_b(Contact,PROTOCOL_NAMEA,valueName,parValue) +BOOL DB_GetStaticStringW(MCONTACT hContact,LPSTR lpszModule,LPSTR lpszValueName,LPWSTR lpszRetBuff,size_t dwRetBuffSize,size_t *pdwRetBuffSize); +#define DB_SMS_GetStaticStringW(Contact,ValueName,Ret,RetBuffSize,pRetBuffSize) DB_GetStaticStringW(Contact,PROTOCOL_NAMEA,ValueName,Ret,RetBuffSize,pRetBuffSize) +#define DB_SetStringW(Contact,Module,valueName,parValue) db_set_ws(Contact,Module,valueName,parValue) +#define DB_SMS_SetStringW(Contact,valueName,parValue) db_set_ws(Contact,PROTOCOL_NAMEA,valueName,parValue) + +LRESULT CALLBACK MessageSubclassProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam); + +LPSTR GetModuleName(MCONTACT hContact); +void EnableControlsArray(HWND hWndDlg,WORD *pwControlsList,size_t dwControlsListCount,BOOL bEnabled); + +// Declaration of function that returns received string with only numbers +size_t CopyNumberA(LPSTR lpszOutBuff,LPSTR lpszBuff,size_t dwLen); +size_t CopyNumberW(LPWSTR lpcOutBuff,LPWSTR lpcBuff,size_t dwLen); +bool IsPhoneW(LPWSTR lpwszString,size_t dwStringLen); +DWORD GetContactPhonesCount(MCONTACT hContact); +BOOL IsContactPhone(MCONTACT hContact,LPWSTR lpwszPhone,size_t dwPhoneSize); + +// Declaration of function that returns HANDLE of contact by his cellular number +MCONTACT HContactFromPhone(LPWSTR lpwszPhone,size_t dwPhoneSize); +BOOL GetDataFromMessage(LPSTR lpszMessage,size_t dwMessageSize,DWORD *pdwEventType,LPWSTR lpwszPhone,size_t dwPhoneSize,size_t *pdwPhoneSizeRet,UINT *piIcon); + +// Declaration of function that gets a XML string and return the asked tag. +BOOL GetXMLFieldEx(LPSTR lpszXML,size_t dwXMLSize,LPSTR *plpszData,size_t *pdwDataSize,const char *tag1,...); +BOOL GetXMLFieldExBuff(LPSTR lpszXML,size_t dwXMLSize,LPSTR lpszBuff,size_t dwBuffSize,size_t *pdwBuffSizeRet,const char *tag1,...); +DWORD DecodeXML(LPTSTR lptszMessage,size_t dwMessageSize,LPTSTR lptszMessageConverted,size_t dwMessageConvertedBuffSize,size_t *pdwMessageConvertedSize); +DWORD EncodeXML(LPTSTR lptszMessage,size_t dwMessageSize,LPTSTR lptszMessageConverted,size_t dwMessageConvertedBuffSize,size_t *pdwMessageConvertedSize); +void LoadMsgDlgFont(int i,LOGFONT *lf,COLORREF *colour); +int RefreshAccountList(WPARAM eventCode,LPARAM lParam); +void FreeAccountList(); + +int OptInitialise(WPARAM wParam,LPARAM lParam); + +int LoadServices(); +int LoadModules(); + +int handleAckSMS(WPARAM wParam,LPARAM lParam); +int handleNewMessage(WPARAM wParam,LPARAM lParam); +void RestoreUnreadMessageAlerts(); + +// Declaration of Menu SMS send click function +int SmsRebuildContactMenu(WPARAM wParam,LPARAM lParam); + +void StartSmsSend(HWND hWndDlg,size_t dwModuleIndex,LPWSTR lpwszPhone,size_t dwPhoneSize,LPWSTR lpwszMessage,size_t dwMessageSize); + +#endif \ No newline at end of file -- cgit v1.2.3