diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/delphi/m_metacontacts.inc | 32 | ||||
-rw-r--r-- | include/m_metacontacts.h | 22 |
2 files changed, 40 insertions, 14 deletions
diff --git a/include/delphi/m_metacontacts.inc b/include/delphi/m_metacontacts.inc index 5ff5cf9855..53afbd5850 100644 --- a/include/delphi/m_metacontacts.inc +++ b/include/delphi/m_metacontacts.inc @@ -1,19 +1,19 @@ {
- Miranda IM: the free IM client for Microsoft Windows
-
+ Miranda IM: the free IM client for Microsoft Windows
+
Copyright © 2004 Universite Louis PASTEUR, STRASBOURG.
Copyright © 2004 Scott Ellis (www.scottellis.com.au mail@scottellis.com.au)
-
+
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.
@@ -132,30 +132,26 @@ const wParam=lParam=0 }
MS_MC_GETPROTOCOLNAME = 'MetaContacts/GetProtoName';
- { added 0.9.5.0 (22/3/05)
- wParam=(HANDLE)hContact
+ { wParam=(HANDLE)hContact
lParam=0
convert a given contact into a metacontact
}
MS_MC_CONVERTTOMETA = 'MetaContacts/ConvertToMetacontact';
- { added 0.9.5.0 (22/3/05)
- wParam=(HANDLE)hContact
+ { wParam=(HANDLE)hContact
lParam=(HANDLE)hMeta
add an existing contact to a metacontact
}
MS_MC_ADDTOMETA = 'MetaContacts/AddToMetacontact';
- { added 0.9.5.0 (22/3/05)
- wParam=0
+ { wParam=0
lParam=(HANDLE)hContact
remove a contact from a metacontact
}
MS_MC_REMOVEFROMMETA = 'MetaContacts/RemoveFromMetacontact';
- { added 0.9.13.2 (6/10/05)
- wParam=(BOOL)disable
+ { wParam=(BOOL)disable
lParam=0
enable/disable the 'hidden group hack' - for clists that support subcontact
hiding using 'IsSubcontact' setting. Should be called once in the clist
@@ -165,4 +161,14 @@ const }
MS_MC_DISABLEHIDDENGROUP = 'MetaContacts/DisableHiddenGroup';
+{ returns true if a contact is a metacontact or false otherwise
+}
+function db_mc_isMeta(hContact:MCONTACT):Boolean; stdcall;
+ external CoreDLL name 'db_mc_isMeta';
+
+{ returns true if a contact is a subcontact or false otherwise
+}
+function db_mc_isSub(hContact:MCONTACT):Boolean; stdcall;
+ external CoreDLL name 'db_mc_isSub';
+
{$ENDIF}
diff --git a/include/m_metacontacts.h b/include/m_metacontacts.h index 541dfc0251..94cda43bd8 100644 --- a/include/m_metacontacts.h +++ b/include/m_metacontacts.h @@ -3,8 +3,8 @@ Miranda NG: the free IM client for Microsoft* Windows*
Copyright (c) 2012-14 Miranda NG project (http://miranda-ng.org),
+Copyright (c) 2004-07 Scott Ellis (www.scottellis.com.au mail@scottellis.com.au)
Copyright (c) 2004 Universite Louis PASTEUR, STRASBOURG.
-Copyright (c) 2004 Scott Ellis (www.scottellis.com.au mail@scottellis.com.au)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -24,6 +24,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef M_METACONTACTS_H__
#define M_METACONTACTS_H__ 1
+#include <m_core.h>
+
//get the handle for a contact's parent metacontact
//wParam=(HANDLE)hSubContact
//lParam=0
@@ -160,4 +162,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // before the metacontact onmodulesloaded handler where the subcontact hiding is usually done)
#define MS_MC_DISABLEHIDDENGROUP "MetaContacts/DisableHiddenGroup"
+/////////////////////////////////////////////////////////////////////////////////////////
+// binary interface to MC
+
+#if defined(__cplusplus)
+extern "C"
+{
+#endif
+
+// checks whether a contact is a metacontact
+MIR_CORE_DLL(int) db_mc_isMeta(MCONTACT hContact);
+
+// checks whether a contact is a subcontact of existing MC
+MIR_CORE_DLL(int) db_mc_isSub(MCONTACT hContact);
+
+#if defined(__cplusplus)
+}
+#endif
+
#endif
|