summaryrefslogtreecommitdiff
path: root/libpurple/purplecontact.h
Commit message (Collapse)AuthorAgeFilesLines
* Split PurpleContactInfo out of PurpleContactGary Kramlich2022-11-281-288/+6
| | | | | | | | | | This change separates all of the data away from the runtime information which makes it easier to store contacts with everything. Testing Done: Ran the unit tests and sent a few messages with ircv3 and demo protocols. Reviewed at https://reviews.imfreedom.org/r/2091/
* Make PurpleContact derivableGary Kramlich2022-11-231-1/+22
| | | | | | | | | | | We want to make PurpleContact derivable so that we can subclass it with PurpleAccount. This will make things easier for everyone as we start moving everything to PurpleContact as an account will just be a contact. Testing Done: Ran the unit tests and built the docs. Reviewed at https://reviews.imfreedom.org/r/2081/
* Update purple_contact_sort's documentation to say it returns < 0 and > 1Gary Kramlich2022-11-191-2/+2
| | | | | | | | | | It turns out that g_utf8_collate will return values other than -1, 0, and 1 on BSD which broke the unit tests which were expecting -1 but got -25. Testing Done: Ran the unit tests on FreeBSD and verified they passed. Reviewed at https://reviews.imfreedom.org/r/2077/
* Add purple_contact_compare and purple_contact_get_name_for_displayGary Kramlich2022-11-191-0/+36
| | | | | | | Testing Done: Ran the unit tests Reviewed at https://reviews.imfreedom.org/r/2069/
* Add a contact property to PurpleAccountGary Kramlich2022-11-161-1/+15
| | | | | | | | | | | | | | | This contact can be used by the protocol to store additional information about the account, including the user id, alias, etc. When the protocol connects, it will be responsible for adding this contact to the ContactManager once it knows that the id is correct. This will also be used in the future when PurpleMessage gets migrated to using PurpleContact's as well. Testing Done: Connected an IRCv3 and demo accounts. Reviewed at https://reviews.imfreedom.org/r/2064/
* Add a permission property to PurpleContactGary Kramlich2022-11-161-0/+42
| | | | | | | | | | | This property is intended to handle the majority of our privacy use cases in the future. It won't get everything, but it's a simple start that will make a lot of impact. Testing Done: Compiled and ran the unit tests. Reviewed at https://reviews.imfreedom.org/r/2066/
* Fix some include loopsGary Kramlich2022-11-161-0/+1
| | | | | | | | | | This is needed for something else I'm working on, but it was much easier to find/fix outside of that code. Testing Done: Compiled Reviewed at https://reviews.imfreedom.org/r/2063/
* Create and add PurpleContacts to the manager when purple_buddy_new is calledGary Kramlich2022-10-011-14/+0
| | | | | | | | | | | | | This required some additional changes to PurpleContact. Namely that the contact always has a presence and it is no longer writeable. Testing Done: Ran the unit tests and verified nothing funky happens when running. We can't test that all of the properties are properly bound because we would have to start up a lot more of libpurple than I'm willing to do for something that's temporary. Bugs closed: PIDGIN-17685 Reviewed at https://reviews.imfreedom.org/r/1873/
* Make purple_contact_new take the id instead of the username.Gary Kramlich2022-09-291-2/+8
| | | | | | | | | | Username is already readwrite, but id is not, and most protocols have id's for everything, so lets make that the normal case in the api. Testing Done: Ran the unit tests. Reviewed at https://reviews.imfreedom.org/r/1851/
* Add a person property to PurpleContactGary Kramlich2022-09-291-0/+26
| | | | | | | Testing Done: Ran the unit tests. Reviewed at https://reviews.imfreedom.org/r/1852/
* Fix various small documentation errorsElliott Sales de Andrade2022-09-281-2/+2
| | | | | | | | | Fix missing transfer annotations, remove old syntax from gtk-doc, correct an `element-type` annotation, and fix a typo. Testing Done: Compiled with docs on, and got fewer warnings. Also functions with added transfer annotations are no longer unavailable to bindings. Reviewed at https://reviews.imfreedom.org/r/1855/
* Create the new PurpleContactGary Kramlich2022-09-231-0/+229
Testing Done: Ran the unit tests and `ninja pidgin-pot` Bugs closed: PIDGIN-17663 Reviewed at https://reviews.imfreedom.org/r/1828/