Namespaces
Variants
Actions
Revision as of 01:59, 18 October 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How to use Messaging Filter in QML

Jump to: navigation, search

This article explains how to use Messaging Filter in QML.

MultiMediaTile.png
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: Devnull (07 Mar 2012)
Last edited: hamishwillee (18 Oct 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
}
136 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