VLCGoogleDriveController.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. @protocol VLCGoogleDriveController
  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 VLCGoogleDriveController : NSObject
  21. @property (nonatomic, retain) id delegate;
  22. @property (nonatomic, readonly) NSArray *currentListFiles;
  23. @property (nonatomic, readwrite) BOOL isAuthorized;
  24. @property (nonatomic, readonly) NSInteger numberOfFilesWaitingToBeDownloaded;
  25. @property (nonatomic, retain) GTLServiceDrive *driveService;
  26. - (void)startSession;
  27. - (void)logout;
  28. - (void)requestDirectoryListingAtPath:(NSString *)path;
  29. //- (void)downloadFileToDocumentFolder:(DBMetadata *)file;
  30. @end