diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-20 15:52:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-20 15:52:48 +0000 |
commit | f725c70b482df377119e2c09b36c9317f86ef494 (patch) | |
tree | 584e839d2b786835acb9dd460aab0758dd736cf9 /include | |
parent | 66e9197603643cc587909fb1bce7402383dbad69 (diff) |
ME_MSG_WRITEEVENT - new hookable event to catch the db event creation moment in SRMM
git-svn-id: http://svn.miranda-ng.org/main/trunk@4484 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r-- | include/delphi/m_message.inc | 31 | ||||
-rw-r--r-- | include/m_message.h | 16 |
2 files changed, 39 insertions, 8 deletions
diff --git a/include/delphi/m_message.inc b/include/delphi/m_message.inc index a89204f1b0..662171f9ae 100644 --- a/include/delphi/m_message.inc +++ b/include/delphi/m_message.inc @@ -1,20 +1,20 @@ -{
- Miranda IM: the free IM client for Microsoft Windows
-
- Copyright 2000-2003 Miranda ICQ/IM project,
- all portions of this codebase are copyrighted to the people
+{
+ Miranda IM: the free IM client for Microsoft Windows
+
+ Copyright 2000-2003 Miranda ICQ/IM project,
+ all portions of this codebase are copyrighted to the people
listed in contributors.txt.
-
+
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ -120,6 +120,12 @@ const }
MS_MSG_GETWINDOWDATA:PAnsiChar = 'MessageAPI/GetWindowData';
+{ wparam=0(unused)
+ lparam=(pMessageWindowEvent) event written
+ fired when SRMM writes an entered message into the database
+}
+ ME_MSG_WRITEEVENT:PAnsiChar = 'MessageAPI/OnWriteEvent';
+
{ wParam = 0
lParam = (MessageWindowPopupData *)&MessageWindowPopupData;
Fired to allow plugins to add itens to the msg window popup menu
@@ -146,6 +152,15 @@ type selection:int; // The menu control id or 0 if no one was selected
end;
+type
+ pMessageWindowEvent = ^MessageWindowEvent;
+ MessageWindowEvent = record
+ cbSize :int;
+ seq :int; // number returned by PSS_MESSAGE
+ hContact :THANDLE;
+ hDbEvent :THANDLE; // database event written on the basis of message sent
+ end;
+
// status icons
const
MBF_DISABLED = 1;
diff --git a/include/m_message.h b/include/m_message.h index 9c9bca2549..6d842ebc20 100644 --- a/include/m_message.h +++ b/include/m_message.h @@ -107,6 +107,21 @@ typedef struct { //returns 0 on success and returns non-zero (1) on error or if no window data exists for that hcontact
#define MS_MSG_GETWINDOWDATA "MessageAPI/GetWindowData"
+//wparam = 0 (unused)
+//lparam = (MessageWindowEvent*)
+//fired when SRMM writes an entered message into the database
+#define ME_MSG_WRITEEVENT "MessageAPI/OnWriteEvent"
+
+typedef struct {
+ int cbSize;
+ int seq; // number returned by PSS_MESSAGE
+ HANDLE hContact;
+ HANDLE hDbEvent; // database event written on the basis of message sent
+} MessageWindowEvent;
+
+/////////////////////////////////////////////////////////////////////////////////////////
+// SRMM popup menu
+
// wParam = 0
// lParam = (MessageWindowPopupData *)&MessageWindowPopupData;
// Fired to allow plugins to add items to the msg window popup menu
@@ -131,6 +146,7 @@ typedef struct { int selection; // The menu control id or 0 if no one was selected
} MessageWindowPopupData;
+/////////////////////////////////////////////////////////////////////////////////////////
// status icons
#define MBF_DISABLED 0x01
|