summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-21 17:44:50 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-21 17:44:50 +0300
commit36efd5151e53f6ebae280ca9992a1fa824086aef (patch)
tree14dd51fb67c9c7d929824ad5ae55af7178a5b00d /include
parent4f38af21d106fe759a31c2fe360ce9170119ad66 (diff)
added ability to mark contacts as read-only
Diffstat (limited to 'include')
-rw-r--r--include/m_contacts.h6
1 files changed, 6 insertions, 0 deletions
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
@@ -96,6 +96,12 @@ namespace Contact
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