// Generated by CoffeeScript 1.12.7
var ExampleDownloadManager, ExampleFilepicker,
  extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
  hasProp = {}.hasOwnProperty;

ExampleDownloadManager = (function(superClass) {
  extend(ExampleDownloadManager, superClass);

  function ExampleDownloadManager() {
    return ExampleDownloadManager.__super__.constructor.apply(this, arguments);
  }

  ExampleDownloadManager.prototype.type = function() {
    return 'Examplefilepicker';
  };

  ExampleDownloadManager.prototype.getBaseConfig = function() {
    return ez5.session.getBaseConfig("plugin", 'example-plugin')["ExampleFilepicker"] || {};
  };

  ExampleDownloadManager.prototype.getExportSaveData = function() {
    var data;
    data = ExampleDownloadManager.__super__.getExportSaveData.call(this);
    data["export"].all_languages = true;
    return data;
  };

  ExampleDownloadManager.prototype.getMetadataFieldOptions = function() {
    return [];
  };

  return ExampleDownloadManager;

})(FilepickerDownloadManager);

ExampleFilepicker = (function(superClass) {
  extend(ExampleFilepicker, superClass);

  function ExampleFilepicker() {
    return ExampleFilepicker.__super__.constructor.apply(this, arguments);
  }

  ExampleFilepicker.prototype.readOpts = function() {
    ExampleFilepicker.__super__.readOpts.call(this);
    return this.setDownloadManagerClass(ExampleDownloadManager);
  };

  ExampleFilepicker.prototype.type = function() {
    return 'Examplefilepicker';
  };

  return ExampleFilepicker;

})(Filepicker);

ez5.session_ready(function() {
  return ExampleFilepicker.session_ready('Examplefilepicker', 'example-plugin');
});
