summaryrefslogtreecommitdiff
path: root/plugins/BuddyPounce/src/stdafx.h
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2015-04-25 11:54:43 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2015-04-25 11:54:43 +0000
commitd6963825060493cd956b9ab758169438328c5f12 (patch)
tree895730fe584d6700bd351a067f6aa99ea36846ae /plugins/BuddyPounce/src/stdafx.h
parent07209607fbe1018503f1304bedff37daea7e9e82 (diff)
BuddyPounce - common project
git-svn-id: http://svn.miranda-ng.org/main/trunk@13133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BuddyPounce/src/stdafx.h')
-rw-r--r--plugins/BuddyPounce/src/stdafx.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/plugins/BuddyPounce/src/stdafx.h b/plugins/BuddyPounce/src/stdafx.h
new file mode 100644
index 0000000000..9cbaf66a71
--- /dev/null
+++ b/plugins/BuddyPounce/src/stdafx.h
@@ -0,0 +1,78 @@
+#ifndef _COMMONHEADERS_H
+#define _COMMONHEADERS_H
+
+#define WIN32_LEAN_AND_MEAN
+
+#include <windows.h>
+#include <commctrl.h>
+#include <time.h>
+#include <malloc.h>
+
+#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 <win2k.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
+{
+ MCONTACT hContact;
+ HWND SendIfMy;
+ HWND SendWhenThey;
+};
+
+struct SendPounceDlgProcStruct
+{
+ MCONTACT hContact;
+ int timer;
+ TCHAR *message;
+};
+
+extern HINSTANCE hInst;
+
+//=======================================================
+// Functions
+//=======================================================
+
+// main.c
+void SendPounce(TCHAR* text, MCONTACT 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(MCONTACT hContact, int SentSuccess);
+
+#endif //_COMMONHEADERS_H \ No newline at end of file