VLCOneDriveController.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*****************************************************************************
  2. * VLCOneDriveController.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2014-2019 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. #define VLCOneDriveControllerSessionUpdated @"VLCOneDriveControllerSessionUpdated"
  14. @class ODItem;
  15. @interface VLCOneDriveController : VLCCloudStorageController
  16. @property (readonly) BOOL activeSession;
  17. @property (nonatomic, readwrite) ODItem *currentItem;
  18. @property (nonatomic, readwrite) ODItem *parentItem;
  19. @property (nonatomic, readonly) NSString *rootItemID;
  20. @property (nonatomic) UIViewController *presentingViewController;
  21. + (VLCOneDriveController *)sharedInstance;
  22. - (void)loginWithViewController:(UIViewController*)presentingViewController;
  23. - (void)startDownloadingODItem:(ODItem *)item;
  24. - (NSString *)configureSubtitleWithFileName:(NSString *)fileName folderItems:(NSArray *)folderItems;
  25. - (void)loadODItems;
  26. - (void)loadODParentItem;
  27. - (void)loadODItemsWithCompletionHandler:(void (^)(void))completionHandler;
  28. @end