View Single Post
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#4
Originally Posted by jflatt View Post
Did you see this page?
http://wiki.maemo.org/Documentation/..._in_Freemantle
Yes Im just on there this very second, it looks like a signal called the IncomingSegment is the key to my kingdom. It even has a python code snippet *thumbs up*

Code:
import gobject, dbus
   from dbus.mainloop.glib import DBusGMainLoop
   
   def handle_sms(pdu, msgcenter, somestring, sendernumber):
       print 'New message from %s' % sendernumber
       
   DBusGMainLoop(set_as_default=True)
   bus = dbus.SystemBus()
   bus.add_signal_receiver(handle_sms, path='/com/nokia/phone/SMS',   dbus_interface='Phone.SMS', signal_name='IncomingSegment')
   gobject.MainLoop().run()
One thing slightly annoying me is that at the top of the page is a big message box suggesting that the method might be not recommended or outdated:

"Please be aware that the recommended way to use the phone functionality is Telepathy"

But if it works then it works, i'll not worry too much about Telepathy.

Last edited by kojacker; 2010-05-11 at 14:50.