summaryrefslogtreecommitdiff
path: root/libpurple/purplecontact.c
Commit message (Collapse)AuthorAgeFilesLines
* Bump C standard to C99 for libpurple files and fix warningsElliott Sales de Andrade2022-12-111-1/+1
| | | | | | | Testing Done: Touched all source files and compiled; saw no new warnings. Reviewed at https://reviews.imfreedom.org/r/2122/
* Split PurpleContactInfo out of PurpleContactGary Kramlich2022-11-281-535/+8
| | | | | | | | | | 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-49/+147
| | | | | | | | | | | 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/
* Add purple_contact_compare and purple_contact_get_name_for_displayGary Kramlich2022-11-191-0/+68
| | | | | | | Testing Done: Ran the unit tests Reviewed at https://reviews.imfreedom.org/r/2069/
* Add a contact property to PurpleAccountGary Kramlich2022-11-161-16/+11
| | | | | | | | | | | | | | | 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-2/+46
| | | | | | | | | | | 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/
* Create and add PurpleContacts to the manager when purple_buddy_new is calledGary Kramlich2022-10-011-13/+2
| | | | | | | | | | | | | 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-3/+2
| | | | | | | | | | 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/+39
| | | | | | | Testing Done: Ran the unit tests. Reviewed at https://reviews.imfreedom.org/r/1852/
* Create the new PurpleContactGary Kramlich2022-09-231-0/+438
Testing Done: Ran the unit tests and `ninja pidgin-pot` Bugs closed: PIDGIN-17663 Reviewed at https://reviews.imfreedom.org/r/1828/