B2G/gecko/dom/system/gonk/RadioInterfaceLayer.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 nsIDOMMozSmsMessage 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 broadcastSmsSystemMessage(aName, aDomMessage) {
    debug("Broadcasting the SMS system message: " + aName);
    gSystemMessenger.broadcastMessage(aName, {
      type:           aDomMessage.type,
      id:             aDomMessage.id,
      threadId:       aDomMessage.threadId,
      delivery:       aDomMessage.delivery,
      deliveryStatus: aDomMessage.deliveryStatus,
      sender:         aDomMessage.sender,
      receiver:       aDomMessage.receiver,
      body:           aDomMessage.body,
      messageClass:   aDomMessage.messageClass,
      timestamp:      aDomMessage.timestamp,
      read:           aDomMessage.read
    });
  }
function broadcastSmsSystemMessage ( aName , aDomMessage ) { debug ( "Broadcasting the SMS system message: " + aName ) ; gSystemMessenger . broadcastMessage ( aName , { type : aDomMessage . type , id : aDomMessage . id , threadId : aDomMessage . threadId , delivery : aDomMessage . delivery , deliveryStatus : aDomMessage . deliveryStatus , sender : aDomMessage . sender , receiver : aDomMessage . receiver , body : aDomMessage . body , messageClass : aDomMessage . messageClass , timestamp : aDomMessage . timestamp , read : aDomMessage . read } ) ; }
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.