Namespaces
Variants
Actions
(Difference between revisions)

How to use Messaging Filter in QML

Jump to: navigation, search
(Devnull -)
(Devnull -)
Line 1: Line 1:
 
[[Category:Qt Mobility]][[Category:Qt Quick]]
 
[[Category:Qt Mobility]][[Category:Qt Quick]]
''Delete instructional text in italic''
 
  
{{Abstract|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.''
+
{{Abstract|This article explains how to use Messaging Filter in QML ... }}  
  
 
''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''
Line 30: Line 29:
 
== Introduction ==
 
== Introduction ==
  
Qt mobility messaging when used in Qt quick, involve the component of MessageModel. Due to a [https://bugreports.qt-project.org/browse/QTMOBILITY-2037 bug] in the implementation, standard folders enums are not exposed to QML:
+
Qt mobility messaging when used with Qt quick, involves the component of MessageModel. Due to a [https://bugreports.qt-project.org/browse/QTMOBILITY-2037 bug] in the implementation, standard folders enums are not exposed to QML:
  
 
<code cpp>
 
<code cpp>

Revision as of 16:48, 7 March 2012


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

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 Example
Tested with
SDK: Qt SDK 1.2
Devices(s): Nokia 6-01 , Belle

Compatibility
Platform(s): Symbian^3
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 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

145 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved