Small changes to MP42Metadata and added some private headers
This commit is contained in:
1 parent
d5a1e7cfcc
commit
6ea7af8777
4 files changed
+397
-318
No files matched your search
+38
-20
@@ -36,30 +36,56 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
BOOL isArtworkEdited;
|
||||
}
|
||||
|
||||
- (instancetype) initWithFileHandle:(MP42FileHandle)fileHandle;
|
||||
- (instancetype) initWithFileURL:(NSURL *)URL;
|
||||
/**
|
||||
* Initializes a new metadata instance by a given URL
|
||||
*
|
||||
* @param URL An URL that identifies an xml file.
|
||||
*
|
||||
* @return The receiver, initialized with the resource specified by URL.
|
||||
*/
|
||||
- (instancetype)initWithFileURL:(NSURL *)URL;
|
||||
|
||||
/**
|
||||
* Returns the complete list of available metadata.
|
||||
*/
|
||||
- (NSArray<NSString *> *) availableMetadata;
|
||||
|
||||
/**
|
||||
* Returns the complete list of writable metadata.
|
||||
*/
|
||||
- (NSArray<NSString *> *) writableMetadata;
|
||||
|
||||
/**
|
||||
* Returns the list of the available genres.
|
||||
*/
|
||||
- (NSArray<NSString *> *) availableGenres;
|
||||
|
||||
- (void) removeTagForKey:(NSString *)aKey;
|
||||
- (BOOL) setTag:(id)value forKey:(NSString *)key;
|
||||
|
||||
- (void)removeTagForKey:(NSString *)aKey;
|
||||
- (BOOL)setTag:(id)value forKey:(NSString *)key;
|
||||
|
||||
- (nullable id)objectForKeyedSubscript:(NSString *)key;
|
||||
- (void)setObject:(id)obj forKeyedSubscript:(NSString *)key;
|
||||
|
||||
- (BOOL) setMediaKindFromString:(NSString *)mediaKindString;
|
||||
- (BOOL) setContentRatingFromString:(NSString *)contentRatingString;
|
||||
- (BOOL) setArtworkFromFilePath:(NSString *)imageFilePath;
|
||||
|
||||
- (BOOL) writeMetadataWithFileHandle: (MP42FileHandle) fileHandle;
|
||||
|
||||
- (BOOL) mergeMetadata: (MP42Metadata *) newMetadata;
|
||||
|
||||
@property(nonatomic, readonly) NSMutableDictionary<NSString *, id> *tagsDict;
|
||||
|
||||
/**
|
||||
* Merges the tags of the passed MP42Metadata instance.
|
||||
*
|
||||
* @param metadata the instance to marge.
|
||||
*/
|
||||
- (void)mergeMetadata:(MP42Metadata *)metadata;
|
||||
|
||||
|
||||
@property(nonatomic, readwrite) uint8_t mediaKind;
|
||||
@property(nonatomic, readwrite) uint8_t contentRating;
|
||||
@property(nonatomic, readwrite) uint8_t hdVideo;
|
||||
@property(nonatomic, readwrite) uint8_t gapless;
|
||||
@property(nonatomic, readwrite) uint8_t podcast;
|
||||
|
||||
@property(nonatomic, readwrite) BOOL isEdited;
|
||||
@property(nonatomic, readwrite) BOOL isArtworkEdited;
|
||||
|
||||
@property(nonatomic, readwrite, copy) NSString *presetName;
|
||||
|
||||
@property(nonatomic, readwrite, retain) NSMutableArray<MP42Image *> *artworks;
|
||||
@@ -68,14 +94,6 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property(nonatomic, readwrite, retain, nullable) NSArray<NSURL *> *artworkFullsizeURLs;
|
||||
@property(nonatomic ,readwrite, retain, nullable) NSArray<NSString *> *artworkProviderNames;
|
||||
|
||||
@property(nonatomic, readwrite) uint8_t mediaKind;
|
||||
@property(nonatomic, readwrite) uint8_t contentRating;
|
||||
@property(nonatomic, readwrite) uint8_t hdVideo;
|
||||
@property(nonatomic, readwrite) uint8_t gapless;
|
||||
@property(nonatomic, readwrite) uint8_t podcast;
|
||||
@property(nonatomic, readwrite) BOOL isEdited;
|
||||
@property(nonatomic, readwrite) BOOL isArtworkEdited;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in new issue
Block a user