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

Re: CfC: Messaging FPWD

From: Marengo Marco <marco.marengo@telecomitalia.it>
Date: Fri, 12 Mar 2010 12:21:38 +0100
To: DAP W3C <public-device-apis@w3.org>
Message-ID: <053289E9-EC9A-4417-A9F0-768FC696A068@telecomitalia.it>
Hi,
before moving to FPWD I'd suggest to extend the subscription method with some basic filters. The rationale is that a generic subscription (e.g. on MessagingManager.EMAIL_TYPE) may generate a big number of callback invocations, forcing each application to implement its own filters.

My proposal for extending the subscribe method is:

int subscribe (in MessagingFilter filter, in OnIncomingMessage messageEventCB, in optional ErrorCallback errorCB);

interface MessagingFilter {
    attribute unsigned short messagingType;
    attribute DOMString from;
    attribute DOMString to;
    attribute DOMString body;
};

As you can see the basic use case (filtering on message type) is still supported, but it is now possible to receive callbacks only when a particular condition on sender and/or receiver and/or body is verified (eg. an email sent by "public-device-apis@w3.org").


Marco Marengo



Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate. La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente e di provvedere alla sua distruzione, Grazie.

This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail, Thanks.
Received on Friday, 12 March 2010 11:22:32 GMT

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