NS_IMETHODIMP TelephonyRequestParent::EnumerateCallState(nsITelephonyCallInfo* aInfo) { NS_ENSURE_TRUE(!mActorDestroyed, NS_ERROR_FAILURE); return SendNotifyEnumerateCallState(aInfo) ? NS_OK : NS_ERROR_FAILURE; }
NS_IMETHODIMP TelephonyRequestParent::EnumerateCallState(uint32_t aClientId, uint32_t aCallIndex, uint16_t aCallState, const nsAString& aNumber, bool aIsActive, bool aIsOutgoing, bool aIsEmergency, bool aIsConference) { NS_ENSURE_TRUE(!mActorDestroyed, NS_ERROR_FAILURE); IPCCallStateData data(aCallIndex, aCallState, nsString(aNumber), aIsActive, aIsOutgoing, aIsEmergency, aIsConference); return SendNotifyEnumerateCallState(aClientId, data) ? NS_OK : NS_ERROR_FAILURE; }