NS_IMETHODIMP TelephonyParent::NotifyCdmaCallWaiting(uint32_t aClientId, const nsAString& aNumber) { NS_ENSURE_TRUE(!mActorDestroyed, NS_ERROR_FAILURE); return SendNotifyCdmaCallWaiting(aClientId, nsString(aNumber)) ? NS_OK : NS_ERROR_FAILURE; }
NS_IMETHODIMP TelephonyParent::NotifyCdmaCallWaiting(uint32_t aClientId, const nsAString& aNumber, uint16_t aNumberPresentation, const nsAString& aName, uint16_t aNamePresentation) { NS_ENSURE_TRUE(!mActorDestroyed, NS_ERROR_FAILURE); IPCCdmaWaitingCallData data(nsString(aNumber), aNumberPresentation, nsString(aName), aNamePresentation); return SendNotifyCdmaCallWaiting(aClientId, data) ? NS_OK : NS_ERROR_FAILURE; }