| dsc_ | freemangordon: im almost finished, a bit stuck with accept/deny/block contacts. We decided to do this via Tp, and I already have the TP code for it (from my earlier work) but it requires the Tp::ContactManager. Wondering if its possible without the ContactManager. | 00:54 |
|---|---|---|
| dsc_ | in order to have a ContactManager, there needs to be a Tp::Connection, which for 1:1 means TextChannel | 00:55 |
| dsc_ | eh, its not really an issue I guess.. just wondering if I can do without. | 00:56 |
| dsc_ | ill just call ensureConnection() | 00:58 |
| dsc_ | but.. creating a Tp::ContactPtr from a handle would be nice. | 01:17 |
| dsc_ | nvm it all works, ill commit tomorrow | 01:25 |
| inky | > Wizzup: modem disappearing ... yes I've reported it before on D4. not yet seen it on N900 | 04:15 |
| inky | i wish we could make it vanish and not communicate to cellular towers. | 04:15 |
| sicelo | inky: power it off through ofono, and maybe also unload its driver... | 06:21 |
| freemangordon | dsc_: how would you accept etc without having a connection? | 07:05 |
| freemangordon | and yes, you should be able to 'adopt' tp contact handle in Qt::TP | 09:05 |
| freemangordon | hmm, I think https://telepathy.freedesktop.org/doc/telepathy-qt/a09296.html#aa47cba559bbbe54b170bec5f3e044801 is what you need | 09:06 |
| inky | sicelo: i think i only can put the modem to sleep via airplane mode. | 17:07 |
| inky | but we have no 'tablet mode' as in fremantle. | 17:08 |
| inky | i tried to port tablet mode applet, but it was writing some nokia.something messages to dbus | 17:08 |
| inky | it doesnt work on leste | 17:08 |
| inky | it doesnt work on leste. | 17:08 |
| dsc_ | freemangordon1: https://plak.infrapuin.nl/selif/thhhyq42.txt | 17:29 |
| dsc_ | do you have an idea why presence prints as 'null', but only in the callback function | 17:29 |
| dsc_ | e_contact seems to not work | 17:30 |
| dsc_ | contact works though, like `osso_abook_contact_get_persistent_uid(contact);` | 17:30 |
| dsc_ | or alternatively, how can I loop contacts given a set of uids (osso_abook_aggregator_list_roster_contacts loops all) | 17:51 |
| dsc_ | I want to prevent fetching *all* contacts during the contact change signal | 17:52 |
| dsc_ | the callback does not provide me with mutation, nor with the ability to access ebook attributes :( | 17:52 |
| freemangordon1 | dsc_: re presence thing - what do you want to achieve? | 17:56 |
| freemangordon1 | and for sure e_contact works | 17:56 |
| freemangordon1 | could you try to get the vcard of the changed contact, use OSSO_ABOOK_DUMP_VCARD(TP, E_VCARD(*contact), NULL); | 17:59 |
| freemangordon1 | start the application with G_MESSAGES_DEBUG=all OSSO_ABOOK_DEBUG=tp | 17:59 |
| freemangordon | dsc_: looping through all teh contacts is not effective | 18:01 |
| freemangordon | hmm ,it is possible that callback is receiving master contact, not roster one | 18:03 |
| freemangordon | osso_abook_contact_find_roster_contacts() or the likes | 18:03 |
| dsc_ | thanks | 18:03 |
| freemangordon | dsc_: please, dump vcard first to see which exactly contact you are signaled for | 18:06 |
| dsc_ | yes | 18:06 |
| dsc_ | OSSO_ABOOK_DUMP_VCARD(TP, E_VCARD(*contact), NULL); yields no results | 18:06 |
| freemangordon | G_MESSAGES_DEBUG=all OSSO_ABOOK_DEBUG=tp | 18:06 |
| freemangordon | it will print it on the console | 18:07 |
| dsc_ | freemangordon: https://plak.infrapuin.nl/selif/be9raut2.txt | 18:08 |
| dsc_ | im expecting this vcard dump between the 2 "done" | 18:08 |
| freemangordon | hmm, weird | 18:09 |
| dsc_ | https://plak.infrapuin.nl/selif/2asy2eyt.txt | 18:09 |
| freemangordon | try with G_MESSAGES_DEBUG=all OSSO_ABOOK_DEBUG=all | 18:09 |
| dsc_ | yes it was all, all | 18:10 |
| dsc_ | let me try OSSO_ABOOK_DUMP_VCARD(TP, E_VCARD(*contacts), NULL); | 18:10 |
| dsc_ | no results | 18:10 |
| freemangordon | wait, that can't be | 18:11 |
| freemangordon | dsc_: please call osso_abook_debug_init() in your main ;) | 18:12 |
| freemangordon | actually | 18:12 |
| freemangordon | is osso_abook_init() called? | 18:12 |
| dsc_ | osso_abook_init_with_name("conversations", NULL); | 18:12 |
| dsc_ | yes | 18:12 |
| freemangordon | weird | 18:13 |
| dsc_ | ill try osso_abook_debug_init | 18:13 |
| freemangordon | no need | 18:13 |
| freemangordon | init calls it already | 18:13 |
| freemangordon | gimme a minute | 18:13 |
| freemangordon | dsc_: try to dump the result of osso_abook_contact_to_string() | 18:17 |
| freemangordon | format is EVC_FORMAT_VCARD_30 | 18:18 |
| freemangordon | brb, dinner | 18:18 |
| dsc_ | https://plak.infrapuin.nl/selif/39wyirkv.txt | 18:23 |
| dsc_ | i think this may be due to differences between 'master contact' and 'roster contact' | 18:27 |
| dsc_ | but only guessing | 18:27 |
| freemangordon | no, that's roster contact | 18:39 |
| freemangordon | but, I think you don;t see presence, because you are not authorized to see it | 18:40 |
| dsc_ | i trigger this signal by switching from online<->away | 18:42 |
| freemangordon | so, what does osso_abook_contact_can_request_auth() return for that contact? | 18:42 |
| dsc_ | (on the remote counterparty) | 18:42 |
| freemangordon | I understand | 18:42 |
| freemangordon | but, you are not getting contact presence that way | 18:43 |
| freemangordon | try with osso_abook_presence_get_presence_type(OSSO_ABOOK_PRESENCE(*contact)) | 18:44 |
| dsc_ | ok sec | 18:44 |
| freemangordon | well, abook knows about presence change | 18:49 |
| freemangordon | dsc_bla(haze/jabber/stevejobs_40xmpp_2ewajer_2eorg0-dsc@xmpp.is) - presence type changed (available => away) | 18:49 |
| dsc_ | yes | 18:49 |
| freemangordon | I suspect vcard presence is valid only when eds plugin updates ebook | 18:50 |
| freemangordon | but not for contact itself | 18:50 |
| dsc_ | ok | 18:50 |
| dsc_ | OssoABookPresence *presence = OSSO_ABOOK_PRESENCE(*contacts); | 18:50 |
| dsc_ | TpConnectionPresenceType presenceType = osso_abook_presence_get_presence_type(presence); | 18:50 |
| dsc_ | this works | 18:50 |
| freemangordon | mhm | 18:50 |
| dsc_ | https://plak.infrapuin.nl/selif/x31ueru0.txt | 18:50 |
| freemangordon | get_ blocked/subscribed/published etc shall work too | 18:51 |
| freemangordon | heh | 18:51 |
| dsc_ | ok ill check | 18:51 |
| freemangordon | dsc_: use p, li { white-space: pre-wrap; } tp_connection_presence_type_get_name | 18:52 |
| dsc_ | nice | 18:53 |
| freemangordon | to convert enum to string | 18:53 |
| freemangordon | see tp-glib-enums.h | 18:54 |
| freemangordon | and osso-abook-enums.h | 18:54 |
| freemangordon | you also have tp_connection_presence_type_get_nick() | 18:55 |
| freemangordon | which will return "Away", "Online", etc | 18:55 |
| dsc_ | from what package is this 'tp_connection_presence_type_get_name' ? | 18:56 |
| freemangordon | osso-abook | 18:56 |
| dsc_ | grep -r --include="*.h" 'tp_connection_presence_type_get_name' /usr | 18:56 |
| freemangordon | lemme check if it is distributed | 18:56 |
| dsc_ | nothing | 18:56 |
| dsc_ | https://github.com/search?q=tp_connection_presence_type_get_name&type=code | 18:56 |
| freemangordon | ugh, maybe it is not included in -devel | 18:56 |
| dsc_ | github also empty :d | 18:56 |
| freemangordon | it is generated file | 18:57 |
| dsc_ | ah ok | 18:57 |
| freemangordon | hmm, ok, it is not distributed | 18:58 |
| freemangordon | lemme check if 'original' abook distributes it | 18:58 |
| freemangordon | dsc_: no :( | 19:00 |
| freemangordon | I wonder if we shall distribute that | 19:00 |
| freemangordon | dsc_: unless strictly neede, I would rather not distribute it | 19:01 |
| freemangordon | anyways it is easily generated by whoever needs it | 19:01 |
| freemangordon | if you need it, see https://github.com/maemo-leste/osso-abook/blob/master/lib/Makefile.am#L235 | 19:04 |
| freemangordon | but I guess Qt::TP already has it | 19:04 |
| dsc_ | im fine with my 12 line switch block | 19:05 |
| freemangordon | I guess it is for debugging only | 19:05 |
| freemangordon | https://telepathy.freedesktop.org/doc/telepathy-qt/a08744.html | 19:06 |
| dsc_ | alright | 19:08 |
| freemangordon | dsc_: what do you need presence for? | 19:09 |
| freemangordon | remember, anything contact related for ui is already in abook, so most-probably you just need to use it | 19:11 |
| dsc_ | i do not, but for testing its easy to trigger contactChanged by changing contact presence | 19:11 |
| freemangordon | ok | 19:11 |
| dsc_ | so yes you are right | 19:11 |
| dsc_ | hmm | 19:11 |
| freemangordon | hmm? | 19:11 |
| dsc_ | its about publication/presence | 19:12 |
| dsc_ | no | 19:12 |
| dsc_ | publication/subscription | 19:12 |
| freemangordon | you get it by calling the relevant functions? | 19:12 |
| dsc_ | yes | 19:12 |
| dsc_ | lets see | 19:12 |
| dsc_ | < freemangordon> get_ blocked/subscribed/published etc shall work too | 19:12 |
| freemangordon | makes sense, as those OSSO_ABOOK_VCA_XXX are for internal use only | 19:13 |
| dsc_ | which are not in maemo.org/api_refs/5.0/5.0-final/libosso-abook/OssoABookContact.html | 19:13 |
| dsc_ | which are not in https://maemo.org/api_refs/5.0/5.0-final/libosso-abook/OssoABookContact.html | 19:13 |
| dsc_ | these functions* | 19:13 |
| freemangordon | sure, they are presence | 19:14 |
| dsc_ | sorry I'm having trouble forming coherent sentences :P | 19:14 |
| freemangordon | https://maemo.org/api_refs/5.0/5.0-final/libosso-abook/libosso-abook-osso-abook-presence.html | 19:14 |
| dsc_ | ah ok | 19:14 |
| dsc_ | cool | 19:14 |
| dsc_ | thanks | 19:14 |
| freemangordon | tolya, think of that API as c++ with class inheritance | 19:14 |
| freemangordon | see https://maemo.org/api_refs/5.0/5.0-final/libosso-abook/OssoABookContact.html | 19:15 |
| freemangordon | Object Hierarchy/Implemented Interfaces | 19:15 |
| dsc_ | :> | 19:16 |
| dsc_ | freemangordon: is there a 'convert enum to string' for OssoABookPresenceState ? | 19:29 |
| dsc_ | https://maemo.org/api_refs/5.0/5.0-final/libosso-abook/libosso-abook-osso-abook-presence.html#OssoABookPresenceState | 19:29 |
| dsc_ | its not really needed per se, just wondering | 19:30 |
| freemangordon | should be, lemme check | 19:34 |
| freemangordon | osso_abook_presence_state_get_name | 19:35 |
| freemangordon | osso_abook_presence_state_get_nick | 19:35 |
| freemangordon | but, don;t use that for UI | 19:35 |
| joerg | FYI: I took down bugs.m.o - please holler if you *really* used this recently | 19:40 |
| freemangordon | I doubt it's been used for the last years | 19:41 |
| joerg | yep | 19:41 |
| freemangordon | there were some useful things there, however, does not worth keeping it up | 19:42 |
| freemangordon | this is with my bugs.maemo.org maintainer hat on ;) | 19:42 |
| freemangordon | though I think you may keep VM image around for some time | 19:43 |
| freemangordon | joerg: as a side note - thanks for taking care of those things, retired or not :) | 19:44 |
| joerg | I just deleted the /etc/apache2/sites-enabled/* symlinks for bugs.m.o | 19:44 |
| freemangordon | VM still runs? | 19:44 |
| joerg | b.m.o and w.m.o are same server | 19:45 |
| freemangordon | ah | 19:45 |
| freemangordon | weird, my public key was denied | 19:45 |
| freemangordon | ah, roght | 19:45 |
| joerg | hm? | 19:45 |
| freemangordon | *right | 19:45 |
| freemangordon | wiki and bugs are same host | 19:45 |
| joerg | y4es | 19:46 |
| freemangordon | I don't have ssh access to them | 19:46 |
| joerg | you should | 19:46 |
| freemangordon | no, why should I | 19:46 |
| joerg | you had | 19:46 |
| freemangordon | I am bugzilla maintainer of bmo, not sever admin | 19:46 |
| freemangordon | anyway | 19:47 |
| joerg | root@wiki:/etc/apache2/sites-enabled# id freemangordon | 19:47 |
| joerg | uid=1009(freemangordon) gid=1009(freemangordon) groups=1009(freemangordon),27(sudo) | 19:47 |
| freemangordon | oh, I am trying with fmg, not freemangordon :D | 19:47 |
| freemangordon | heh: | 19:48 |
| freemangordon | Last login: Tue Dec 30 10:14:18 2014 from 46.249.74.23 | 19:48 |
| freemangordon | freemangordon@wiki:~$ | 19:48 |
| joerg | :-> | 19:48 |
| freemangordon | ten years ago, eh? | 19:48 |
| joerg | hehe | 19:48 |
| dsc_ | freemangordon: hi | 20:08 |
| dsc_ | https://plak.infrapuin.nl/selif/im7opi0g.txt | 20:09 |
| dsc_ | it prints '1' | 20:09 |
| dsc_ | which is | 20:09 |
| dsc_ | OSSO_ABOOK_PRESENCE_STATE_NO | 20:09 |
| dsc_ | which is incorrect | 20:09 |
| dsc_ | [D] [tp.cpp::172] local_uid "haze/jabber/stevejobs_40xmpp_2ewajer_2eorg0" | 20:10 |
| dsc_ | [D] [tp.cpp::173] remote_uid "dsc@xmpp.is" | 20:10 |
| dsc_ | [D] [tp.cpp::174] presence "available" | 20:10 |
| dsc_ | [D] [tp.cpp::175] subscribed "yes" | 20:10 |
| dsc_ | [D] [tp.cpp::176] published "yes" | 20:10 |
| dsc_ | thats the actual status | 20:10 |
| freemangordon | dsc_: I am not sure what OSSO_ABOOK_PRESENCE_STATE_NO is supposed to mean | 20:49 |
| freemangordon | I don't think presence state == presence status | 20:49 |
| dsc_ | https://maemo.org/api_refs/5.0/5.0-final/libosso-abook/libosso-abook-osso-abook-presence.html#osso-abook-presence-get-published | 20:51 |
| dsc_ | yes/no/local-pending/remote-pending is from Tp I guess | 20:51 |
| dsc_ | I also saw them in Tp | 20:51 |
| freemangordon | mhm | 20:51 |
| freemangordon | I am not sure I grok them, lemme try | 20:51 |
| dsc_ | thx | 20:52 |
| freemangordon | ok, will need some time to debug that | 20:58 |
| freemangordon | how to reproduce? | 20:58 |
| dsc_ | sec | 20:59 |
| dsc_ | https://plak.infrapuin.nl/selif/tz2t41iz.txt | 21:02 |
| dsc_ | something like this (still needs main()) | 21:02 |
| dsc_ | and then | 21:03 |
| dsc_ | have a XMPP account with haze, where you have friended someone | 21:03 |
| dsc_ | and then change online<->away on the remote contact | 21:03 |
| dsc_ | expected state is 'yes' for both | 21:04 |
| dsc_ | for `osso_abook_presence_get_published` and the other | 21:05 |
| dsc_ | OssoABookContact *contact = static_cast<OssoABookContact *>(*contacts); | 21:05 |
| dsc_ | in the while | 21:05 |
| dsc_ | this method gives the correct attributes: https://plak.infrapuin.nl/selif/b6yknv4w.txt (simplified) | 21:12 |
| dsc_ | dont call it from the callback | 21:13 |
| freemangordon | ok, lemme try to debug your example | 21:26 |
| freemangordon | what remote change do I need? just away/available change? | 21:26 |
| dsc_ | yes | 21:29 |
| freemangordon | ok, thanks | 21:29 |
| freemangordon | dsc_: there is a bug on abook, will take some time to fix it properly | 23:53 |
| freemangordon | *in abook | 23:53 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!