B2G/gecko/dom/mobilemessage/src/ril/MmsService.js
/**
   * A helper to broadcast the system message to launch registered apps
   * like Costcontrol, Notification and Message app... etc.
   *
   * @param aName
   *        The system message name.
   * @param aDomMessage
   *        The nsIDOMMozMmsMessage object.
   */
A helper to broadcast the system message to launch registered apps
like Costcontrol, Notification and Message app... etc.

@param aName
The system message name.
A helper to broadcast the system message to launch registered apps like Costcontrol Notification and Message app ... etc . @param aName The system message name .
function broadcastMmsSystemMessage(aName, aDomMessage) {
    if (DEBUG) debug("Broadcasting the MMS system message: " + aName);
    gSystemMessenger.broadcastMessage(aName, {
      type:           aDomMessage.type,
      id:             aDomMessage.id,
      threadId:       aDomMessage.threadId,
      delivery:       aDomMessage.delivery,
      deliveryStatus: aDomMessage.deliveryStatus,
      sender:         aDomMessage.sender,
      receivers:      aDomMessage.receivers,
      timestamp:      aDomMessage.timestamp,
      read:           aDomMessage.read,
      subject:        aDomMessage.subject,
      smil:           aDomMessage.smil,
      attachments:    aDomMessage.attachments,
      expiryDate:     aDomMessage.expiryDate
    });
  }
function broadcastMmsSystemMessage ( aName , aDomMessage ) { if ( DEBUG ) debug ( "Broadcasting the MMS system message: " + aName ) ; gSystemMessenger . broadcastMessage ( aName , { type : aDomMessage . type , id : aDomMessage . id , threadId : aDomMessage . threadId , delivery : aDomMessage . delivery , deliveryStatus : aDomMessage . deliveryStatus , sender : aDomMessage . sender , receivers : aDomMessage . receivers , timestamp : aDomMessage . timestamp , read : aDomMessage . read , subject : aDomMessage . subject , smil : aDomMessage . smil , attachments : aDomMessage . attachments , expiryDate : aDomMessage . expiryDate } ) ; }
A helper to broadcast the system message to launch registered apps
 like Costcontrol, Notification and Message app... etc.
A helper to broadcast the system message to launch registered apps like Costcontrol Notification and Message app ... etc .
// Sadly we cannot directly broadcast the aDomMessage object // because the system message mechamism will rewrap the object // based on the content window, which needs to know the properties.