From a68d1f2be2e3d6bbb1efc930c1d840ce932023bb Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 20 Mar 2013 18:35:18 +0000 Subject: BuddyPounce adopted git-svn-id: http://svn.miranda-ng.org/main/trunk@4127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BuddyPounce/src/headers.h | 75 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 plugins/BuddyPounce/src/headers.h (limited to 'plugins/BuddyPounce/src/headers.h') diff --git a/plugins/BuddyPounce/src/headers.h b/plugins/BuddyPounce/src/headers.h new file mode 100644 index 0000000000..a2c3399063 --- /dev/null +++ b/plugins/BuddyPounce/src/headers.h @@ -0,0 +1,75 @@ +#ifndef _COMMONHEADERS_H +#define _COMMONHEADERS_H + +#define _CRT_SECURE_NO_WARNINGS +#define WIN32_LEAN_AND_MEAN + +#include +#include +#include + +#include "newpluginapi.h" +#include "m_clist.h" +#include "m_langpack.h" +#include "m_database.h" +#include "m_protocols.h" +#include "m_options.h" +#include "m_protosvc.h" + +#include "resource.h" +#include "Version.h" + +//======================================================= +// Definitions +//======================================================= +#define modname "buddypounce" +#define modFullname "Buddy Pounce" +#define msg(a,b) MessageBox(0,a,b,MB_OK) + +#define SECONDSINADAY 86400 + +/* flags for the sending and recieving.... */ +#define ANY 1 +#define ONLINE 2 +#define AWAY 4 +#define NA 8 +#define OCCUPIED 16 +#define DND 32 +#define FFC 64 +#define INVISIBLE 128 +#define PHONE 256 +#define LUNCH 512 + +//======================================================= +// Variables +//======================================================= + +struct windowInfo { + HANDLE hContact; + HWND SendIfMy; + HWND SendWhenThey; +}; + +struct SendPounceDlgProcStruct { + HANDLE hContact; + int timer; + char *message; +}; + +extern HINSTANCE hInst; + +//======================================================= +// Functions +//======================================================= + +// main.c +void SendPounce(char* text, HANDLE hContact); + +//dialog.c +INT_PTR CALLBACK BuddyPounceDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); +INT_PTR CALLBACK BuddyPounceSimpleDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); +INT_PTR CALLBACK BuddyPounceOptionsDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); +INT_PTR CALLBACK SendPounceDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); +void CreateMessageAcknowlegedWindow(HANDLE hContact, int SentSuccess); + +#endif //_COMMONHEADERS_H \ No newline at end of file -- cgit v1.2.3