VLCGoogleDriveController.h 1.17 KB
Newer Older
Carola Nitz's avatar
Carola Nitz committed
1 2 3 4 5 6 7 8 9 10
//
//  VLCGoogleDriveController.h
//  VLC for iOS
//
//  Created by Carola Nitz on 21.09.13.
//  Copyright (c) 2013 VideoLAN. All rights reserved.
//
//  Refer to the COPYING file of the official project for license.
//
#import "GTLDrive.h"
11 12
#import "GTMOAuth2ViewControllerTouch.h"
#import "VLCGoogleDriveConstants.h"
Carola Nitz's avatar
Carola Nitz committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

@protocol VLCGoogleDriveController
@required
- (void)mediaListUpdated;

@optional
- (void)operationWithProgressInformationStarted;
- (void)currentProgressInformation:(float)progress;
- (void)operationWithProgressInformationStopped;
- (void)numberOfFilesWaitingToBeDownloadedChanged;
@end

@interface VLCGoogleDriveController : NSObject

@property (nonatomic, retain) id delegate;
@property (nonatomic, readonly) NSArray *currentListFiles;
@property (nonatomic, readwrite) BOOL isAuthorized;
@property (nonatomic, readonly) NSInteger numberOfFilesWaitingToBeDownloaded;
@property (nonatomic, retain) GTLServiceDrive *driveService;

33
+ (VLCGoogleDriveController *)sharedInstance;
Carola Nitz's avatar
Carola Nitz committed
34 35 36
- (void)startSession;
- (void)logout;
- (void)requestDirectoryListingAtPath:(NSString *)path;
37
- (void)downloadFileToDocumentFolder:(GTLDriveFile *)file;
38
- (void)streamFile:(GTLDriveFile *)file;
Carola Nitz's avatar
Carola Nitz committed
39 40

@end