- From: Max Froumentin <maxfro@opera.com>
- Date: Thu, 22 Apr 2010 15:31:22 +0200
- To: "public-device-apis@w3.org" <public-device-apis@w3.org>
Here's a simple solution. add to interface MessagingManager const unsigned short FOLDER_INBOX = 0; const unsigned short FOLDER_OUTBOX = 1; const unsigned short FOLDER_SENT = 2; const unsigned short FOLDER_DRAFTS = 2; Message[] getMessages(folder, successCB, failureCB); add to interface Message (or just IncomingMessage, as of ACTION-142 proposal): void delete(successCB, failureCB); That covers the basic functionality. Next steps: - filtering in getMessages() so that at least SMS, MMS, Email can be separated - any number of folders, identified by strings. And with extra functions on IncomingMessage: void copyTo(folder, success, failure) void moveTo(folder, success, failure) Max.
Received on Thursday, 22 April 2010 13:31:58 UTC