From 36efd5151e53f6ebae280ca9992a1fa824086aef Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Nov 2023 17:44:50 +0300 Subject: added ability to mark contacts as read-only --- include/m_contacts.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/m_contacts.h b/include/m_contacts.h index 3cea1e17d6..3435fe19e4 100644 --- a/include/m_contacts.h +++ b/include/m_contacts.h @@ -95,6 +95,12 @@ namespace Contact MIR_APP_DLL(bool) IsHidden(MCONTACT hContact); MIR_APP_DLL(void) Hide(MCONTACT hContact, bool bHidden = true); + ///////////////////////////////////////////////////////////////////////////////////////// + // gets / sets read-only status for a contact + + MIR_APP_DLL(bool) IsReadonly(MCONTACT hContact); + MIR_APP_DLL(void) Readonly(MCONTACT hContact, bool bReadOnly = true); + ///////////////////////////////////////////////////////////////////////////////////////// // checks / adds / removes a contact from list of contacts // removed contacts would be physically deleted after restart -- cgit v1.2.3