libera/#maemo-leste/ Monday, 2024-11-11

joergfreemangordon: sorry, been afk02:46
joergfreemangordon: drive dead on blade-a02:47
joergyes, ssh works02:48
joergwow, there are a 5 dozen stale qemu instances on blade-a now, for vm "stage"02:51
freemangordonWizzup: ping17:24
dsc_freemangordon: ping18:53
dsc_iterating contacts in the roster via abook18:57
dsc_https://github.com/maemo-leste/osso-abook/blob/master/lib/osso-abook-aggregator.h#L9118:58
dsc_so I create this aggregator18:58
dsc_then use it to call `osso_abook_aggregator_list_roster_contacts` for example18: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
freemangordondsc_: https://gnome.pages.gitlab.gnome.org/evolution-data-server/19:25
freemangordondsc_: you can create roster by using account19:26
freemangordonalso, most-probably need osso_abook_aggregator_get_default()19:28
freemangordonbut, please, explain what you want to achieve, that I will just give you the code19:28
freemangordons/that/then19:28
dsc_yes, nice19:28
dsc_I would like a list of contacts with their properties so I can see if there are pending presence subscription requests19:29
dsc_I would also like to subscribe to signals related to presence subscription/publication requests19:29
dsc_I also need functions for accept/deny/block/remove presence subscription requests19: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 presence19:32
dsc_And... also sending such presence subscription requests on our own, to arbitrary contact addresses19:34
freemangordondsc_: so, you need a list of all roster contacts, right?19:37
freemangordoni.e. contacts that come from telepathy accounts19:38
freemangordonfor that all you need is osso_abook_aggregator_list_roster_contacts()19:38
freemangordonthis returns a list of OssoABookContact *19:41
freemangordondoing 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 want19:42
freemangordonok, lemme write some code19: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
freemangordonyes, there is19:44
freemangordonno, another one19:44
freemangordonsec19:44
freemangordondsc_:   osso_abook_contact_get_account()19:45
freemangordonis this what you are looking for?19:46
freemangordonor, you can do osso_abook_contact_get_roster() if you need it19:47
dsc_ah, ok19:47
freemangordonunfortunately wiki is down, not sure how to find it on archive.org19:48
freemangordon(for abook documentation)19:48
freemangordonxes: ping19:49
kivaCould MMS come to Leste with this: https://packages.debian.org/sid/mmsd-tng ?19:56
freemangordonthis use modem-mnager20:02
kiva90So too hard to modified to Leste?20:07
dsc_freemangordon: trying with https://plak.infrapuin.nl/selif/4f2btrnt.txt20:11
dsc_apparently we already had a aggregator laying around20:12
freemangordondsc_: looks pretty much ok20:16
freemangordondoe sit work?20:16
dsc_not sure, my codebase now is a battlefield with the other, old Tp stuff20:16
dsc_will need some time20:17
freemangordonok20:18
freemangordondsc_: one note:20:21
freemangordondo not do g_list_free_full(contacts, g_object_unref);20:21
freemangordong_list_free(contacts) is what you have to do20:21
freemangordonsee what osso_abook_aggregator_list_roster_contacts is doing https://github.com/maemo-leste/osso-abook/blob/master/lib/osso-abook-aggregator.c#L248920:22
dsc_ok20:23
dsc_and also perhaps EVCardAttribute* needs cleaning up20:23
dsc_need to look into this20:23
sicelokiva90: mms can definitely be made to work. note that even the modem-manager implementation was basically ripped off ofono20:25
siceloit's just that that dev worked on mms while ofono was at l20:25
siceloat its lowest point...20:26
siceloAnyway, no mms anymore in my part of the world, otherwise I would look into supporting it20:26
kiva90sicelo: But you at least try, thanks..nobody sends MMS messages to you anymore?20:28
sicelooperatorsno longer support it20:29
siceloyou're in America I can guess? seems that's one place mms is still popular, at least based on what I get from postmarketos20:30
kivaIn Nordic countries also, because iPhone send message in MMS if people but emoji in normal text message.20:32
kivanot emoji, I mean emoticon.20:32
kivaemojis comes with those 3 byte codes.20:33
siceloI can ask kop316 (mmsd-tng author) if he could support ofono now. I actually think it shouldn't be too hard to add support20:34
kivathanks.20:35
sicelohe did have a bad experience with ofono though, so no surprise if he isn't interested20:35
kivaIt would be nice if ofono and mmsd-tng and old fMMS devs sit together to make support for Maemo...20:40
sicelohttps://git.sr.ht/~anteater/mmsd/log20:49
sicelothat mmsd, with some love, could probably work with our ofono20:50
siceloand yes, sounds like kop316 would merge an ofono patch, if someone submitted it and was committed to maintaining it20:51
siceloif you know a little bit of C, maybe I could also help/guide where I can20:52
sicelokiva: what Leste phone are you using BTW?20:54
kiva94I 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
kiva94So I am not the best guy to be maintainer for it.21:01
siceloI'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. :-D21:12
siceloso I think you actually can maintain it perfectly well. copy-paste, and the compiler will help you by throwing errors :-p21:12
kiva94:)21:14
freemangordonsicelo: come on21:15
freemangordonping me when you have 5 minutes (not now) and I'll explain that to you once and for all21:15
kiva94In 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 of21:23
kiva94tea.21:23
sicelofreemangordon: I'll take you up on that offer21:32
freemangordonsure21:41

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!