Hi,<div><br></div><div>I am writting chat history manager. I need listen for incoming and outgoing text messages (from empathy). I have done similar plugin for pidgin IM using dbus too. So I am trying now create this same thing for empathy. I spent all day looking at the telepathy documentation and got a headache :) . I'm writting in Free Pascal. It doesn't have special bindings so I am using dbus low level api. I know that text channel is what I'm looking for, but there is so much interfaces and I am lost. All python examples using bindings and I can't see what is going in background. This is my code for listening signals in pidgin:</div>
<div><br></div><div><div> { Initializes the errors }</div><div> dbus_error_init(@FDBErr);</div><div><br></div><div> { Connection }</div><div> FDBConn := dbus_bus_get(DBUS_BUS_SESSION, @FDBErr);</div></div><div><br></div>
<div> if FDBConn = nil then Exit; </div><div><br></div><div><div> dbus_bus_add_match(FDBConn, 'type=''signal'',interface=''im.pidgin.purple.PurpleInterface''', @FDBErr);</div><div>
dbus_connection_flush(FDBConn); </div></div><div><br></div><div>and in loop I just check:</div><div><br></div><div> if (dbus_message_is_signal(msg, 'im.pidgin.purple.PurpleInterface', 'ReceivedImMsg')<>0) then</div>
<div> ........</div><div><br></div><div>What should I do to get this same thing on telepathy?</div><div><br></div><div>Regards and sorry for my English</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8">