; or (iii) actions described by both clauses (i) and (ii). (2) Definitions In this subsection: (A) The term contact includes contact in person or through a third party, or through gifts, (B) The term communication includes communication in person or through a third party, and by telephone or in writing by letter, data fax, or other electronic means. (d) Due process (1) Protection of due process Except as provided in paragraph (2), a protective order described in subsection (c) may only be issued after the person to be subject to the order has received such notice and opportunity to be heard on the order as the President shall prescribe. (2) Emergency orders A protective order on an emergency basis may be issued on an ex parte basis under such rules and limitations as the President shall prescribe. (e) Nature and scope of protective orders The President shall prescribe any requirements or limitations applicable to nature and scope of protective orders described in subsection (c), including requirements and limitations relating to the following: (1) The duration of protective orders on an emergency basis, and of other protective orders. (2) The scope of protective orders on an emergency basis, and of other protective orders. (f) Command matters (1) Delivery to commander A copy of a protective order described in subsection (c) against a member of the armed forces shall be provided to such commanding officer in the chain of command of the member as the President shall prescribe for purposes of this section. (2) Inclusion in personnel file Any protective order described in subsection (c) against a member shall be placed and retained in the military personnel file of the member. (3) Notice to civilian law enforcement of issuance Any protective order described in subsection (c) against a member shall be treated as a military protective order for purposes of section 1567a of this title, including for purposes of mandatory notification of issuance to civilian law enforcement as required by that section. (4) Authority of