2015-01-07 06:53:21 +00:00
|
|
|
/* 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 PIcc;
|
|
|
|
include PIccTypes;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
namespace icc {
|
|
|
|
|
|
|
|
struct IccReplySuccess
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct IccReplySuccessWithBoolean
|
|
|
|
{
|
|
|
|
bool result;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct IccReplyCardLockRetryCount
|
|
|
|
{
|
|
|
|
int32_t count;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct IccReplyError
|
|
|
|
{
|
|
|
|
nsString message;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct IccReplyCardLockError
|
|
|
|
{
|
|
|
|
int32_t retryCount;
|
|
|
|
nsString message;
|
|
|
|
};
|
|
|
|
|
2015-06-16 09:41:47 +00:00
|
|
|
struct IccReplyReadContacts
|
|
|
|
{
|
|
|
|
IccContactData[] contacts;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct IccReplyUpdateContact
|
|
|
|
{
|
|
|
|
IccContactData contact;
|
|
|
|
};
|
|
|
|
|
2015-01-07 06:53:21 +00:00
|
|
|
union IccReply
|
|
|
|
{
|
|
|
|
// Success
|
|
|
|
IccReplySuccess;
|
|
|
|
IccReplySuccessWithBoolean;
|
|
|
|
IccReplyCardLockRetryCount;
|
2015-06-16 09:41:47 +00:00
|
|
|
IccReplyReadContacts;
|
|
|
|
IccReplyUpdateContact;
|
2015-01-07 06:53:21 +00:00
|
|
|
// Error
|
|
|
|
IccReplyError;
|
|
|
|
IccReplyCardLockError;
|
|
|
|
};
|
|
|
|
|
|
|
|
protocol PIccRequest
|
|
|
|
{
|
|
|
|
manager PIcc;
|
|
|
|
|
|
|
|
child:
|
|
|
|
/**
|
|
|
|
* Sent when the asynchronous request has completed.
|
|
|
|
*/
|
|
|
|
__delete__(IccReply response);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace icc
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|