Browse Source

HTTPUploadController: Add Medialibraryservice

Carola Nitz 6 years ago
parent
commit
b1d2aeba70
2 changed files with 4 additions and 0 deletions
  1. 1 0
      Sources/Coordinators/AppCoordinator.swift
  2. 3 0
      Sources/VLCHTTPUploaderController.h

+ 1 - 0
Sources/Coordinators/AppCoordinator.swift

@@ -33,6 +33,7 @@ class Services: NSObject {
         // Init the HTTP Server and clean its cache
         // FIXME: VLCHTTPUploaderController should perhaps be a service?
         VLCHTTPUploaderController.sharedInstance().cleanCache()
+        VLCHTTPUploaderController.sharedInstance().medialibrary = services.medialibraryService
         services.medialibraryService.migrationDelegate = self
     }
 

+ 3 - 0
Sources/VLCHTTPUploaderController.h

@@ -15,11 +15,14 @@
 
 #import <UIKit/UIKit.h>
 
+@class MediaLibraryService;
+
 @interface VLCHTTPUploaderController : NSObject
 
 + (instancetype)sharedInstance;
 
 @property (nonatomic, readonly) BOOL isReachable;
+@property (nonatomic, readwrite) MediaLibraryService *medialibrary;
 
 - (BOOL)changeHTTPServerState:(BOOL)state;
 - (NSString *)httpStatus;