1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/mobilemessage/interfaces/nsIWapPushApplication.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsISupports.idl" 1.9 + 1.10 +/** 1.11 + * Handle WAP Push notifications. 1.12 + */ 1.13 +[scriptable, uuid(fd6f7f6b-a67e-4892-930d-fca864df8fe7)] 1.14 +interface nsIWapPushApplication : nsISupports 1.15 +{ 1.16 + /** 1.17 + * Receive WAP Push message. 1.18 + * 1.19 + * @param aData 1.20 + * An array containing raw PDU data. 1.21 + * @param aLength 1.22 + * Length of aData. 1.23 + * @param aOffset 1.24 + * Start offset of aData containing message body of the Push PDU. 1.25 + * @param options 1.26 + * An object containing various attributes from lower transport layer. 1.27 + */ 1.28 + void receiveWapPush([array, size_is(aLength)] in octet aData, 1.29 + in unsigned long aLength, 1.30 + in unsigned long aOffset, 1.31 + in jsval aOptions); 1.32 +}; 1.33 +