summaryrefslogtreecommitdiff
path: root/include/m_contacts.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/m_contacts.h')
-rw-r--r--include/m_contacts.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/m_contacts.h b/include/m_contacts.h
index f5decd61fb..540b620a2c 100644
--- a/include/m_contacts.h
+++ b/include/m_contacts.h
@@ -1,7 +1,7 @@
/*
Miranda NG: the free IM client for Microsoft* Windows*
-Copyright (C) 2012-24 Miranda NG team (https://miranda-ng.org)
+Copyright (C) 2012-25 Miranda NG team (https://miranda-ng.org)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -82,12 +82,13 @@ namespace Contact
MCONTACT hContact, // contact id or NULL for the global data
const char *szProto = nullptr); // protocol for global data. if skipped, grabbed from hContact
- MIR_APP_DLL(int) GetStatus(MCONTACT hContact);
+ MIR_APP_DLL(int) GetStatus(MCONTACT hContact, const char *szProto = nullptr);
/////////////////////////////////////////////////////////////////////////////////////////
// if contact is a group chat
+ // returns GCW_* constant or 0 if it's not a group chat
- MIR_APP_DLL(bool) IsGroupChat(MCONTACT hContact, const char *szProto = nullptr);
+ MIR_APP_DLL(int) IsGroupChat(MCONTACT hContact, const char *szProto = nullptr);
/////////////////////////////////////////////////////////////////////////////////////////
// gets / sets hidden status for a contact
@@ -102,6 +103,11 @@ namespace Contact
MIR_APP_DLL(void) Readonly(MCONTACT hContact, bool bReadOnly = true);
/////////////////////////////////////////////////////////////////////////////////////////
+ // sets a birthday
+
+ MIR_APP_DLL(void) SetBirthday(MCONTACT hContact, int dd, int mm, int yy);
+
+ /////////////////////////////////////////////////////////////////////////////////////////
// checks / adds / removes a contact from list of contacts
// removed contacts would be physically deleted after restart