gecko/dom/mobileconnection/ipc/PMobileConnectionRequest.ipdl

106 lines
2.1 KiB
C++

/* -*- 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 MobileConnectionReplySuccessString
{
nsString result;
};
struct MobileConnectionReplySuccessBoolean
{
bool result;
};
struct MobileConnectionReplySuccessNetworks
{
nsMobileNetworkInfo[] results;
};
struct MobileConnectionReplySuccessMmi
{
nsString serviceCode;
nsString statusMessage;
AdditionalInformation additionalInformation;
};
struct MobileConnectionReplySuccessCallForwarding
{
MozCallForwardingOptions[] results;
};
struct MobileConnectionReplySuccessCallBarring
{
uint16_t program;
bool enabled;
uint16_t serviceClass;
};
struct MobileConnectionReplySuccessClirStatus
{
uint16_t n;
uint16_t m;
};
// Error
struct MobileConnectionReplyError
{
nsString message;
};
struct MobileConnectionReplyErrorMmi
{
nsString name;
nsString message;
nsString serviceCode;
AdditionalInformation additionalInformation;
};
union MobileConnectionReply
{
// Success
MobileConnectionReplySuccess;
MobileConnectionReplySuccessString;
MobileConnectionReplySuccessBoolean;
MobileConnectionReplySuccessNetworks;
MobileConnectionReplySuccessMmi;
MobileConnectionReplySuccessCallForwarding;
MobileConnectionReplySuccessCallBarring;
MobileConnectionReplySuccessClirStatus;
// Error
MobileConnectionReplyError;
MobileConnectionReplyErrorMmi;
};
} // namespace mobileconnection
} // namespace dom
} // namespace mozilla