From 1880e84704fc30b457e7e45b3d788bc297fe32ee Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Sat, 19 Nov 2011 19:36:16 +0000 Subject: added BuddyPounce git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@182 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- BuddyPounce/headers.h | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 BuddyPounce/headers.h (limited to 'BuddyPounce/headers.h') diff --git a/BuddyPounce/headers.h b/BuddyPounce/headers.h new file mode 100644 index 0000000..ca943de --- /dev/null +++ b/BuddyPounce/headers.h @@ -0,0 +1,101 @@ +#ifndef _COMMONHEADERS_H +#define _COMMONHEADERS_H +#pragma warning( disable : 4786 ) // limitation in MSVC's debugger. +//===================================================== +// Includes +//===================================================== + + +#include +#include +#include +#include +#include +#include +#include +#include "../miranda_src/SDK/Headers_c/newpluginapi.h" +#include "../miranda_src/SDK/Headers_c/m_clist.h" +#include "../miranda_src/SDK/Headers_c/m_clui.h" +#include "../miranda_src/SDK/Headers_c/m_skin.h" +#include "../miranda_src/SDK/Headers_c/m_langpack.h" +#include "../miranda_src/SDK/Headers_c/m_protomod.h" +#include "../miranda_src/SDK/Headers_c/m_database.h" +#include "../miranda_src/SDK/Headers_c/m_system.h" +#include "../miranda_src/SDK/Headers_c/m_protocols.h" +#include "../miranda_src/SDK/Headers_c/m_userinfo.h" +#include "../miranda_src/SDK/Headers_c/m_options.h" +#include "../miranda_src/SDK/Headers_c/m_protosvc.h" +#include "../miranda_src/SDK/Headers_c/m_utils.h" +#include "../miranda_src/SDK/Headers_c/m_ignore.h" +#include "../miranda_src/SDK/Headers_c/m_clc.h" +#include "../miranda_src/SDK/Headers_c/m_history.h" +//#include "../miranda_src/SDK/Headers_c/win2k.h" +#include "../miranda_src/SDK/Headers_c/m_popup.h" +#include "../miranda_src/SDK/Headers_c/m_file.h" +#include "../miranda_src/SDK/Headers_c/m_uninstaller.h" +#include "resource.h" + +#ifndef NDEBUG +#define _CRTDBG_MAP_ALLOC +#include +#define new new(_NORMAL_BLOCK, __FILE__, __LINE__) +#endif +//======================================================= +// 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 +//======================================================= +PLUGINLINK *pluginLink; +HINSTANCE hInst; + +struct windowInfo { + HANDLE hContact; + HWND SendIfMy; + HWND SendWhenThey; +}; + +struct SendPounceDlgProcStruct { + HANDLE hContact; + int timer; + char *message; +}; +//======================================================= +// Functions +//======================================================= + +// main.c +void SendPounce(char* text, HANDLE hContact); + +//dialog.c +BOOL CALLBACK BuddyPounceDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); +BOOL CALLBACK BuddyPounceSimpleDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); +BOOL CALLBACK BuddyPounceOptionsDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); +BOOL CALLBACK SendPounceDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); +void CreateMessageAcknowlegedWindow(HANDLE hContact, int SentSuccess); + +#ifndef NDEBUG +#include +#define new new(_NORMAL_BLOCK, __FILE__, __LINE__) +#endif +#pragma comment(lib,"comctl32.lib") + +#endif //_COMMONHEADERS_H \ No newline at end of file -- cgit v1.2.3