VLCDropboxController.h 1.09 KB
Newer Older
1 2 3 4
/*****************************************************************************
 * VLCDropboxController.h
 * VLC for iOS
 *****************************************************************************
5
 * Copyright (c) 2013-2015 VideoLAN. All rights reserved.
6 7 8 9 10 11
 * $Id$
 *
 * Authors: Felix Paul Kühne <fkuehne # videolan.org>
 *
 * Refer to the COPYING file of the official project for license.
 *****************************************************************************/
12

13
#if TARGET_OS_IOS
14
#import <DropboxSDK/DropboxSDK.h>
15 16 17
#else
#import <DropboxTVSDK/DropboxSDK.h>
#endif
18
#import "VLCCloudStorageController.h"
19

20
@interface VLCDropboxController : VLCCloudStorageController <DBRestClientDelegate, DBSessionDelegate, DBNetworkRequestDelegate>
21

22
@property (nonatomic, readonly) NSInteger numberOfFilesWaitingToBeDownloaded;
23

24 25
+ (instancetype)sharedInstance;

26 27 28
- (void)shareCredentials;
- (BOOL)restoreFromSharedCredentials;

29
- (void)downloadFileToDocumentFolder:(DBMetadata *)file;
30 31 32
- (void)streamFile:(DBMetadata *)file currentNavigationController:(UINavigationController *)navigationController;

- (void)reset;
33 34

@end