Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9974690e authored by Ye Wen's avatar Ye Wen
Browse files

Support MMS send/download by carrier app (1/3)

Added send/download status update APIs similar to that for SMS

b/14095333

Change-Id: Ib62951a2088330bf004383945416ff6f25b28625
parent e05a56bf
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -44,4 +44,25 @@ interface IMms {
     *  broadcast when the message is downloaded, or the download is failed
     */
    void downloadMessage(String callingPkg, String locationUrl, in PendingIntent downloadedIntent);

    /**
     * Update the status of a pending (send-by-IP) MMS message handled by the carrier app.
     * If the carrier app fails to send this message, it would be resent via carrier network.
     *
     * @param messageRef the reference number of the MMS message.
     * @param success True if and only if the message was sent successfully. If its value is
     *  false, this message should be resent via carrier network
     */
    void updateMmsSendStatus(int messageRef, boolean success);

    /**
     * Update the status of a pending (download-by-IP) MMS message handled by the carrier app.
     * If the carrier app fails to download this message, it would be re-downloaded via carrier
     * network.
     *
     * @param messageRef the reference number of the MMS message.
     * @param pdu non-empty if downloaded successfully, otherwise, it is empty and the message
     *  will be downloaded via carrier network
     */
    void updateMmsDownloadStatus(int messageRef, in byte[] pdu);
}