VLCOneDriveObject.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*****************************************************************************
  2. * VLCOneDriveObject.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2015 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Felix Paul Kühne <fkuehne # videolan.org>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import <LiveSDK/LiveConnectClient.h>
  13. @class VLCOneDriveObject;
  14. @protocol VLCOneDriveObjectDelegate <NSObject>
  15. - (void)folderContentLoaded:(VLCOneDriveObject *)sender;
  16. - (void)fullFolderTreeLoaded:(VLCOneDriveObject *)sender;
  17. - (void)folderContentLoadingFailed:(NSError *)error
  18. sender:(VLCOneDriveObject *) sender;
  19. - (void)fileContentLoaded:(VLCOneDriveObject *)sender;
  20. - (void)fileContentLoadingFailed:(NSError *)error
  21. sender:(VLCOneDriveObject *) sender;
  22. @end
  23. @interface VLCOneDriveObject : NSObject <LiveOperationDelegate, LiveDownloadOperationDelegate, VLCOneDriveObjectDelegate>
  24. @property (strong, nonatomic) VLCOneDriveObject *parent;
  25. @property (strong, nonatomic) NSString *objectId;
  26. @property (strong, nonatomic) NSString *name;
  27. @property (strong, nonatomic) NSString *type;
  28. @property (strong, nonatomic) NSNumber *size;
  29. @property (strong, nonatomic) NSString *thumbnailURL;
  30. @property (readonly, nonatomic) BOOL isFolder;
  31. @property (strong, nonatomic) NSArray *folders;
  32. @property (strong, nonatomic) NSArray *files;
  33. @property (strong, nonatomic) NSArray *items;
  34. @property (readonly, nonatomic) NSString *filesPath;
  35. @property (readonly, nonatomic) NSString *downloadPath;
  36. @property (readonly, nonatomic) BOOL hasFullFolderTree;
  37. @property (strong, nonatomic) LiveConnectClient *liveClient;
  38. @property (strong, nonatomic) id<VLCOneDriveObjectDelegate>delegate;
  39. - (void)loadFolderContent;
  40. - (void)loadFileContent;
  41. @end