VLCBoxController.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*****************************************************************************
  2. * VLCBoxController.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2014 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Carola Nitz <nitz.carola # googlemail.com>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import <BoxSDK/BoxSDK.h>
  13. #import "VLCBoxConstants.h"
  14. @protocol VLCBoxController <NSObject>
  15. @required
  16. - (void)mediaListUpdated;
  17. @optional
  18. - (void)operationWithProgressInformationStarted;
  19. - (void)currentProgressInformation:(CGFloat)progress;
  20. - (void)updateRemainingTime:(NSString *)time;
  21. - (void)operationWithProgressInformationStopped;
  22. - (void)numberOfFilesWaitingToBeDownloadedChanged;
  23. @end
  24. @interface VLCBoxController : NSObject
  25. @property (nonatomic, weak) id<VLCBoxController> delegate;
  26. @property (nonatomic, readonly) NSArray *currentListFiles;
  27. @property (nonatomic, readwrite) BOOL isAuthorized;
  28. + (VLCBoxController *)sharedInstance;
  29. - (void)startSession;
  30. - (void)stopSession;
  31. - (void)logout;
  32. - (void)requestDirectoryListingWithFolderId:(NSString *)folderId;
  33. - (BOOL)hasMoreFiles;
  34. - (void)streamFile:(BoxFile *)file;
  35. - (void)downloadFileToDocumentFolder:(BoxFile *)file;
  36. @end