VLCCloudStorageController.h 922 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // VLCCloudStorageController.h
  3. // VLC for iOS
  4. //
  5. // Created by Carola Nitz on 31/12/14.
  6. // Copyright (c) 2014 VideoLAN. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @protocol VLCCloudStorageDelegate <NSObject>
  10. @required
  11. - (void)mediaListUpdated;
  12. @optional
  13. - (void)operationWithProgressInformationStarted;
  14. - (void)currentProgressInformation:(CGFloat)progress;
  15. - (void)updateRemainingTime:(NSString *)time;
  16. - (void)operationWithProgressInformationStopped;
  17. - (void)numberOfFilesWaitingToBeDownloadedChanged;
  18. - (void)sessionWasUpdated;
  19. @end
  20. @interface VLCCloudStorageController : NSObject
  21. @property (nonatomic, weak) id<VLCCloudStorageDelegate> delegate;
  22. @property (nonatomic, readwrite) BOOL isAuthorized;
  23. @property (nonatomic, readonly) NSArray *currentListFiles;
  24. + (instancetype)sharedInstance;
  25. - (void)startSession;
  26. - (void)logout;
  27. - (void)requestDirectoryListingAtPath:(NSString *)path;
  28. @end