VLCDropboxController.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*****************************************************************************
  2. * VLCDropboxController.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2013 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 <DropboxSDK/DropboxSDK.h>
  13. @protocol VLCDropboxController
  14. @required
  15. - (void)mediaListUpdated;
  16. @optional
  17. - (void)operationWithProgressInformationStarted;
  18. - (void)currentProgressInformation:(float)progress;
  19. - (void)updateRemainingTime:(NSString *)time;
  20. - (void)operationWithProgressInformationStopped;
  21. - (void)numberOfFilesWaitingToBeDownloadedChanged;
  22. @end
  23. @interface VLCDropboxController : NSObject <DBRestClientDelegate, DBSessionDelegate, DBNetworkRequestDelegate>
  24. @property (nonatomic, retain) id delegate;
  25. @property (nonatomic, readonly) NSArray *currentListFiles;
  26. @property (nonatomic, readonly) BOOL sessionIsLinked;
  27. @property (nonatomic, readonly) NSInteger numberOfFilesWaitingToBeDownloaded;
  28. - (void)startSession;
  29. - (void)logout;
  30. - (void)requestDirectoryListingAtPath:(NSString *)path;
  31. - (void)downloadFileToDocumentFolder:(DBMetadata *)file;
  32. - (void)streamFile:(DBMetadata *)file;
  33. @end