michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: /** michael@0: * Handle WAP Push notifications. michael@0: */ michael@0: [scriptable, uuid(fd6f7f6b-a67e-4892-930d-fca864df8fe7)] michael@0: interface nsIWapPushApplication : nsISupports michael@0: { michael@0: /** michael@0: * Receive WAP Push message. michael@0: * michael@0: * @param aData michael@0: * An array containing raw PDU data. michael@0: * @param aLength michael@0: * Length of aData. michael@0: * @param aOffset michael@0: * Start offset of aData containing message body of the Push PDU. michael@0: * @param options michael@0: * An object containing various attributes from lower transport layer. michael@0: */ michael@0: void receiveWapPush([array, size_is(aLength)] in octet aData, michael@0: in unsigned long aLength, michael@0: in unsigned long aOffset, michael@0: in jsval aOptions); michael@0: }; michael@0: