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 
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:14:07 GMT