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/Sessions/Sessions.vcxproj | 28 ++++ plugins/Sessions/Sessions.vcxproj.filters | 4 + plugins/Sessions/Sessions_10.vcxproj | 204 -------------------------- plugins/Sessions/Sessions_10.vcxproj.filters | 53 ------- plugins/Sessions/Sessions_12.vcxproj | 207 --------------------------- plugins/Sessions/Sessions_12.vcxproj.filters | 53 ------- plugins/Sessions/Sessions_14.vcxproj | 207 --------------------------- plugins/Sessions/Sessions_14.vcxproj.filters | 53 ------- plugins/Sessions/Src/Main.cpp | 2 +- plugins/Sessions/Src/Options.cpp | 2 +- plugins/Sessions/Src/Sessions.h | 75 ---------- plugins/Sessions/Src/Utils.cpp | 2 +- plugins/Sessions/Src/stdafx.cpp | 18 --- plugins/Sessions/Src/stdafx.cxx | 18 +++ plugins/Sessions/Src/stdafx.h | 75 ++++++++++ 15 files changed, 128 insertions(+), 873 deletions(-) create mode 100644 plugins/Sessions/Sessions.vcxproj create mode 100644 plugins/Sessions/Sessions.vcxproj.filters delete mode 100644 plugins/Sessions/Sessions_10.vcxproj delete mode 100644 plugins/Sessions/Sessions_10.vcxproj.filters delete mode 100644 plugins/Sessions/Sessions_12.vcxproj delete mode 100644 plugins/Sessions/Sessions_12.vcxproj.filters delete mode 100644 plugins/Sessions/Sessions_14.vcxproj delete mode 100644 plugins/Sessions/Sessions_14.vcxproj.filters delete mode 100644 plugins/Sessions/Src/Sessions.h delete mode 100644 plugins/Sessions/Src/stdafx.cpp create mode 100644 plugins/Sessions/Src/stdafx.cxx create mode 100644 plugins/Sessions/Src/stdafx.h (limited to 'plugins/Sessions') diff --git a/plugins/Sessions/Sessions.vcxproj b/plugins/Sessions/Sessions.vcxproj new file mode 100644 index 0000000000..a4592706ac --- /dev/null +++ b/plugins/Sessions/Sessions.vcxproj @@ -0,0 +1,28 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {37C2B9A4-63EF-49E8-BF23-677B5EBD73E9} + Sessions + + + + + \ No newline at end of file diff --git a/plugins/Sessions/Sessions.vcxproj.filters b/plugins/Sessions/Sessions.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/plugins/Sessions/Sessions.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/plugins/Sessions/Sessions_10.vcxproj b/plugins/Sessions/Sessions_10.vcxproj deleted file mode 100644 index 2724c03cb4..0000000000 --- a/plugins/Sessions/Sessions_10.vcxproj +++ /dev/null @@ -1,204 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {37C2B9A4-63EF-49E8-BF23-677B5EBD73E9} - Sessions - - - - 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 - AnySuitable - true - true - Use - Level3 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Size - sessions.h - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - 0x67100000 - $(IntDir)$(TargetName).lib - true - true - false - true - Windows - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - Full - AnySuitable - true - true - Use - Level3 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Size - sessions.h - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - 0x67100000 - $(IntDir)$(TargetName).lib - true - true - false - true - Windows - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - %(AdditionalOptions) - MultiThreadedDebugDLL - Use - Level3 - EditAndContinue - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Disabled - sessions.h - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - 0x67100000 - $(IntDir)$(TargetName).lib - false - Windows - $(ProfileDir)..\..\bin10\lib - - - - - %(AdditionalOptions) - Disabled - MultiThreadedDebugDLL - Use - Level3 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - sessions.h - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - 0x67100000 - $(IntDir)$(TargetName).lib - false - Windows - $(ProfileDir)..\..\bin10\lib - - - - - Create - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/Sessions/Sessions_10.vcxproj.filters b/plugins/Sessions/Sessions_10.vcxproj.filters deleted file mode 100644 index 8119802ffc..0000000000 --- a/plugins/Sessions/Sessions_10.vcxproj.filters +++ /dev/null @@ -1,53 +0,0 @@ - - - - - {7924bb78-e0e0-41a9-bef3-21ee81d65e4e} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {69bb5ab9-e440-4eb0-87c5-ab15198f3f7d} - h;hpp;hxx;hm;inl - - - {b6a581e7-b460-4f40-b782-acff3afc0a00} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/Sessions/Sessions_12.vcxproj b/plugins/Sessions/Sessions_12.vcxproj deleted file mode 100644 index b064929579..0000000000 --- a/plugins/Sessions/Sessions_12.vcxproj +++ /dev/null @@ -1,207 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {37C2B9A4-63EF-49E8-BF23-677B5EBD73E9} - Sessions - - - - 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 - AnySuitable - true - true - Use - Level4 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Size - sessions.h - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - 0x67100000 - $(IntDir)$(TargetName).lib - true - true - false - true - Windows - $(ProfileDir)..\..\bin12\lib - - - - - Full - AnySuitable - true - true - Use - Level4 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Size - sessions.h - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - 0x67100000 - $(IntDir)$(TargetName).lib - true - true - false - true - Windows - $(ProfileDir)..\..\bin12\lib - - - - - %(AdditionalOptions) - MultiThreadedDebugDLL - Use - Level4 - EditAndContinue - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Disabled - sessions.h - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - 0x67100000 - $(IntDir)$(TargetName).lib - false - Windows - $(ProfileDir)..\..\bin12\lib - false - - - - - %(AdditionalOptions) - Disabled - MultiThreadedDebugDLL - Use - Level4 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - sessions.h - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - 0x67100000 - $(IntDir)$(TargetName).lib - false - Windows - $(ProfileDir)..\..\bin12\lib - - - - - Create - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/Sessions/Sessions_12.vcxproj.filters b/plugins/Sessions/Sessions_12.vcxproj.filters deleted file mode 100644 index 8119802ffc..0000000000 --- a/plugins/Sessions/Sessions_12.vcxproj.filters +++ /dev/null @@ -1,53 +0,0 @@ - - - - - {7924bb78-e0e0-41a9-bef3-21ee81d65e4e} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {69bb5ab9-e440-4eb0-87c5-ab15198f3f7d} - h;hpp;hxx;hm;inl - - - {b6a581e7-b460-4f40-b782-acff3afc0a00} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/Sessions/Sessions_14.vcxproj b/plugins/Sessions/Sessions_14.vcxproj deleted file mode 100644 index 7be6b4ddb5..0000000000 --- a/plugins/Sessions/Sessions_14.vcxproj +++ /dev/null @@ -1,207 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {37C2B9A4-63EF-49E8-BF23-677B5EBD73E9} - Sessions - - - - 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 - AnySuitable - true - true - Use - Level4 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Size - sessions.h - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - 0x67100000 - $(IntDir)$(TargetName).lib - true - true - false - true - Windows - $(ProfileDir)..\..\bin14\lib - - - - - Full - AnySuitable - true - true - Use - Level4 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Size - sessions.h - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - 0x67100000 - $(IntDir)$(TargetName).lib - true - true - false - true - Windows - $(ProfileDir)..\..\bin14\lib - - - - - %(AdditionalOptions) - MultiThreadedDebugDLL - Use - Level4 - EditAndContinue - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - Disabled - sessions.h - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - 0x67100000 - $(IntDir)$(TargetName).lib - false - Windows - $(ProfileDir)..\..\bin14\lib - false - - - - - %(AdditionalOptions) - Disabled - MultiThreadedDebugDLL - Use - Level4 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - sessions.h - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - 0x67100000 - $(IntDir)$(TargetName).lib - false - Windows - $(ProfileDir)..\..\bin14\lib - - - - - Create - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/Sessions/Sessions_14.vcxproj.filters b/plugins/Sessions/Sessions_14.vcxproj.filters deleted file mode 100644 index 8119802ffc..0000000000 --- a/plugins/Sessions/Sessions_14.vcxproj.filters +++ /dev/null @@ -1,53 +0,0 @@ - - - - - {7924bb78-e0e0-41a9-bef3-21ee81d65e4e} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {69bb5ab9-e440-4eb0-87c5-ab15198f3f7d} - h;hpp;hxx;hm;inl - - - {b6a581e7-b460-4f40-b782-acff3afc0a00} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp index 403ff76dd1..73afb9408d 100644 --- a/plugins/Sessions/Src/Main.cpp +++ b/plugins/Sessions/Src/Main.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "sessions.h" +#include "stdafx.h" CLIST_INTERFACE *pcli; HINSTANCE g_hInst = NULL; diff --git a/plugins/Sessions/Src/Options.cpp b/plugins/Sessions/Src/Options.cpp index 0828c6928a..4618c1661d 100644 --- a/plugins/Sessions/Src/Options.cpp +++ b/plugins/Sessions/Src/Options.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "sessions.h" +#include "stdafx.h" HICON hIcon; HICON hMarked, hNotMarked; diff --git a/plugins/Sessions/Src/Sessions.h b/plugins/Sessions/Src/Sessions.h deleted file mode 100644 index f76831d72e..0000000000 --- a/plugins/Sessions/Src/Sessions.h +++ /dev/null @@ -1,75 +0,0 @@ -/* -Sessions Management plugin for Miranda IM - -Copyright (C) 2007-2008 Danil Mozhar - -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, either version 3 of the License, or -(at your option) any later version. - -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 . -*/ - -#define _CRT_SECURE_NO_DEPRECATE - -#include -#include - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include - -#include "Utils.h" -#include "Version.h" -#include "Resource.h" - -#define MODNAME "Sessions" - -#define MS_SESSIONS_LAUNCHME "Sessions/Service/LaunchMe" - -extern IconItem iconList[]; - -#define MIIM_STRING 0x00000040 - -int DelUserDefSession(int ses_count); -int DeleteAutoSession(int ses_count); -int LoadSession(WPARAM, LPARAM); -int SaveSessionHandles(WPARAM, LPARAM); -INT_PTR SaveUserSessionHandles(WPARAM, LPARAM); -int SaveUserSessionName(TCHAR*); -INT_PTR CloseCurrentSession(WPARAM, LPARAM); -int SaveSessionDate(); - -extern HINSTANCE g_hInst; -extern MCONTACT session_list_recovered[255]; -extern MCONTACT session_list[255]; -extern int g_ses_limit; -extern int g_ses_count; -extern bool g_bExclHidden; -extern bool g_bWarnOnHidden; -extern bool g_bOtherWarnings; -extern bool g_bCrashRecovery; -extern bool g_bIncompletedSave; - -#define TIMERID_LOAD 12 -#define TIMERID_SHOW 11 -#define TIMERID_REBUILDAFTER 14 diff --git a/plugins/Sessions/Src/Utils.cpp b/plugins/Sessions/Src/Utils.cpp index 039c508fb7..a79a3baebc 100644 --- a/plugins/Sessions/Src/Utils.cpp +++ b/plugins/Sessions/Src/Utils.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "sessions.h" +#include "stdafx.h" void AddSessionMark(MCONTACT hContact, int mode, char bit) { diff --git a/plugins/Sessions/Src/stdafx.cpp b/plugins/Sessions/Src/stdafx.cpp deleted file mode 100644 index 1e74afcbe3..0000000000 --- a/plugins/Sessions/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 "Sessions.h" \ No newline at end of file diff --git a/plugins/Sessions/Src/stdafx.cxx b/plugins/Sessions/Src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/Sessions/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/Sessions/Src/stdafx.h b/plugins/Sessions/Src/stdafx.h new file mode 100644 index 0000000000..f76831d72e --- /dev/null +++ b/plugins/Sessions/Src/stdafx.h @@ -0,0 +1,75 @@ +/* +Sessions Management plugin for Miranda IM + +Copyright (C) 2007-2008 Danil Mozhar + +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, either version 3 of the License, or +(at your option) any later version. + +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 . +*/ + +#define _CRT_SECURE_NO_DEPRECATE + +#include +#include + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "Utils.h" +#include "Version.h" +#include "Resource.h" + +#define MODNAME "Sessions" + +#define MS_SESSIONS_LAUNCHME "Sessions/Service/LaunchMe" + +extern IconItem iconList[]; + +#define MIIM_STRING 0x00000040 + +int DelUserDefSession(int ses_count); +int DeleteAutoSession(int ses_count); +int LoadSession(WPARAM, LPARAM); +int SaveSessionHandles(WPARAM, LPARAM); +INT_PTR SaveUserSessionHandles(WPARAM, LPARAM); +int SaveUserSessionName(TCHAR*); +INT_PTR CloseCurrentSession(WPARAM, LPARAM); +int SaveSessionDate(); + +extern HINSTANCE g_hInst; +extern MCONTACT session_list_recovered[255]; +extern MCONTACT session_list[255]; +extern int g_ses_limit; +extern int g_ses_count; +extern bool g_bExclHidden; +extern bool g_bWarnOnHidden; +extern bool g_bOtherWarnings; +extern bool g_bCrashRecovery; +extern bool g_bIncompletedSave; + +#define TIMERID_LOAD 12 +#define TIMERID_SHOW 11 +#define TIMERID_REBUILDAFTER 14 -- cgit v1.2.3