/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set sw=2 ts=8 et ft=cpp : */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ include protocol PMobileConnection; include PMobileConnectionTypes; namespace mozilla { namespace dom { namespace mobileconnection { protocol PMobileConnectionRequest { manager PMobileConnection; child: /** * Send when asynchronous request has completed. */ __delete__(MobileConnectionReply aResponse); }; /** * MobileConnectionReply */ // Success struct MobileConnectionReplySuccess { }; struct MobileConnectionReplySuccessBoolean { bool result; }; struct MobileConnectionReplySuccessNetworks { nsMobileNetworkInfo[] results; }; struct MobileConnectionReplySuccessMmi { nsString serviceCode; nsString statusMessage; AdditionalInformation additionalInformation; }; struct MobileConnectionReplySuccessCallForwarding { nsMobileCallForwardingOptions[] results; }; struct MobileConnectionReplySuccessCallBarring { uint16_t program; bool enabled; uint16_t serviceClass; }; struct MobileConnectionReplySuccessClirStatus { uint16_t n; uint16_t m; }; struct MobileConnectionReplySuccessPreferredNetworkType { int32_t type; }; struct MobileConnectionReplySuccessRoamingPreference { int32_t mode; }; // Error struct MobileConnectionReplyError { nsString message; }; struct MobileConnectionReplyErrorMmi { nsString name; nsString message; nsString serviceCode; AdditionalInformation additionalInformation; }; union MobileConnectionReply { // Success MobileConnectionReplySuccess; MobileConnectionReplySuccessBoolean; MobileConnectionReplySuccessNetworks; MobileConnectionReplySuccessMmi; MobileConnectionReplySuccessCallForwarding; MobileConnectionReplySuccessCallBarring; MobileConnectionReplySuccessClirStatus; MobileConnectionReplySuccessPreferredNetworkType; MobileConnectionReplySuccessRoamingPreference; // Error MobileConnectionReplyError; MobileConnectionReplyErrorMmi; }; } // namespace mobileconnection } // namespace dom } // namespace mozilla