From 35e2289786a7f1542573d1a58ebc971970ea981c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 5 Apr 2018 22:10:25 +0300 Subject: CLIST_INTERFACE::pfnGetContactDisplayName => Clist_GetContactDisplayName --- include/delphi/m_clist.inc | 5 +++++ include/delphi/m_clistint.inc | 1 - include/m_clist.h | 8 ++++++++ include/m_clistint.h | 4 ---- 4 files changed, 13 insertions(+), 5 deletions(-) (limited to 'include') 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 @@ -154,6 +154,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 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 @@ -479,6 +479,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 ///////////////////////////////////////////////////////////////////////////////////////// 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 */ -- cgit v1.2.3