From 2e29576b70d2549c02bd7bf356644e1234e483b6 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 26 Jul 2015 07:53:55 +0000 Subject: nimcontact: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14711 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Non-IM Contact/nimcontact.vcxproj | 28 +++ plugins/Non-IM Contact/nimcontact.vcxproj.filters | 4 + plugins/Non-IM Contact/nimcontact_10.vcxproj | 214 -------------------- .../Non-IM Contact/nimcontact_10.vcxproj.filters | 65 ------- plugins/Non-IM Contact/nimcontact_12.vcxproj | 216 --------------------- .../Non-IM Contact/nimcontact_12.vcxproj.filters | 65 ------- plugins/Non-IM Contact/nimcontact_14.vcxproj | 216 --------------------- .../Non-IM Contact/nimcontact_14.vcxproj.filters | 65 ------- plugins/Non-IM Contact/src/commonheaders.h | 128 ------------ plugins/Non-IM Contact/src/contactinfo.cpp | 2 +- plugins/Non-IM Contact/src/dialog.cpp | 2 +- plugins/Non-IM Contact/src/files.cpp | 2 +- plugins/Non-IM Contact/src/http.cpp | 2 +- plugins/Non-IM Contact/src/main.cpp | 2 +- plugins/Non-IM Contact/src/namereplacing.cpp | 2 +- plugins/Non-IM Contact/src/services.cpp | 2 +- plugins/Non-IM Contact/src/stdafx.cpp | 18 -- plugins/Non-IM Contact/src/stdafx.cxx | 18 ++ plugins/Non-IM Contact/src/stdafx.h | 126 ++++++++++++ plugins/Non-IM Contact/src/timer.cpp | 2 +- 20 files changed, 184 insertions(+), 995 deletions(-) create mode 100644 plugins/Non-IM Contact/nimcontact.vcxproj create mode 100644 plugins/Non-IM Contact/nimcontact.vcxproj.filters delete mode 100644 plugins/Non-IM Contact/nimcontact_10.vcxproj delete mode 100644 plugins/Non-IM Contact/nimcontact_10.vcxproj.filters delete mode 100644 plugins/Non-IM Contact/nimcontact_12.vcxproj delete mode 100644 plugins/Non-IM Contact/nimcontact_12.vcxproj.filters delete mode 100644 plugins/Non-IM Contact/nimcontact_14.vcxproj delete mode 100644 plugins/Non-IM Contact/nimcontact_14.vcxproj.filters delete mode 100644 plugins/Non-IM Contact/src/commonheaders.h delete mode 100644 plugins/Non-IM Contact/src/stdafx.cpp create mode 100644 plugins/Non-IM Contact/src/stdafx.cxx create mode 100644 plugins/Non-IM Contact/src/stdafx.h (limited to 'plugins/Non-IM Contact') diff --git a/plugins/Non-IM Contact/nimcontact.vcxproj b/plugins/Non-IM Contact/nimcontact.vcxproj new file mode 100644 index 0000000000..3ed45db073 --- /dev/null +++ b/plugins/Non-IM Contact/nimcontact.vcxproj @@ -0,0 +1,28 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + NimContact + {A556E0B5-73A1-4676-BA1F-133820DE7D5A} + + + + + \ No newline at end of file diff --git a/plugins/Non-IM Contact/nimcontact.vcxproj.filters b/plugins/Non-IM Contact/nimcontact.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/plugins/Non-IM Contact/nimcontact.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/plugins/Non-IM Contact/nimcontact_10.vcxproj b/plugins/Non-IM Contact/nimcontact_10.vcxproj deleted file mode 100644 index 30d3b09384..0000000000 --- a/plugins/Non-IM Contact/nimcontact_10.vcxproj +++ /dev/null @@ -1,214 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - NimContact - {A556E0B5-73A1-4676-BA1F-133820DE7D5A} - - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - false - Full - Level3 - true - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - OnlyExplicitInline - false - Size - false - commonheaders.h - Use - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - true - Windows - 0x30040000 - $(IntDir)$(TargetName).lib - true - true - false - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - MultiThreadedDebugDLL - false - Disabled - Level3 - true - EditAndContinue - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - false - commonheaders.h - Use - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - true - Windows - 0x30040000 - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin10\lib - - - - - false - Full - Level3 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Default - OnlyExplicitInline - Size - false - commonheaders.h - Use - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - true - Windows - 0x30040000 - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - - - MultiThreadedDebugDLL - false - Disabled - Level3 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - false - commonheaders.h - Use - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - true - Windows - 0x30040000 - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin10\lib - - - - - - - - - - - - - - - - - - - - - Create - - - - - - - \ No newline at end of file diff --git a/plugins/Non-IM Contact/nimcontact_10.vcxproj.filters b/plugins/Non-IM Contact/nimcontact_10.vcxproj.filters deleted file mode 100644 index d26dfe6647..0000000000 --- a/plugins/Non-IM Contact/nimcontact_10.vcxproj.filters +++ /dev/null @@ -1,65 +0,0 @@ - - - - - {08a21636-368d-4feb-8d0d-0a27f237e1a2} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {9e6f20dc-3391-4299-9f74-e91d4f984ad3} - h;hpp;hxx;hm;inl - - - {18fd6180-ebb2-4558-b945-c4dac823f11b} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - \ No newline at end of file diff --git a/plugins/Non-IM Contact/nimcontact_12.vcxproj b/plugins/Non-IM Contact/nimcontact_12.vcxproj deleted file mode 100644 index 232f66ceeb..0000000000 --- a/plugins/Non-IM Contact/nimcontact_12.vcxproj +++ /dev/null @@ -1,216 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - NimContact - {A556E0B5-73A1-4676-BA1F-133820DE7D5A} - - - - DynamicLibrary - Unicode - true - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - Unicode - true - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - false - Full - Level3 - true - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - OnlyExplicitInline - false - Size - false - commonheaders.h - Use - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - true - Windows - 0x30040000 - $(IntDir)$(TargetName).lib - true - true - false - $(ProfileDir)..\..\bin12\lib - - - - - MultiThreadedDebugDLL - false - Disabled - Level3 - true - EditAndContinue - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - false - commonheaders.h - Use - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - true - Windows - 0x30040000 - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin12\lib - - - - - false - Full - Level3 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Default - OnlyExplicitInline - Size - false - commonheaders.h - Use - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - true - Windows - 0x30040000 - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin12\lib - - - - - MultiThreadedDebugDLL - false - Disabled - Level3 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - false - commonheaders.h - Use - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - true - Windows - 0x30040000 - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin12\lib - - - - - - - - - - - - - - - - - - - - - Create - - - - - - - \ No newline at end of file diff --git a/plugins/Non-IM Contact/nimcontact_12.vcxproj.filters b/plugins/Non-IM Contact/nimcontact_12.vcxproj.filters deleted file mode 100644 index d26dfe6647..0000000000 --- a/plugins/Non-IM Contact/nimcontact_12.vcxproj.filters +++ /dev/null @@ -1,65 +0,0 @@ - - - - - {08a21636-368d-4feb-8d0d-0a27f237e1a2} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {9e6f20dc-3391-4299-9f74-e91d4f984ad3} - h;hpp;hxx;hm;inl - - - {18fd6180-ebb2-4558-b945-c4dac823f11b} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - \ No newline at end of file diff --git a/plugins/Non-IM Contact/nimcontact_14.vcxproj b/plugins/Non-IM Contact/nimcontact_14.vcxproj deleted file mode 100644 index 833e7055f6..0000000000 --- a/plugins/Non-IM Contact/nimcontact_14.vcxproj +++ /dev/null @@ -1,216 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - NimContact - {A556E0B5-73A1-4676-BA1F-133820DE7D5A} - - - - DynamicLibrary - Unicode - true - v140_xp - - - DynamicLibrary - Unicode - v140_xp - - - DynamicLibrary - Unicode - true - v140_xp - - - DynamicLibrary - Unicode - v140_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - false - Full - Level3 - true - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - OnlyExplicitInline - false - Size - false - commonheaders.h - Use - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - true - Windows - 0x30040000 - $(IntDir)$(TargetName).lib - true - true - false - $(ProfileDir)..\..\bin14\lib - - - - - MultiThreadedDebugDLL - false - Disabled - Level3 - true - EditAndContinue - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - false - commonheaders.h - Use - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - true - Windows - 0x30040000 - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin14\lib - - - - - false - Full - Level3 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Default - OnlyExplicitInline - Size - false - commonheaders.h - Use - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - true - Windows - 0x30040000 - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin14\lib - - - - - MultiThreadedDebugDLL - false - Disabled - Level3 - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - false - commonheaders.h - Use - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - true - true - Windows - 0x30040000 - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin14\lib - - - - - - - - - - - - - - - - - - - - - Create - - - - - - - \ No newline at end of file diff --git a/plugins/Non-IM Contact/nimcontact_14.vcxproj.filters b/plugins/Non-IM Contact/nimcontact_14.vcxproj.filters deleted file mode 100644 index d26dfe6647..0000000000 --- a/plugins/Non-IM Contact/nimcontact_14.vcxproj.filters +++ /dev/null @@ -1,65 +0,0 @@ - - - - - {08a21636-368d-4feb-8d0d-0a27f237e1a2} - cpp;c;cxx;rc;def;r;odl;idl;hpj;bat - - - {9e6f20dc-3391-4299-9f74-e91d4f984ad3} - h;hpp;hxx;hm;inl - - - {18fd6180-ebb2-4558-b945-c4dac823f11b} - ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe - - - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - \ No newline at end of file diff --git a/plugins/Non-IM Contact/src/commonheaders.h b/plugins/Non-IM Contact/src/commonheaders.h deleted file mode 100644 index ac0eab279b..0000000000 --- a/plugins/Non-IM Contact/src/commonheaders.h +++ /dev/null @@ -1,128 +0,0 @@ -//===================================================== -// Includes (yea why not include lots of stuff :p ) -//===================================================== -#ifndef COMMONHEADERS -#define COMMONHEADERS - -#define _CRT_SECURE_NO_WARNINGS - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -struct DLGTEMPLATEEX -{ - WORD dlgVer; - WORD signature; - DWORD helpID; - DWORD exStyle; - DWORD style; - WORD cDlgItems; - short x; - short y; - short cx; - short cy; -}; - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "resource.h" - -//======================================================= -// Definitions -//======================================================= -#define MODNAME "NIM_Contact" -#define modFullname "Non-IM Contact" -#define MAXLINES 10000 -#define MAX_STRING_LENGTH 10000 -#define LINE_LENGTH 10000 -#define msg(a,b) MessageBoxA(0,a,b,MB_OK); -#define TIMER (db_get_w(NULL, MODNAME, "Timer", 1) * 1000) -/* ERROR VALUES */ -#define ERROR_NO_LINE_AFTER_VAR_F -1 -#define ERROR_LINE_NOT_READ -2 -#define ERROR_NO_FILE -3 - -//======================================================= -// Defines -//======================================================= -//General -extern HINSTANCE hInst; -extern int LCStatus; -extern IconItem icoList[]; - -//Services.c -INT_PTR GetLCCaps(WPARAM wParam,LPARAM lParam); -INT_PTR GetLCName(WPARAM wParam,LPARAM lParam); -INT_PTR LoadLCIcon(WPARAM wParam,LPARAM lParam); -int SetLCStatus(WPARAM wParam,LPARAM lParam); -INT_PTR GetLCStatus(WPARAM wParam,LPARAM lParam); - -// dialog.c -INT_PTR addContact(WPARAM wParam,LPARAM lParam) ; -INT_PTR editContact(WPARAM wParam,LPARAM lParam); -INT_PTR CALLBACK DlgProcNimcOpts(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); -INT_PTR testStringReplacer(WPARAM wParam, LPARAM lParam); -INT_PTR LoadFilesDlg(WPARAM wParam, LPARAM lParam); - - -// files.c -int Openfile(char* outputFile, int saveOpen); -INT_PTR CALLBACK DlgProcFiles(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); -int savehtml(char* outFile); -char* getMimDir(char* file); -INT_PTR exportContacts(WPARAM wParam,LPARAM lParam) ; - -// contactinfo.c -INT_PTR CALLBACK DlgProcContactInfo(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); -INT_PTR CALLBACK DlgProcOtherStuff(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); -INT_PTR CALLBACK DlgProcCopy(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); -void ExportContact(MCONTACT hContact); -INT_PTR ImportContacts(WPARAM wParam, LPARAM lParam); - -// stringreplacer.c -int stringReplacer(const char *oldString, CMStringA &szNewString, MCONTACT hContact); -void replaceAllStrings(MCONTACT hContact); -void WriteSetting(MCONTACT hContact, char* module1, char* setting1 , char* module12, char* setting2); - -//timer.c -void CALLBACK timerProc(); -int startTimer(int interval); -int killTimer(); - -// http.c -void NetlibInit(); -int InternetDownloadFile (CHAR *szUrl); -extern char *szInfo; -extern char *szData; -extern HANDLE hNetlibUser; - -int db_get_static(MCONTACT hContact, const char *moduleName, const char *fn, char *buf, size_t cbSize); - -#endif - -#pragma comment(lib,"comctl32.lib") diff --git a/plugins/Non-IM Contact/src/contactinfo.cpp b/plugins/Non-IM Contact/src/contactinfo.cpp index 66d278aa69..7d2f6a8771 100644 --- a/plugins/Non-IM Contact/src/contactinfo.cpp +++ b/plugins/Non-IM Contact/src/contactinfo.cpp @@ -1,4 +1,4 @@ -#include "commonheaders.h" +#include "stdafx.h" INT_PTR CALLBACK DlgProcContactInfo(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { diff --git a/plugins/Non-IM Contact/src/dialog.cpp b/plugins/Non-IM Contact/src/dialog.cpp index a948737802..e8bcf519c0 100644 --- a/plugins/Non-IM Contact/src/dialog.cpp +++ b/plugins/Non-IM Contact/src/dialog.cpp @@ -1,4 +1,4 @@ -#include "commonheaders.h" +#include "stdafx.h" #define NIM_HELP_TEXT TranslateT("String replacing variables....\r\nThe following are all the valid variables that can be used. Refer to the readme for a proper explanation.\r\n\r\n\ file(X)\t\t<- specifies the file to read from. MUST be followed by either start() or end() or wholeline()\r\n\ diff --git a/plugins/Non-IM Contact/src/files.cpp b/plugins/Non-IM Contact/src/files.cpp index 5d5ba5945c..48f85ecd83 100644 --- a/plugins/Non-IM Contact/src/files.cpp +++ b/plugins/Non-IM Contact/src/files.cpp @@ -1,4 +1,4 @@ -#include "commonheaders.h" +#include "stdafx.h" INT_PTR exportContacts(WPARAM wParam, LPARAM lParam) { diff --git a/plugins/Non-IM Contact/src/http.cpp b/plugins/Non-IM Contact/src/http.cpp index 7e8cdbe0cc..23b1064236 100644 --- a/plugins/Non-IM Contact/src/http.cpp +++ b/plugins/Non-IM Contact/src/http.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. from the web using netlib */ -#include "commonheaders.h" +#include "stdafx.h" char *szInfo; char *szData; diff --git a/plugins/Non-IM Contact/src/main.cpp b/plugins/Non-IM Contact/src/main.cpp index b456c1c839..fa668b55d3 100644 --- a/plugins/Non-IM Contact/src/main.cpp +++ b/plugins/Non-IM Contact/src/main.cpp @@ -2,7 +2,7 @@ // Includes //===================================================== -#include "commonheaders.h" +#include "stdafx.h" #include "Version.h" diff --git a/plugins/Non-IM Contact/src/namereplacing.cpp b/plugins/Non-IM Contact/src/namereplacing.cpp index 4837219d2c..49ca6cae90 100644 --- a/plugins/Non-IM Contact/src/namereplacing.cpp +++ b/plugins/Non-IM Contact/src/namereplacing.cpp @@ -1,4 +1,4 @@ -#include "commonheaders.h" +#include "stdafx.h" int readFileIntoArray(int fileNumber, char *FileContents[]) { diff --git a/plugins/Non-IM Contact/src/services.cpp b/plugins/Non-IM Contact/src/services.cpp index 68b5be26fb..c582f4b7e4 100644 --- a/plugins/Non-IM Contact/src/services.cpp +++ b/plugins/Non-IM Contact/src/services.cpp @@ -1,4 +1,4 @@ -#include "commonheaders.h" +#include "stdafx.h" //======================================================= // db_get_static diff --git a/plugins/Non-IM Contact/src/stdafx.cpp b/plugins/Non-IM Contact/src/stdafx.cpp deleted file mode 100644 index 048b14e9d2..0000000000 --- a/plugins/Non-IM Contact/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 "commonheaders.h" \ No newline at end of file diff --git a/plugins/Non-IM Contact/src/stdafx.cxx b/plugins/Non-IM Contact/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/Non-IM Contact/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/Non-IM Contact/src/stdafx.h b/plugins/Non-IM Contact/src/stdafx.h new file mode 100644 index 0000000000..099240c3cf --- /dev/null +++ b/plugins/Non-IM Contact/src/stdafx.h @@ -0,0 +1,126 @@ +//===================================================== +// Includes (yea why not include lots of stuff :p ) +//===================================================== +#ifndef COMMONHEADERS +#define COMMONHEADERS + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +struct DLGTEMPLATEEX +{ + WORD dlgVer; + WORD signature; + DWORD helpID; + DWORD exStyle; + DWORD style; + WORD cDlgItems; + short x; + short y; + short cx; + short cy; +}; + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "resource.h" + +//======================================================= +// Definitions +//======================================================= +#define MODNAME "NIM_Contact" +#define modFullname "Non-IM Contact" +#define MAXLINES 10000 +#define MAX_STRING_LENGTH 10000 +#define LINE_LENGTH 10000 +#define msg(a,b) MessageBoxA(0,a,b,MB_OK); +#define TIMER (db_get_w(NULL, MODNAME, "Timer", 1) * 1000) +/* ERROR VALUES */ +#define ERROR_NO_LINE_AFTER_VAR_F -1 +#define ERROR_LINE_NOT_READ -2 +#define ERROR_NO_FILE -3 + +//======================================================= +// Defines +//======================================================= +//General +extern HINSTANCE hInst; +extern int LCStatus; +extern IconItem icoList[]; + +//Services.c +INT_PTR GetLCCaps(WPARAM wParam,LPARAM lParam); +INT_PTR GetLCName(WPARAM wParam,LPARAM lParam); +INT_PTR LoadLCIcon(WPARAM wParam,LPARAM lParam); +int SetLCStatus(WPARAM wParam,LPARAM lParam); +INT_PTR GetLCStatus(WPARAM wParam,LPARAM lParam); + +// dialog.c +INT_PTR addContact(WPARAM wParam,LPARAM lParam) ; +INT_PTR editContact(WPARAM wParam,LPARAM lParam); +INT_PTR CALLBACK DlgProcNimcOpts(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); +INT_PTR testStringReplacer(WPARAM wParam, LPARAM lParam); +INT_PTR LoadFilesDlg(WPARAM wParam, LPARAM lParam); + + +// files.c +int Openfile(char* outputFile, int saveOpen); +INT_PTR CALLBACK DlgProcFiles(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); +int savehtml(char* outFile); +char* getMimDir(char* file); +INT_PTR exportContacts(WPARAM wParam,LPARAM lParam) ; + +// contactinfo.c +INT_PTR CALLBACK DlgProcContactInfo(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); +INT_PTR CALLBACK DlgProcOtherStuff(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); +INT_PTR CALLBACK DlgProcCopy(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); +void ExportContact(MCONTACT hContact); +INT_PTR ImportContacts(WPARAM wParam, LPARAM lParam); + +// stringreplacer.c +int stringReplacer(const char *oldString, CMStringA &szNewString, MCONTACT hContact); +void replaceAllStrings(MCONTACT hContact); +void WriteSetting(MCONTACT hContact, char* module1, char* setting1 , char* module12, char* setting2); + +//timer.c +void CALLBACK timerProc(); +int startTimer(int interval); +int killTimer(); + +// http.c +void NetlibInit(); +int InternetDownloadFile (CHAR *szUrl); +extern char *szInfo; +extern char *szData; +extern HANDLE hNetlibUser; + +int db_get_static(MCONTACT hContact, const char *moduleName, const char *fn, char *buf, size_t cbSize); + +#endif + +#pragma comment(lib,"comctl32.lib") diff --git a/plugins/Non-IM Contact/src/timer.cpp b/plugins/Non-IM Contact/src/timer.cpp index 5f19b802f0..32afa0ff35 100644 --- a/plugins/Non-IM Contact/src/timer.cpp +++ b/plugins/Non-IM Contact/src/timer.cpp @@ -1,4 +1,4 @@ -#include "commonheaders.h" +#include "stdafx.h" static UINT_PTR timerId = 0; -- cgit v1.2.3