W3C home > Mailing lists > Public > public-device-apis@w3.org > April 2010

ACTION-161 - proposal for message management

From: Max Froumentin <maxfro@opera.com>
Date: Thu, 22 Apr 2010 15:31:22 +0200
Message-ID: <4BD04FAA.2010107@opera.com>
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 

void delete(successCB, failureCB);

That covers the basic functionality. Next steps:

- filtering in getMessages() so that at least SMS, MMS, Email can be 

- any number of folders, identified by strings. And with extra functions 
on IncomingMessage:

void copyTo(folder, success, failure)
void moveTo(folder, success, failure)

Received on Thursday, 22 April 2010 13:31:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:32:19 UTC