diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-07 15:49:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-07 15:49:14 +0000 |
commit | 89edcbf870653ff219eb57565383ce708d14783b (patch) | |
tree | 34296a6e6c3e4e77c2d2eb8a4dbdafbd93cf61de /plugins/YARelay/src/stdafx.h | |
parent | 8b36cd33fcc97979e316e55b321e1b09239b430f (diff) |
port of yaRelay plugin under NG
git-svn-id: http://svn.miranda-ng.org/main/trunk@4366 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YARelay/src/stdafx.h')
-rw-r--r-- | plugins/YARelay/src/stdafx.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/plugins/YARelay/src/stdafx.h b/plugins/YARelay/src/stdafx.h new file mode 100644 index 0000000000..fc4057b92f --- /dev/null +++ b/plugins/YARelay/src/stdafx.h @@ -0,0 +1,64 @@ +/*
+yaRelay.cpp
+
+Yet Another Relay plugin. v.0.0.0.3
+This plugin forwards all incoming messages to any contact.
+
+Features:
+ - Forwards all messages from any specified contact (or from all contacts)
+ - Works only if your status is equals to specified (of set of statuses)
+ - Could be specified any template for sent messages
+ - Original message could be split up (by size)
+ - Could be specified number of split parts to send
+ - Incoming message could be marked as 'read' (optional)
+ - Outgoing messages could be saved in history (optional)
+
+(c)2005 Anar Ibragimoff (ai91@mail.ru)
+
+*/
+
+#define _CRT_SECURE_NO_WARNINGS
+
+#include <windows.h>
+#include <time.h>
+#include <stdio.h>
+#include <list>
+#include "resource.h"
+
+#include <newpluginapi.h>
+#include <m_clistint.h>
+#include <m_database.h>
+#include <m_system_cpp.h>
+#include <m_langpack.h>
+#include <m_contacts.h>
+#include <m_options.h>
+#include <m_protosvc.h>
+#include <win2k.h>
+
+#define STATUS_OFFLINE 0x1
+#define STATUS_ONLINE 0x2
+#define STATUS_AWAY 0x4
+#define STATUS_NA 0x8
+#define STATUS_OCCUPIED 0x10
+#define STATUS_DND 0x20
+#define STATUS_FREECHAT 0x40
+#define STATUS_INVISIBLE 0x80
+
+#define MAXTEMPLATESIZE 1024
+
+extern HINSTANCE hInst;
+
+extern HANDLE hForwardFrom, hForwardTo;
+extern TCHAR tszForwardTemplate[MAXTEMPLATESIZE];
+extern int iSplit, iSplitMaxSize, iSendParts, iMarkRead, iSendAndHistory, iForwardOnStatus;
+
+struct MESSAGE_PROC
+{
+ HANDLE hProcess;
+ char *msgText;
+ int retryCount;
+};
+
+extern LIST<MESSAGE_PROC> arMessageProcs;
+
+int OptionsInit(WPARAM wParam, LPARAM lParam);
|