//$.getScript( '/js/vne/ContentAddSettings.js' );

/**
 * Define the ContentAddSettings class/prototype
 */
ContentAddSettings_SiteComponent$Class = {

  oFolderData : {},
  sType       : '',
  iFbAppId    : null,

  __construct : function()
  {
    var oContentAddSettings = new ContentAddSettings();

    jQuery.extend( true, this, oContentAddSettings );
    jQuery.extend( true, this, ContentAddSettings_SiteComponent$Class );

    this.__super = oContentAddSettings;

    this.__setContentType( 'SITECOMPONENT' );
  },

  setType : function( sType )
  {
    this.sType = sType;

    return this;
  },

  /**
   * This is used for Flightboard Report BYOP pages
   */
  setFbAppId : function( iFbAppId )
  {
    if( iFbAppId )
    {
      this.iFbAppId = iFbAppId;
    }

    return this;
  },

  /**
   *
   * QuickAddSettings['deriveSettings']['processing']['Subjects']
   * QuickAddSettings['defaultSettings']['processing']['Subjects']
   *
   */
  getFullSettings : function()
  {
    var retval = this.__super.getFullSettings();

    this.__initDefaultSettings( retval );

    retval['defaultSettings']['preferences']['sType']  = this.sType;

    if( this.iFbAppId !== null )
    {
      retval['defaultSettings']['preferences']['fbAppId']  = this.iFbAppId;
    }

    return retval;
  }
}

/**
 * Alias the constructor, thus defining the "instantiable"
 * class.
 */
ContentAddSettings_SiteComponent = ContentAddSettings_SiteComponent$Class.__construct;

