[Telepathy] receiving messages on telepathy
harini satyanarayanan
hpundis1 at binghamton.edu
Thu Mar 13 06:08:03 PDT 2008
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.
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
More information about the Telepathy
mailing list