×
Namespaces

Variants
Actions
Revision as of 14:49, 27 December 2010 by flycarl (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Messaging API 文档

From Nokia Developer Wiki
Jump to: navigation, search

Messaging

Qt Messaging API 使我们可以搜索信息,排列信息,发送信息,提取信息数据

The Qt Messaging API enables access to messaging services to search and sort messages, send messages, retrieve message data, and launch the preferred messaging client on the system to either display an existing message, compose a new message, or respond to an existing message. Namespace

The QtMobility APIs are placed into the QtMobility namespace. This is done to facilitate the future migration of Mobility APIs into Qt. See the Quickstart guide for an example on how the namespace impacts on application development. Overview

The messaging library provides a set of APIs for accessing messaging data. Interfaces are provided to retrieve and query messages, folders and accounts, also interfaces to create, modify, and store messages are provided. A unified interface for manipulation and storage of SMS, MMS, MIME Email and TNEF Email messages is provided. Handling of messages that have only been partially retrieved is supported.

An API to access messaging services to send messages and retrieve message data is provided, as well as messaging services to compose, reply to, forward and show messages using a native application.

Notifications of addition, removal and updating of stored messages can be enabled.

The library provides unified access to the messaging data on a device including concurrent access to messaging data by multiple applications, and independence from the mechanism used to store the messaging data on the device.

On Microsoft Windows, MAPI header files are required to be installed, we recommend installing Visual Studio Express for this purpose.

On Linux QMF is required to be installed and the QMF_INCLUDEDIR and QMF_LIBDIR environment variables set to the messagingframework/src/libraries/qtopiamail and build/messagingframework/image/lib directories respectively. Reference documentation Main classes

QMessage


Convenient interface for working with messages

QMessageAccount


Represents a messaging account in the messaging store

QMessageAccountFilter


Defines the parameters used for querying a subset of all available accounts from the messaging store

QMessageAccountId


Unique identifier for a QMessageAccount messaging account, within the scope of the messaging store

QMessageAccountSortOrder


Defines the parameters used for sorting a subset of queried accounts from the messaging store

QMessageAddress


Interface for a message address

QMessageContentContainer


Interface for internet media (MIME) and Transport Neutral Encapsulation Format (TNEF) content that is possibly only partially retrieved

QMessageContentContainerId


Unique identifier for QMessageContentContainer internet media (MIME) type entities, within the scope of the containing message

QMessageDataComparator


Contains types used in specifying the comparison of MessageStore objects with user-defined values

QMessageFilter


Defines the parameters used for querying a subset of all available messages from the messaging store

QMessageFolder


Interface for folders containing messages in the messaging store

QMessageFolderFilter


Defines the parameters used for querying a subset of all available folders from the messaging store

QMessageFolderId


Unique identifier for a QMessageFolder message folder, within the scope of the messaging store

QMessageFolderSortOrder


Defines the parameters used for sorting a subset of queried folders from the messaging store

QMessageId


Unique identifier for a QMessage message within the scope of the messaging store

QMessageManager


Represents the main interface for storage and retrieval of messages, folders and accounts in the system message store

QMessageService


The interface for requesting messaging service operations

QMessageSortOrder


Defines the parameters used for sorting a subset of queried messages from the messaging store Composition and Manipulation

121 page views in the last 30 days.