×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    8

    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()));
    Last edited by mka_; 2010-07-13 at 12:53.

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    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()));

  3. #3
    Registered User
    Join Date
    Jul 2010
    Posts
    8

    Re: QMessageManager->queryMessages works in simulator, but not in N900

    Quote Originally Posted by divanov View Post
    Try this:
    Code:
    QMessageBox::information(this, "", QString("You have %1 message(s)").arg(m_manager->queryMessages().count()));
    I tried it, but no success

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: QMessageManager->queryMessages works in simulator, but not in N900

    Quote Originally Posted by mka_ View Post
    I tried it, but no success
    I'm using 10.2010.19-1 and Qt Mobility 1:1.0.0-maemo1+0m5 and it works properly.

  5. #5
    Registered User
    Join Date
    Jul 2010
    Posts
    8

    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 http://doc.qt.nokia.com/nokia-qtsdk-...ing-maemo.html 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)

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    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?

  7. #7
    Registered User
    Join Date
    Jul 2010
    Posts
    8

    Re: QMessageManager->queryMessages works in simulator, but not in N900

    for Windows

  8. #8
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    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.

  9. #9
    Registered User
    Join Date
    Feb 2009
    Posts
    25

    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 http://discussion.forum.nokia.com/fo...message-object
    is also.
    Last edited by zuo3diao; 2010-07-21 at 10:49.

  10. #10
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: QMessageManager->queryMessages works in simulator, but not in N900

    Could you please file a bug to Nokia Qt SDK?
    http://bugreports.qt.nokia.com/secure/Dashboard.jspa

  11. #11
    Registered User
    Join Date
    Jul 2010
    Posts
    8

    Re: QMessageManager->queryMessages works in simulator, but not in N900

    Quote Originally Posted by divanov View Post
    I'm using 10.2010.19-1 and Qt Mobility 1:1.0.0-maemo1+0m5 and it works properly.
    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

Similar Threads

  1. querymessages example not compiling when QMessageStore is added
    By jmclaurin11 in forum [Archived] Qt Mobility Project
    Replies: 1
    Last Post: 2010-04-27, 03:47
  2. My browser works on simulator but not on mobile
    By gaurav_varma in forum Mobile Java Networking & Messaging & Security
    Replies: 9
    Last Post: 2008-04-07, 18:34

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •