QMessageManager->queryMessages works in simulator, but not in N900
Hi,
I have some problem with QMessageManager->queryMessages .. In simulator everything works perfectly, and I can query messages, but now when I am trying this querymessages code in real device (N900), querymessages returns 0 messages. In device there is a sim card, device has some old messages, my friend send me a new message, but querymessages returns still zero messages. Anybody have idea why??
[CODE]QMessageFilter filter(QMessageFilter::byType(QMessage::AnyType));
QMessageBox::information(this, "", QString("You have %1 message(s)").arg(m_manager->queryMessages(filter).count()));[/CODE]
Re: QMessageManager->queryMessages works in simulator, but not in N900
Try this:
[CODE]QMessageBox::information(this, "", QString("You have %1 message(s)").arg(m_manager->queryMessages().count()));[/CODE]
Re: QMessageManager->queryMessages works in simulator, but not in N900
[QUOTE=divanov;757076]Try this:
[CODE]QMessageBox::information(this, "", QString("You have %1 message(s)").arg(m_manager->queryMessages().count()));[/CODE][/QUOTE]
I tried it, but no success :(
Re: QMessageManager->queryMessages works in simulator, but not in N900
[QUOTE=mka_;757169]I tried it, but no success :([/QUOTE]
I'm using 10.2010.19-1 and Qt Mobility 1:1.0.0-maemo1+0m5 and it works properly.
Re: QMessageManager->queryMessages works in simulator, but not in N900
Hi again
Am I missing something from the device?? I have followed the following instructions [URL="http://doc.qt.nokia.com/nokia-qtsdk-1.0/creator-developing-maemo.html"]http://doc.qt.nokia.com/nokia-qtsdk-1.0/creator-developing-maemo.html[/URL] especially how to install qt mobility APIs to device. But do I have to do something else to get mobility APIs working properly?? My application is properly running in device, but when I try this queryMessages without filter, it returns zero messages (QMessageIDList is empty)
Re: QMessageManager->queryMessages works in simulator, but not in N900
I'm using scratchbox for compiling. Is your Nokia Qt SDK for Windows, Mac OS or Linux?
Re: QMessageManager->queryMessages works in simulator, but not in N900
Re: QMessageManager->queryMessages works in simulator, but not in N900
I don't have Windows machine, so cannot verify the problem is related to Windows Nokia Qt SDK, but this is what I currently think.
Re: QMessageManager->queryMessages works in simulator, but not in N900
I find the problem, that if you use the Qt Creator to deploy the deb and run ,then some function 's behave is strange.
You can use the xterm to run it in the N900 , it works ,but SDK has some fault yet ,
message.status() return 1 ,it should be 0x4.
qDebug() << m_manager->removeMessage(id); is return true ,but the message is there already.
The link [url]http://discussion.forum.nokia.com/forum/showthread.php?205423-QMessageManager-message(id)-conn-t-get-the-message-object[/url]
is also.
Re: QMessageManager->queryMessages works in simulator, but not in N900
Could you please file a bug to Nokia Qt SDK?
[url]http://bugreports.qt.nokia.com/secure/Dashboard.jspa[/url]
Re: QMessageManager->queryMessages works in simulator, but not in N900
[QUOTE=divanov;757236]I'm using 10.2010.19-1 and Qt Mobility 1:1.0.0-maemo1+0m5 and it works properly.[/QUOTE]
hi,
My emails works properly (I can query emails and it works brilliantly), but sms messages which are under conversations->sms in N900, they do not work properly?? MessageManager->QueryMessages return only emails, no sms's