VLCMediaFileDiscoverer.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*****************************************************************************
  2. * VLCMediaFileDiscoverer.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2013 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Gleb Pinigin <gpinigin # gmail.com>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import <Foundation/Foundation.h>
  13. @protocol VLCMediaFileDiscovererDelegate <NSObject>
  14. @optional
  15. // loading is equal to YES first time when file is discovered
  16. - (void)mediaFileAdded:(NSString *)filePath loading:(BOOL)isLoading;
  17. - (void)mediaFileChanged:(NSString *)filePath size:(unsigned long long)size;
  18. - (void)mediaFileDeleted:(NSString *)filePath;
  19. @end
  20. @interface VLCMediaFileDiscoverer : NSObject
  21. - (void)addObserver:(id<VLCMediaFileDiscovererDelegate>)delegate;
  22. - (void)removeObserver:(id<VLCMediaFileDiscovererDelegate>)delegate;
  23. - (void)startDiscovering:(NSString *)directoryPath;
  24. - (void)stopDiscovering;
  25. + (instancetype)sharedInstance;
  26. @end