×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    issue with QtMobility.messaging 1.1

    Hi,

    I am trying MessageModel in qml and it is working fine with some defects.

    1. unable to filter sms from inbox/sent/draft.
    2. MessageModel::showMessage ( index ) is open the email correctly from the list if it a email message but if it a sms, application gets crashed.

    Any idea? any one else also have faced this?
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  2. #2
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: issue with QtMobility.messaging 1.1

    Have you tried using filters like

    MessageFilter.InboxFolder
    MessageFilter.DraftsFolder
    MessageFilter.SentFolder

  3. #3
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: issue with QtMobility.messaging 1.1

    Yes ..
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  4. #4
    Nokia Developer Expert
    Join Date
    Sep 2011
    Posts
    382

    Re: issue with QtMobility.messaging 1.1

    Strange. Meanwhile QMessageFilter sentFilter(QMessageFilter::byStandardFolder(QMessage::SentFolder)); just work fine for mobility, the
    filter:
    MessageFilter {
    type: MessageFilter.StandardFolder
    value: "1" // MessageFilter.InboxFolder
    comparator: MessageFilter.Equal
    }

    expected to work, yet MessageFilter.InboxFolder is not offered via Creator. Hardcoded folder index is expected to have some effect in case of equality.

  5. #5
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: issue with QtMobility.messaging 1.1

    Quote Originally Posted by Devnull View Post
    expected to work, yet MessageFilter.InboxFolder is not offered via Creator. Hardcoded folder index is expected to have some effect in case of equality.
    Could not get you. This is very well documented and it should work .

    Any idea what filter should apply to read sms from inbox in qml?
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  6. #6
    Nokia Developer Expert
    Join Date
    Sep 2011
    Posts
    382

    Re: issue with QtMobility.messaging 1.1

    Reason for inboxfolder filter anomaly in creator is the missing Q_ENUMS(StandardFolder);
    The MessageFilter.type is the filter type for MessageFilter.Sms.

  7. #7
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: issue with QtMobility.messaging 1.1

    So what can be done from my side to execute this successfully and get the proper result?
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  8. #8
    Nokia Developer Expert
    Join Date
    Sep 2011
    Posts
    382

    Re: issue with QtMobility.messaging 1.1

    The best - may solve both of your other problem, though when using the whole project qml file need to be taken care - would be to start with this example.

    Due to the mentioned missing folder enum, the sent folder would look like:
    Code:
     model: MessageModel {
                sortBy: MessageModel.Timestamp
                sortOrder: MessageModel.DescendingOrder
                filter:
                         MessageFilter {
                             type: MessageFilter.StandardFolder
                             value: 4 // folder enums are not offered by default.
                             comparator: MessageFilter.Equal
                         }
            }
    Meanwhile limiting to sms can be done:
    Code:
                             MessageFilter {
                                 type: MessageFilter.Type
                                 value: MessageFilter.Sms
                                 comparator: MessageFilter.Equal
                             }
    Using both would require the usage of MessageIntersectionFilter and both of them.
    Last edited by Devnull; 2012-03-07 at 13:39.

Similar Threads

  1. Replies: 1
    Last Post: 2011-11-08, 15:56
  2. Problem in compiling QtMobility Messaging code to send email
    By abhaykochar883 in forum [Archived] Qt Mobility Project
    Replies: 2
    Last Post: 2011-01-31, 13:13
  3. QtMobility Messaging API: InstantMessage and XMMP does/will it work? when?
    By jmfairlie in forum [Archived] Qt Mobility Project
    Replies: 1
    Last Post: 2010-06-11, 11:28
  4. E72 Nokia Email messaging Service Issue - please help!!
    By alirazafazal in forum General Development Questions
    Replies: 2
    Last Post: 2010-01-11, 13:01
  5. Issue using messaging APIs KERN-exec 3
    By sumit.ece in forum Symbian
    Replies: 2
    Last Post: 2009-12-28, 09:28

Posting Permissions

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