Messaging API 文档
Contents |
Messaging
Qt Messaging API 使我们可以处理信息(短信,彩信,邮件等),搜索信息,排列信息,发送信息,提取信息数据,可以调用平台对应的信息客户端来显示已有的信息,合成新信息,或回复已有信息。
命名空间
QtMobility API 放在 QtMobility 的命名空间. 这是为以后Mobility APIs 集成到 Qt做准备. 参考Quickstart guide中的例子体会这个命名空间如何影响使用QtMobility的开发development.
简介
Messaging库提供了一系列API来获取信息数据。提供了查询检索信息,文件夹和账号的接口,也有创建,修改和存储信息的接口。提供了一个统一处理和储存短信(sms),彩信(MMS),邮件(MIME Email,TNEF Email)的接口。能处理 不完整提取的信息。
Messaging库提供了接口来发送信息,提取信息包含的数据,合并,回复,转发信息,调用本地应用来显示信息。
当存储的信息,增加,移除和更新的时候可以获得通知。
Messaging库提供了信息数据的统一访问,支持多个应用的并行访问,并不依赖于具体设备上数据的存储方式。
在 Microsoft Windows上,需要安装MAPI头文件,建议通过安装Visual Studio Express来做这件事。
在Linux上,需要安装QMF,同时设置两个环境变量,QMF_INCLUDEDIR设为messagingframework/src/libraries/qtopiamail , QMF_LIBDIR设为build/messagingframework/image/lib。
参考文档
主要的类
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

