12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- /*****************************************************************************
- * VLCOneDriveController.h
- * VLC for iOS
- *****************************************************************************
- * Copyright (c) 2014-2015 VideoLAN. All rights reserved.
- * $Id$
- *
- * Authors: Felix Paul Kühne <fkuehne # videolan.org>
- *
- * Refer to the COPYING file of the official project for license.
- *****************************************************************************/
- #import "VLCOneDriveTableViewController.h"
- #import "VLCOneDriveObject.h"
- #define VLCOneDriveControllerSessionUpdated @"VLCOneDriveControllerSessionUpdated"
- @protocol VLCOneDriveControllerDelegate <NSObject>
- @required
- - (void)sessionWasUpdated;
- - (void)mediaListUpdated;
- @optional
- - (void)operationWithProgressInformationStarted;
- - (void)currentProgressInformation:(float)progress;
- - (void)updateRemainingTime:(NSString *)time;
- - (void)operationWithProgressInformationStopped;
- - (void)numberOfFilesWaitingToBeDownloadedChanged;
- @end
- @interface VLCOneDriveController : NSObject
- @property (nonatomic, weak) UIViewController <VLCOneDriveControllerDelegate>*delegate;
- @property (readonly) BOOL activeSession;
- @property (readonly) BOOL userAuthenticated;
- @property (nonatomic, readonly) VLCOneDriveObject *rootFolder;
- @property (nonatomic, readwrite) VLCOneDriveObject *currentFolder;
- + (VLCOneDriveController *)sharedInstance;
- - (void)login;
- - (void)logout;
- - (void)downloadObject:(VLCOneDriveObject *)object;
- - (void)loadCurrentFolder;
- @end
|