VLCOneDriveController.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*****************************************************************************
  2. * VLCOneDriveController.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2014-2015 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Felix Paul Kühne <fkuehne # videolan.org>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import "VLCOneDriveTableViewController.h"
  13. #import "VLCOneDriveObject.h"
  14. @protocol VLCOneDriveControllerDelegate <NSObject>
  15. @required
  16. - (void)sessionWasUpdated;
  17. - (void)mediaListUpdated;
  18. @optional
  19. - (void)operationWithProgressInformationStarted;
  20. - (void)currentProgressInformation:(float)progress;
  21. - (void)updateRemainingTime:(NSString *)time;
  22. - (void)operationWithProgressInformationStopped;
  23. - (void)numberOfFilesWaitingToBeDownloadedChanged;
  24. @end
  25. @interface VLCOneDriveController : NSObject
  26. @property (nonatomic, weak) VLCOneDriveTableViewController *delegate;
  27. @property (readonly) BOOL activeSession;
  28. @property (readonly) BOOL userAuthenticated;
  29. @property (nonatomic, readonly) VLCOneDriveObject *rootFolder;
  30. @property (nonatomic, readwrite) VLCOneDriveObject *currentFolder;
  31. + (VLCOneDriveController *)sharedInstance;
  32. - (void)login;
  33. - (void)logout;
  34. - (void)loadCurrentFolder;
  35. - (void)downloadFileWithPath:(NSString *)path;
  36. - (void)streamFileWithPath:(NSString *)path;
  37. @end