You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.8KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCETICE project - Copyright 2009 by Lucio Asnaghi.
  4. JUCETICE is based around the JUCE library - "Jules' Utility Class Extensions"
  5. Copyright 2007 by Julian Storer.
  6. ------------------------------------------------------------------------------
  7. JUCE and JUCETICE can be redistributed and/or modified under the terms of
  8. the GNU General Public License, as published by the Free Software Foundation;
  9. either version 2 of the License, or (at your option) any later version.
  10. JUCE and JUCETICE are distributed in the hope that they will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with JUCE and JUCETICE; if not, visit www.gnu.org/licenses or write to
  16. Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  17. Boston, MA 02111-1307 USA
  18. ==============================================================================
  19. */
  20. #ifndef __JUCETICE_AUDIOPROGRAM_HEADER__
  21. #define __JUCETICE_AUDIOPROGRAM_HEADER__
  22. //==============================================================================
  23. class AudioProgram
  24. {
  25. public:
  26. AudioProgram (const String& newName,
  27. const File& newFile = File())
  28. : name (newName),
  29. file (newFile)
  30. {
  31. }
  32. String getName () const
  33. {
  34. return name;
  35. }
  36. void setName (const String& newName)
  37. {
  38. name = newName;
  39. }
  40. File getFile () const
  41. {
  42. return file;
  43. }
  44. void setFile (const File& newFile)
  45. {
  46. file = newFile;
  47. }
  48. protected:
  49. String name;
  50. File file;
  51. };
  52. #endif