VLCOneDriveController.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #define VLCOneDriveControllerSessionUpdated @"VLCOneDriveControllerSessionUpdated"
  15. @protocol VLCOneDriveControllerDelegate <NSObject>
  16. @required
  17. - (void)sessionWasUpdated;
  18. - (void)mediaListUpdated;
  19. @optional
  20. - (void)operationWithProgressInformationStarted;
  21. - (void)currentProgressInformation:(float)progress;
  22. - (void)updateRemainingTime:(NSString *)time;
  23. - (void)operationWithProgressInformationStopped;
  24. - (void)numberOfFilesWaitingToBeDownloadedChanged;
  25. @end
  26. @interface VLCOneDriveController : NSObject
  27. @property (nonatomic, weak) UIViewController <VLCOneDriveControllerDelegate>*delegate;
  28. @property (readonly) BOOL activeSession;
  29. @property (readonly) BOOL userAuthenticated;
  30. @property (nonatomic, readonly) VLCOneDriveObject *rootFolder;
  31. @property (nonatomic, readwrite) VLCOneDriveObject *currentFolder;
  32. + (VLCOneDriveController *)sharedInstance;
  33. - (void)login;
  34. - (void)logout;
  35. - (void)downloadObject:(VLCOneDriveObject *)object;
  36. - (void)loadCurrentFolder;
  37. @end