Controller.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*****************************************************************************
  2. * FlashVideoDownloader: Controller.m
  3. *****************************************************************************
  4. * Copyright (C) 2007-2012 Pierre d'Herbemont and VideoLAN
  5. *
  6. * Authors: Pierre d'Herbemont
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU Lesser General Public License as published by
  10. * the Free Software Foundation; either version 2.1 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public License
  19. * along with this program; if not, write to the Free Software Foundation,
  20. * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  21. *****************************************************************************/
  22. #import <Cocoa/Cocoa.h>
  23. #import <VLCKit/VLCKit.h>
  24. @interface Controller : NSObject
  25. {
  26. IBOutlet NSView * remoteURLView;
  27. IBOutlet NSView * workingView;
  28. IBOutlet NSWindow * window;
  29. IBOutlet NSButton * openConvertedFileButton;
  30. NSNumber * selectedStreamOutput;
  31. NSString * remoteURLAsString;
  32. VLCMedia * media;
  33. VLCStreamSession * streamSession;
  34. NSString * outputFilePath;
  35. NSString * outputFolderPath;
  36. }
  37. - (void)awakeFromNib;
  38. @property (retain) VLCMedia * media;
  39. @property (retain) VLCStreamSession * streamSession;
  40. @property (assign) NSNumber * selectedStreamOutput;
  41. @property (retain,readonly) NSString * outputFilePath;
  42. @property (retain,readonly) NSString * outputFolderPath;
  43. @property (retain) NSString * remoteURLAsString;
  44. - (IBAction)convert:(id)sender;
  45. - (IBAction)openConvertedFile:(id)sender;
  46. - (IBAction)openConvertedEnclosingFolder:(id)sender;
  47. - (IBAction)pickOutputFolderPath:(id)sender;
  48. @end