From 931a7dc1ac0dbc7e6c1083583ced915e572f5b47 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 2 Mar 2019 12:32:44 +0300 Subject: all protocols (even virtual ones) moved to the Protocols folder --- protocols/Non-IM Contact/src/stdafx.h | 130 ++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 protocols/Non-IM Contact/src/stdafx.h (limited to 'protocols/Non-IM Contact/src/stdafx.h') diff --git a/protocols/Non-IM Contact/src/stdafx.h b/protocols/Non-IM Contact/src/stdafx.h new file mode 100644 index 0000000000..e0d30707fe --- /dev/null +++ b/protocols/Non-IM Contact/src/stdafx.h @@ -0,0 +1,130 @@ +//===================================================== +// 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 "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 (g_plugin.getWord("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 int LCStatus; +extern IconItem iconList[]; + +// 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 +int startTimer(int interval); +int killTimer(); + +// http.c +void NetlibInit(); +int InternetDownloadFile (char *szUrl); +extern char *szInfo; +extern char *szData; +extern HNETLIBUSER hNetlibUser; + +struct CMPlugin : public PLUGIN +{ + CMPlugin(); + + int Load() override; + int Unload() override; +}; + +#endif + +#pragma comment(lib,"comctl32.lib") -- cgit v1.2.3