Source: src/data/model/print/Capability.js

  1. /* Copyright (c) 2015-present The Open Source Geospatial Foundation
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 3 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. /**
  17. * A data model that represents a `Capability` of a mapfish print service: It
  18. * can comfortably be generated by using an GeoExt.data.MapfishPrintProvider.
  19. *
  20. * @class GeoExt.data.model.print.Capability
  21. */
  22. Ext.define('GeoExt.data.model.print.Capability', {
  23. extend: 'GeoExt.data.model.Base',
  24. requires: ['GeoExt.data.model.print.Layout'],
  25. /**
  26. * @function layouts
  27. * Returns an Ext.data.Store of referenced
  28. * {@link GeoExt.data.model.print.Layout}s.
  29. * @return {Ext.data.Store} The store
  30. */
  31. fields: [
  32. {name: 'app', type: 'string'},
  33. {name: 'formats', type: 'auto', defaultValue: []},
  34. ],
  35. });