VLCDropboxController.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // VLCDropboxController.h
  3. // VLC for iOS
  4. //
  5. // Created by Felix Paul Kühne on 23.05.13.
  6. // Copyright (c) 2013 VideoLAN. All rights reserved.
  7. //
  8. // Refer to the COPYING file of the official project for license.
  9. //
  10. #import <DropboxSDK/DropboxSDK.h>
  11. @protocol VLCDropboxController
  12. @required
  13. - (void)mediaListUpdated;
  14. @optional
  15. - (void)operationWithProgressInformationStarted;
  16. - (void)currentProgressInformation:(float)progress;
  17. - (void)operationWithProgressInformationStopped;
  18. - (void)numberOfFilesWaitingToBeDownloadedChanged;
  19. @end
  20. @interface VLCDropboxController : NSObject <DBRestClientDelegate, DBSessionDelegate, DBNetworkRequestDelegate>
  21. @property (nonatomic, retain) id delegate;
  22. @property (nonatomic, readonly) NSArray *currentListFiles;
  23. @property (nonatomic, readonly) BOOL sessionIsLinked;
  24. @property (nonatomic, readonly) NSInteger numberOfFilesWaitingToBeDownloaded;
  25. - (void)startSession;
  26. - (void)logout;
  27. - (void)requestDirectoryListingAtPath:(NSString *)path;
  28. - (void)downloadFileToDocumentFolder:(DBMetadata *)file;
  29. - (void)streamFile:(DBMetadata *)file;
  30. @end