×
Namespaces

Variants
Actions
(Difference between revisions)

How to use Messaging Filter in QML

From Nokia Developer Wiki
Jump to: navigation, search
Devnull (Talk | contribs)
(Devnull -)
Devnull (Talk | contribs)
(Devnull -)
Line 6: Line 6:
 
''Enter article metadata as described below. Note that this template can be placed anywhere in the article. Do not remove parameters that you do not use''
 
''Enter article metadata as described below. Note that this template can be placed anywhere in the article. Do not remove parameters that you do not use''
 
{{ArticleMetaData <!-- v1.2 -->
 
{{ArticleMetaData <!-- v1.2 -->
|sourcecode= <!-- -->
+
|sourcecode= [[File:MessageFilter.zip]]<!-- -->
 
|installfile= <!--  -->
 
|installfile= <!--  -->
 
|devices=  Nokia 6-01 , Belle<!-- ''') -->
 
|devices=  Nokia 6-01 , Belle<!-- ''') -->

Revision as of 16:45, 7 March 2012

Delete instructional text in italic

This article explains how to use Messaging Filter in QML ... Replace the abstract text with a short paragraph (or sentence) describing what the topic covers.

Enter article metadata as described below. Note that this template can be placed anywhere in the article. Do not remove parameters that you do not use

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: ()
Last edited: Devnull (07 Mar 2012)

Introduction

Qt mobility messaging when used in Qt quick, involve 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

53 page views in the last 30 days.
×