VLCGoogleDriveController.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // VLCGoogleDriveController.h
  3. // VLC for iOS
  4. //
  5. // Created by Carola Nitz on 21.09.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 "GTLDrive.h"
  11. #import "GTMOAuth2ViewControllerTouch.h"
  12. #import "VLCGoogleDriveConstants.h"
  13. @protocol VLCGoogleDriveController
  14. @required
  15. - (void)mediaListUpdated;
  16. @optional
  17. - (void)operationWithProgressInformationStarted;
  18. - (void)currentProgressInformation:(float)progress;
  19. - (void)operationWithProgressInformationStopped;
  20. - (void)numberOfFilesWaitingToBeDownloadedChanged;
  21. @end
  22. @interface VLCGoogleDriveController : NSObject
  23. @property (nonatomic, retain) id delegate;
  24. @property (nonatomic, readonly) NSArray *currentListFiles;
  25. @property (nonatomic, readwrite) BOOL isAuthorized;
  26. @property (nonatomic, readonly) NSInteger numberOfFilesWaitingToBeDownloaded;
  27. @property (nonatomic, retain) GTLServiceDrive *driveService;
  28. + (VLCGoogleDriveController *)sharedInstance;
  29. - (void)startSession;
  30. - (void)logout;
  31. - (void)requestDirectoryListingAtPath:(NSString *)path;
  32. - (void)downloadFileToDocumentFolder:(GTLDriveFile *)file;
  33. - (void)streamFile:(GTLDriveFile *)file;
  34. @end