[PyQt] Instant Messaging through PySide & PyQtMobility on N900.

praveen koduru prawin1111 at gmail.com
Fri Oct 8 09:45:20 BST 2010


I am trying to send Instant message(IM) through N900 using PySide &
PyQtMobility. I am getting QMessageService sending failed. The code is
below:

*from QtMobility.Messaging import **
*from PySide.QtCore import **
*import sys*
*from PyQt4 import QtCore*
*import dbus*
*
*
*app = QCoreApplication(sys.argv)*
*
*
*in_msg_add = QMessageAddress(QMessageAddress.InstantMessage,
QtCore.QString("user_to_recieve at gmail.com"))*
*msg = QMessage()*
*msg.setType(QMessage.InstantMessage)*
*msg.setTo(in_msg_add)*
*msg.setBody(QtCore.QString("Hi Hello"))*
*
*
*'''send message'''*
*sender = QMessageService()*
*if (sender.send(msg)):*
*  print "success"*
*else:*
*  print "fail"*

I am getting the message sending failed error as below:
*Connecting to deprecated signal
QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)*
*sync eventloop exit*
*QMessageService::send*
*send returns= false*
*fail*

Any help would be greatly appreciated.
-Praveen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101008/3c76e0d4/attachment-0001.html>


More information about the PyQt mailing list