Source: api-common.js

define(["js/api-impl/api-common-impl"], function(impl) {

  var exports = impl.namespace("NM.api.imail.common");

  exports.info = {

    /** This function enables or disables the fullscreen
     *  mode of the currently selected mail info tab.
     *  @param enable {boolean} activated if true
     *  @function setFullscreen
     */
    setFullscreen : function(enable) {
      return impl.info.setFullscreen(enable);
    },

    /** This function switches the mail info view to the
     *  tab with the specified name.
     *  @param tabname {string} name of the tab
     *  @function switchTab
     */
    switchTab : function(tabname) {
      return impl.info.switchTab(tabname);
    },

    /** This function locks the access to the content of the currently selected mail.
     *  After calling this function the content of the currently selected mail cannot
     *  be accessed any more by any user and an error message is displayed instead.
     *  Please note that this feature can only be used if the message archive is
     *  configured to be used in the database.
     *
     *  @return true if the operation has been successfully, otherwise false
     *  @function lockMailContentAccess
     */
    lockMailContentAccess : function() {
      return impl.info.lockMailContentAccess();
    }

  };

  return exports;

});