[Telepathy] regarding receiving messages

Xavier Claessens xclaesse at gmail.com
Sun Mar 9 03:02:50 PDT 2008


Just connect the to "Received" signal, if you want an example of how it
works you can check empathy's code in libempathy/empathy-tp-chat.c
http://git.collabora.co.uk/?p=empathy.git;a=blob;f=libempathy/empathy-tp-chat.c;h=b96ba48a31d7c4369b63d9e23f6251f9943d83b0;hb=HEAD

I think you should use telepathy-glib instead of libtelepathy, I'm
currently working on porting empathy to tp-glib, if you want to see how
it works for the text channel check the code there:
http://git.collabora.co.uk/?p=user/xclaesse/empathy.git;a=blob;f=libempathy/empathy-tp-call.c;h=e3861e878cf11a0545f96ea506711eece02b4e89;hb=tpGlib2

Good luck ;)

Xavier Claessens.

Le samedi 08 mars 2008 à 16:09 -0500, harini satyanarayanan a écrit :
> Hi,
>       I am working on a telepathy application that send s and recieves
> data over a text channel. I am receivig data through the
> tp_chan_type_text_list_pending_messages() function.
> 
> Can some one tell me how I can make my application continously wait
> for incoming messages. I did try enclosing only the
> tp_chan_type_text_list_pending_messages() in a while loop(I created
> the text channel and interface etc out side this loop) but it
> terminates after some time , as in does not loop infinitely.
> 
> Does someone know how I can achieve this?
> 
> Thanks,
> Harini
> _______________________________________________
> Telepathy mailing list
> Telepathy at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/telepathy



More information about the Telepathy mailing list