summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-05 22:10:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-05 22:10:25 +0300
commit35e2289786a7f1542573d1a58ebc971970ea981c (patch)
treeda8887c793611fdbf6072fd477fd8c01c60b8b02 /include
parentf7c00d6dc53774d16b9721e79ed5d4017af63884 (diff)
CLIST_INTERFACE::pfnGetContactDisplayName => Clist_GetContactDisplayName
Diffstat (limited to 'include')
-rw-r--r--include/delphi/m_clist.inc5
-rw-r--r--include/delphi/m_clistint.inc1
-rw-r--r--include/m_clist.h8
-rw-r--r--include/m_clistint.h4
4 files changed, 13 insertions, 5 deletions
diff --git a/include/delphi/m_clist.inc b/include/delphi/m_clist.inc
index 7d9c279396..e71cc3e622 100644
--- a/include/delphi/m_clist.inc
+++ b/include/delphi/m_clist.inc
@@ -155,6 +155,11 @@ const
function Clist_GetContactIcon(hContact:TMCONTACT) : integer; stdcall; external AppDll;
{
+ returns a static display name for a contact
+ }
+ function Clist_GetContactDisplayName(hContact:TMCONTACT; mode:int):PWideChar; stdcall; external AppDll;
+
+ {
wParam : 0
lParam : 0
Affect : Toggles the show/hide status of the contact list
diff --git a/include/delphi/m_clistint.inc b/include/delphi/m_clistint.inc
index 37b83db0e3..809a18cd3a 100644
--- a/include/delphi/m_clistint.inc
+++ b/include/delphi/m_clistint.inc
@@ -384,7 +384,6 @@ type
pfnCheckCacheItem : procedure (_para1:PClcCacheEntry); cdecl;
pfnFreeCacheItem : procedure (_para1:PClcCacheEntry); cdecl;
- pfnGetContactDisplayName : function (hContact:TMCONTACT; mode:int):PWideChar; cdecl;
pfnInvalidateDisplayNameCacheEntry : procedure (hContact:TMCONTACT); cdecl;
(* clisttray.c *)
diff --git a/include/m_clist.h b/include/m_clist.h
index fb41feefc9..463ce493c2 100644
--- a/include/m_clist.h
+++ b/include/m_clist.h
@@ -480,6 +480,14 @@ EXTERN_C MIR_APP_DLL(int) Clist_ContactChangeGroup(MCONTACT hContact, MGROUP hGr
EXTERN_C MIR_APP_DLL(int) Clist_ContactCompare(MCONTACT hContact1, MCONTACT hContact2);
/////////////////////////////////////////////////////////////////////////////////////////
+// returns a static display name for a contact
+
+#define GCDNF_NOMYHANDLE 1 // will never return the user's custom name
+#define GCDNF_NOCACHE 4 // will not use the cache
+
+EXTERN_C MIR_APP_DLL(wchar_t*) Clist_GetContactDisplayName(MCONTACT hContact, int mode = 0);
+
+/////////////////////////////////////////////////////////////////////////////////////////
// DRAG-N-DROP SUPPORT
/////////////////////////////////////////////////////////////////////////////////////////
// a contact is being dragged outside the main window
diff --git a/include/m_clistint.h b/include/m_clistint.h
index 2cf393a059..2c7d9ec763 100644
--- a/include/m_clistint.h
+++ b/include/m_clistint.h
@@ -391,10 +391,6 @@ struct CLIST_INTERFACE
void (*pfnCheckCacheItem)(ClcCacheEntry*);
void (*pfnFreeCacheItem)(ClcCacheEntry*);
- #define GCDNF_NOMYHANDLE 1 // will never return the user's custom name
- #define GCDNF_NOCACHE 4 // will not use the cache
-
- wchar_t* (*pfnGetContactDisplayName)(MCONTACT hContact, int mode);
void (*pfnInvalidateDisplayNameCacheEntry)(MCONTACT hContact);
/* clisttray.c */