<freemangordon>
*it is not addressbook that decides
<uvos>
i also dont see why tel:// can also use xdg, opening a tp window need not be the only possibility
<uvos>
*cant
<freemangordon>
because tel:// is not any diferent than skype:// for example
<freemangordon>
or viber:// or whatever
<freemangordon>
we shall ask telepathy to handle that
<uvos>
i dont follow
<freemangordon>
tel:// is just another protocol in telepathy world
<uvos>
same with xdg really
ikmaak has quit [Quit: No Ping reply in 180 seconds.]
<freemangordon>
it is more complicated
<freemangordon>
lemme give you an example
<uvos>
user clicks on phone numner -> check if tp ui is active -> its not -> xdg-open tel://
<freemangordon>
there is no "tp ui"
<freemangordon>
wait, lemme try to explain
<uvos>
sure there is conversations for instance (for sms://)
<freemangordon>
no, it is just "dbus client" in tp workd
<freemangordon>
that happens to support Text channels with handle type of 0
<uvos>
i dont see how this is material
<freemangordon>
example: back then skype was used to call landlines, so, you can call +123999888 by using either pstn or skype
<freemangordon>
what will xdg do in that case?
<freemangordon>
the same for viber now, btw
<freemangordon>
so, how is xdg going to implement "call with skype" functionality?
<uvos>
well you can choose to send skype://+123999888 or tel://+123999888 and it will end up in the right place
<freemangordon>
no, you have tel://+123999888 and that's all
<freemangordon>
in the addressbook I mean
<freemangordon>
all you have is a phone number
<freemangordon>
and you know this is mobile/landline/whatever
<uvos>
so? the user has to make the choise about the protocoll somehwere
<freemangordon>
but, just a phone number
<freemangordon>
addressbook/tp does that for you automagically
<uvos>
it must get the information from somewhere
<freemangordon>
sure
<freemangordon>
but it is already there, in a standarts
<freemangordon>
lemme explain:
<freemangordon>
skype protocol (example) has the so called "supported uri schemes" or "secondary vcard field", which tells telepathy what other types of uris it can handle
<freemangordon>
so, primary vcard field of skype is x-skype, put it also have tel as supported uri scheme
<freemangordon>
*but it also
<uvos>
right
<uvos>
skype.desktop is exactly the same
<uvos>
it has tel:// and skype://
ikmaak has joined #maemo-leste
<freemangordon>
but, you don;t know which one is the primary handler of tel://
<freemangordon>
also, what about icons?
<uvos>
yes you do
<uvos>
this is how the default mime handlers work
<freemangordon>
yes, I understand what you mean
<uvos>
ie one .desktop file is coniserd default as per user preferances
<freemangordon>
yeah, I know
<freemangordon>
also, how do you connect EDS contacts with xdg mimetype?
<freemangordon>
and with telepathy account
<uvos>
well with telepathy account you dont
<uvos>
if the user has something not telepathy as the default that part ill just not work obv
<uvos>
since the backedn application (closed source skype applcation in this case) is not tp
<freemangordon>
wait, sphone is not telepathy
<uvos>
as per EDS contact the applcation (liek skype) looks up the phone number itself
<freemangordon>
no, it is addressbook that does it for yopu
<uvos>
if that ends up in EDS or its won database (as is the case for skype) depends on the program
<freemangordon>
and provides both calling (from) and caller (to) account
<uvos>
sure but it dosent have to, everything works without this
<freemangordon>
and it becomes the mess android communication is
<uvos>
ofc if its using tp, wich is a option you could have by having a magic tp.desktop file
<uvos>
it would work as is
<freemangordon>
no, tp is not an application
<uvos>
so?
<freemangordon>
it works in totally different way
<uvos>
i saying it could work like this:
<uvos>
you have a default .desktop file
<uvos>
for a url
<uvos>
if its any usual application the address book (like skype application or sphone) it xdg-opens the url.
<freemangordon>
uvos: sorry to interrupt, but you forget about vcf and its fields
<uvos>
if the handler is set to the magic tp.dekstop file
<freemangordon>
because you don;t have urls in vcf
<uvos>
it just informs tp
<uvos>
sp
<uvos>
so?
<freemangordon>
so, I don;t see how you start with vcf and end in url
<uvos>
translating vcf fields to urls is not that hard
<freemangordon>
who will do it?
<uvos>
the addressbook?
<freemangordon>
it does not have any knowledge on that
<uvos>
hmm so osso-addressbook deals in eds contacts no?
<freemangordon>
sure
<uvos>
and when you click on a filed it coul take that field
<freemangordon>
yes
<uvos>
prepend a url depending on the field type and then decide what to do
<uvos>
either passing to tp as it dose right now
<freemangordon>
this is where it is broken aiui
<freemangordon>
tp uses another shape of contact uid
<freemangordon>
it does not use url
<uvos>
so?
<freemangordon>
so, addressbook should support a DB to translate eds vcard_field<->url
<uvos>
if the magic desktop file is set as default for that url it just dose whatever it dose rn to get the field to be handeld by tp
<uvos>
pretty sure this exists
<freemangordon>
no
<freemangordon>
afaik
<uvos>
maybe check what gnome-contatcs dose
<freemangordon>
because vcf and telepathy have no idea about mime
<uvos>
it dose exactly this
<freemangordon>
well, feel free to check :)
<uvos>
ie you click on a feld
<uvos>
it opens via xdg or its own dialer ui depending on settings
<freemangordon>
also, are you sure they support skype call of phone number?
<freemangordon>
as I am almost sure they don;t
<uvos>
it just xdg-opens tel://
<freemangordon>
the only place I have ever seen that (besides skype ofc) is n900 addressbook
<uvos>
if thats skype for you
<uvos>
yeah
<uvos>
ofc
<uvos>
it opens skype
<freemangordon>
uvos: I think I explained the usecase
<freemangordon>
you can open tel:// by using either phoneui or skype
<uvos>
right as choosen by the user
<uvos>
i really dont se the problem
<freemangordon>
the problem is that we don;t have anything like that in place
<freemangordon>
but we have everything like that in place in telepathy
<uvos>
but it exists allready
<uvos>
thats the point
<uvos>
all it has to do is use gnome infra to open a url
<freemangordon>
ok, maybe trust me on that one, I am dealing with addressbook/tp/eds/etc for that last ~3 years
<uvos>
anyhow none of this touches at all
<uvos>
that actions that deff cant be handled by tp at all
<uvos>
(home page fields email etc)
<freemangordon>
like?
<freemangordon>
they are not
<uvos>
must be opend via xdg
<freemangordon>
they are more or less xdg-open
<freemangordon>
sure
<uvos>
except it dosent work
<freemangordon>
I know
<freemangordon>
"open address" is still to be REed
<dsc_>
oh, ehh.. no comment on the current shape/format of my link just now - should be considered 'dev'
<dsc_>
so that regex is probably wrong
<freemangordon>
not sure how you create a temp account for the number to dial
<freemangordon>
maybe you can call osso-abook to create one for you :)
<dsc_>
right
<dsc_>
i dont know either :)
<freemangordon>
shouldn;t be that hard though
norayr has joined #maemo-leste
<freemangordon>
dsc_: btw, if you install addressbook, and you have some telepathy account set-up , it will pull contacts from there and will allow you to start chat
<dsc_>
freemangordon: how does addressbook allow you to start chatting?
<dsc_>
(since conversations is used to start chatting :P)
<freemangordon>
it call telepathy
<freemangordon>
*calls
<dsc_>
ah
sixwheeledbeast has left #maemo-leste [Leaving.]
<freemangordon>
and if conversations is tp client, it will be called
<freemangordon>
in my VM here it is empathy that's registered
<freemangordon>
and as soon as I click on gtalk contact, empathy chat window pops out
<dsc_>
its good to know you are a TP god, when we continue we'll keep it in the back of our minds (albeit I think Wizzup only needs to look at it for 15sec and he knows the solution)
<freemangordon>
no, O am not TP god, that's for sure
<freemangordon>
*I am not
<dsc_>
im traveling currently with only laptop which is not super powerful so its a bit annoying
<dsc_>
sun is shining onto the screen etc.
<dsc_>
need a real setup first
<dsc_>
im moving to .bg as you know
<dsc_>
im in the middle of it
<freemangordon>
ah, you will move!
<dsc_>
I got my 5 year residency card yesterday ^^
<freemangordon>
good :)
<freemangordon>
will have a beer together when you settle
<freemangordon>
tp_account_manager_new_with_factory() is where the magic happens :)
<dsc_>
ok yes, conversations shouldnt be creating accounts
<dsc_>
but it needs to connect to an account
<dsc_>
and in order for this it needs to know about which account(s) exist
<freemangordon>
yes, I know, you were forced to
<freemangordon>
but not anymore now we have addressbook to choose the account you want to use
<dsc_>
so conversatios asks the addressbook?
<freemangordon>
mhm
<freemangordon>
lemme see on my fremantle device
<freemangordon>
yes, when you click on "New IM" you are presented with "Select account" dialog
<freemangordon>
but, what is important, is that I think this happens over dbus
<freemangordon>
mhm
<freemangordon>
ugh, and I am still to RE that :(
<dsc_>
ok so ill spare you some time right now becuase I think it is pointless to discuss this, I ought to look into some TP basics/terminology first, which I did 2 months ago - but I already forgot everything
sixwheeledbeast has joined #maemo-leste
<dsc_>
i got rather frustrated with that whole telepathy-qt/dbus part
<dsc_>
so I asked Wizzup to look at it ^^
<freemangordon>
yeah, ok
<dsc_>
but we *were* able to eventually send and receive messages over tp with conversations in our test, albeit hardcoded - it was pretty cool
<freemangordon>
yeah
<freemangordon>
it will become even more cool when it gets integrated with AB
<dsc_>
oh for sure :)
<freemangordon>
yeah, it seems you basically call com.nokia.osso_addressbook open_group and it will open a disalog to select
<freemangordon>
*dialog
<dsc_>
so
<dsc_>
New IM (from conversations) -> call 'com.nokia.osso_addressbook open_group'