Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Revision as of 17:44, 7 March 2012 by chintandave_er (Talk | contribs)

How to use Messaging Filter in QML

From Wiki
Jump to: navigation, search

This article explains how to use Messaging Filter in QML ...


Article Metadata
Code ExampleTested with
SDK: Qt SDK 1.2
Devices(s): Nokia 6-01 , Belle
Compatibility
Platform(s): Symbian^3
Symbian
Device(s): All*
Platform Security
Capabilities: NetworkServices ReadUserData WriteUserData
Article
Keywords: MessageModel
Created: (07 Mar 2012)
Last edited: chintandave_er (07 Mar 2012)

Introduction

Qt mobility messaging when used with Qt quick, involves the component of MessageModel. Due to a bug in the implementation, standard folders enums are not exposed to QML:

        enum StandardFolder {
InboxFolder = QMessage::InboxFolder,
DraftsFolder = QMessage::DraftsFolder,
OutboxFolder = QMessage::OutboxFolder,
SentFolder = QMessage::SentFolder,
TrashFolder = QMessage::TrashFolder
}

To add folder filters, one have to use the values by hand:

                        MessageFilter {
type: MessageFilter.StandardFolder
value: 4 //MessageFilter.SentFolder
comparator: MessageFilter.Equal
}


Summary

71 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×