[Telepathy] receiving messages on telepathy
Michael R. Head
burner at suppressingfire.org
Fri Mar 14 11:12:22 PDT 2008
On Thu, 2008-03-13 at 09:08 -0400, harini satyanarayanan wrote:
> hi,
> I am working on a telepathy based application that can send and
> receive text messages. I know that in order to continuously monitor
> messages that are received and display them to the user I need to
> connect to the "Receive" signal.
>
> Even though i connect to the"Receive" signal every time i receive a
> message it does not perform the call back function, I am not sure if
> this is because I am always connected on the inbuilt Nokia's gtalk
> client on the hand held, the messages show up on the gatlk client but
> not on my application.
Perhaps the Nokia Chat application is simply eating the signal. Is there
a way to get the signal delivered to a third party application?
> This is how I connect to the Received signal,
>
> dbus_g_proxy_connect_signal (DBUS_G_PROXY(text_if),
> "Received",G_CALLBACK (telepathy_pending_message),NULL, NULL);
>
> and this is the function telepathy_pending_messages
>
> void telepathy_pending_message(DBusGProxy *text_if,
> guint message_id,
> guint timestamp,
> guint from_handle,
> guint message_type,
> guint message_flags,
> gchar *message_body,
> void * user_data)
>
> {
> g_warning("Message Received\n");
> }
>
> I am not sure why the received signal wont work.
>
> Thanks
> Harini
> _______________________________________________
> Telepathy mailing list
> Telepathy at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/telepathy
>
--
Michael R. Head <burner at suppressingfire.org>
http://www.suppressingfire.org/~burner/
http://suppressingfire.livejournal.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3259 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/telepathy/attachments/20080314/4e4d4b55/attachment.bin
More information about the Telepathy
mailing list