| joerg | freemangordon: sorry, been afk | 02:46 |
|---|---|---|
| joerg | freemangordon: drive dead on blade-a | 02:47 |
| joerg | yes, ssh works | 02:48 |
| joerg | wow, there are a 5 dozen stale qemu instances on blade-a now, for vm "stage" | 02:51 |
| freemangordon | Wizzup: ping | 17:24 |
| dsc_ | freemangordon: ping | 18:53 |
| dsc_ | iterating contacts in the roster via abook | 18:57 |
| dsc_ | https://github.com/maemo-leste/osso-abook/blob/master/lib/osso-abook-aggregator.h#L91 | 18:58 |
| dsc_ | so I create this aggregator | 18:58 |
| dsc_ | then use it to call `osso_abook_aggregator_list_roster_contacts` for example | 18:58 |
| dsc_ | what is an `EBook` ? | 18:59 |
| dsc_ | for (l = osso_abook_aggregator_list_roster_contacts(OSSO_ABOOK_AGGREGATOR(aggregator)); l; l = g_list_delete_link(l, l)) { | 19:01 |
| dsc_ | E_CONTACT contact = E_CONTACT(l->data); | 19:01 |
| dsc_ | something like this for looping? | 19:01 |
| dsc_ | (idk what E_CONTACT is, probably some macro) | 19:02 |
| dsc_ | somehow transfer this E_CONTACT into `OssoABookContact` | 19:04 |
| dsc_ | then get the vcard_attribute for OSSO_ABOOK_VCA_TELEPATHY_SUBSCRIBED (and others) | 19:06 |
| dsc_ | e_vcard_get_attribute(E_VCARD(contact), OSSO_ABOOK_VCA_TELEPATHY_SUBSCRIBED); | 19:06 |
| dsc_ | (as well as PUBLISHED) | 19:07 |
| freemangordon | dsc_: https://gnome.pages.gitlab.gnome.org/evolution-data-server/ | 19:25 |
| freemangordon | dsc_: you can create roster by using account | 19:26 |
| freemangordon | also, most-probably need osso_abook_aggregator_get_default() | 19:28 |
| freemangordon | but, please, explain what you want to achieve, that I will just give you the code | 19:28 |
| freemangordon | s/that/then | 19:28 |
| dsc_ | yes, nice | 19:28 |
| dsc_ | I would like a list of contacts with their properties so I can see if there are pending presence subscription requests | 19:29 |
| dsc_ | I would also like to subscribe to signals related to presence subscription/publication requests | 19:29 |
| dsc_ | I also need functions for accept/deny/block/remove presence subscription requests | 19:30 |
| dsc_ | incoming presence subscription request = remote party wants to see our status (known as 'add buddy') | 19:31 |
| dsc_ | it is commonly answered with a 'publication request' where we give the counter party access to our own presence | 19:32 |
| dsc_ | And... also sending such presence subscription requests on our own, to arbitrary contact addresses | 19:34 |
| freemangordon | dsc_: so, you need a list of all roster contacts, right? | 19:37 |
| freemangordon | i.e. contacts that come from telepathy accounts | 19:38 |
| freemangordon | for that all you need is osso_abook_aggregator_list_roster_contacts() | 19:38 |
| freemangordon | this returns a list of OssoABookContact * | 19:41 |
| freemangordon | doing osso_abook_aggregator_list_roster_contacts(NULL) is ok, it will use default aggregator that uses system addressbook (EBook) and ba sically that's what we want | 19:42 |
| freemangordon | ok, lemme write some code | 19:42 |
| dsc_ | is there a reference somewhere in contact to the account? | 19:43 |
| dsc_ | maybe `osso_abook_contact_find_roster_contacts_for_account` | 19:43 |
| freemangordon | yes, there is | 19:44 |
| freemangordon | no, another one | 19:44 |
| freemangordon | sec | 19:44 |
| freemangordon | dsc_: osso_abook_contact_get_account() | 19:45 |
| freemangordon | is this what you are looking for? | 19:46 |
| freemangordon | or, you can do osso_abook_contact_get_roster() if you need it | 19:47 |
| dsc_ | ah, ok | 19:47 |
| freemangordon | unfortunately wiki is down, not sure how to find it on archive.org | 19:48 |
| freemangordon | (for abook documentation) | 19:48 |
| freemangordon | xes: ping | 19:49 |
| kiva | Could MMS come to Leste with this: https://packages.debian.org/sid/mmsd-tng ? | 19:56 |
| freemangordon | this use modem-mnager | 20:02 |
| kiva90 | So too hard to modified to Leste? | 20:07 |
| dsc_ | freemangordon: trying with https://plak.infrapuin.nl/selif/4f2btrnt.txt | 20:11 |
| dsc_ | apparently we already had a aggregator laying around | 20:12 |
| freemangordon | dsc_: looks pretty much ok | 20:16 |
| freemangordon | doe sit work? | 20:16 |
| dsc_ | not sure, my codebase now is a battlefield with the other, old Tp stuff | 20:16 |
| dsc_ | will need some time | 20:17 |
| freemangordon | ok | 20:18 |
| freemangordon | dsc_: one note: | 20:21 |
| freemangordon | do not do g_list_free_full(contacts, g_object_unref); | 20:21 |
| freemangordon | g_list_free(contacts) is what you have to do | 20:21 |
| freemangordon | see what osso_abook_aggregator_list_roster_contacts is doing https://github.com/maemo-leste/osso-abook/blob/master/lib/osso-abook-aggregator.c#L2489 | 20:22 |
| dsc_ | ok | 20:23 |
| dsc_ | and also perhaps EVCardAttribute* needs cleaning up | 20:23 |
| dsc_ | need to look into this | 20:23 |
| sicelo | kiva90: mms can definitely be made to work. note that even the modem-manager implementation was basically ripped off ofono | 20:25 |
| sicelo | it's just that that dev worked on mms while ofono was at l | 20:25 |
| sicelo | at its lowest point... | 20:26 |
| sicelo | Anyway, no mms anymore in my part of the world, otherwise I would look into supporting it | 20:26 |
| kiva90 | sicelo: But you at least try, thanks..nobody sends MMS messages to you anymore? | 20:28 |
| sicelo | operatorsno longer support it | 20:29 |
| sicelo | you're in America I can guess? seems that's one place mms is still popular, at least based on what I get from postmarketos | 20:30 |
| kiva | In Nordic countries also, because iPhone send message in MMS if people but emoji in normal text message. | 20:32 |
| kiva | not emoji, I mean emoticon. | 20:32 |
| kiva | emojis comes with those 3 byte codes. | 20:33 |
| sicelo | I can ask kop316 (mmsd-tng author) if he could support ofono now. I actually think it shouldn't be too hard to add support | 20:34 |
| kiva | thanks. | 20:35 |
| sicelo | he did have a bad experience with ofono though, so no surprise if he isn't interested | 20:35 |
| kiva | It would be nice if ofono and mmsd-tng and old fMMS devs sit together to make support for Maemo... | 20:40 |
| sicelo | https://git.sr.ht/~anteater/mmsd/log | 20:49 |
| sicelo | that mmsd, with some love, could probably work with our ofono | 20:50 |
| sicelo | and yes, sounds like kop316 would merge an ofono patch, if someone submitted it and was committed to maintaining it | 20:51 |
| sicelo | if you know a little bit of C, maybe I could also help/guide where I can | 20:52 |
| sicelo | kiva: what Leste phone are you using BTW? | 20:54 |
| kiva94 | I have to first learn how to make Hello World in Linux..I have made little C code in DOS years ago. I use Pinephone Keyboard. | 20:56 |
| kiva94 | So I am not the best guy to be maintainer for it. | 21:01 |
| sicelo | I've contributed code to a couple of C projects, and to this day still don't know when to use &, *, ->, or . when pointers and structs are involved. :-D | 21:12 |
| sicelo | so I think you actually can maintain it perfectly well. copy-paste, and the compiler will help you by throwing errors :-p | 21:12 |
| kiva94 | :) | 21:14 |
| freemangordon | sicelo: come on | 21:15 |
| freemangordon | ping me when you have 5 minutes (not now) and I'll explain that to you once and for all | 21:15 |
| kiva94 | In time to time have tried compile something old code (just using make) and compiler always throwing so many errors that I gave up...but I try now first relearn C in Linux enviroment then I remember contact you...actually I am not bad coder, I have even helped pro coders to think how to solve problems optimal way, but unix and C is not my cub of | 21:23 |
| kiva94 | tea. | 21:23 |
| sicelo | freemangordon: I'll take you up on that offer | 21:32 |
| freemangordon | sure | 21:41 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!