First import.
This commit is contained in:
1 parent
4e61250dc6
commit
796e9691ce
114 files changed
+37004
-44
No files matched your search
@@ -0,0 +1,70 @@
|
||||
//
|
||||
// MP42Metadata.h
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 06/02/09.
|
||||
// Copyright 2009 Damiano Galassi. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import "MP42MediaFormat.h"
|
||||
|
||||
@interface MP42Metadata : NSObject <NSCoding, NSCopying> {
|
||||
NSString *presetName;
|
||||
NSURL *sourceURL;
|
||||
NSMutableDictionary *tagsDict;
|
||||
|
||||
NSMutableArray *artworks;
|
||||
|
||||
NSArray *artworkThumbURLs;
|
||||
NSArray *artworkFullsizeURLs;
|
||||
NSArray *artworkProviderNames;
|
||||
|
||||
NSString *ratingiTunesCode;
|
||||
|
||||
uint8_t mediaKind;
|
||||
uint8_t contentRating;
|
||||
uint8_t hdVideo;
|
||||
uint8_t gapless;
|
||||
uint8_t podcast;
|
||||
BOOL isEdited;
|
||||
BOOL isArtworkEdited;
|
||||
}
|
||||
|
||||
- (instancetype) initWithSourceURL:(NSURL *)URL fileHandle:(MP42FileHandle)fileHandle;
|
||||
- (instancetype) initWithFileURL:(NSURL *)URL;
|
||||
|
||||
- (NSArray *) availableMetadata;
|
||||
- (NSArray *) writableMetadata;
|
||||
|
||||
- (NSArray *) availableGenres;
|
||||
|
||||
- (void) removeTagForKey:(NSString *)aKey;
|
||||
- (BOOL) setTag:(id)value forKey:(NSString *)key;
|
||||
- (BOOL) setMediaKindFromString:(NSString *)mediaKindString;
|
||||
- (BOOL) setContentRatingFromString:(NSString *)contentRatingString;
|
||||
- (BOOL) setArtworkFromFilePath:(NSString *)imageFilePath;
|
||||
|
||||
- (BOOL) writeMetadataWithFileHandle: (MP42FileHandle *) fileHandle;
|
||||
|
||||
- (BOOL) mergeMetadata: (MP42Metadata *) newMetadata;
|
||||
|
||||
@property(readonly) NSMutableDictionary *tagsDict;
|
||||
|
||||
@property(readwrite, retain) NSString *presetName;
|
||||
|
||||
@property(readwrite, retain) NSMutableArray *artworks;
|
||||
|
||||
@property(readwrite, retain) NSArray *artworkThumbURLs;
|
||||
@property(readwrite, retain) NSArray *artworkFullsizeURLs;
|
||||
@property(readwrite, retain) NSArray *artworkProviderNames;
|
||||
|
||||
@property(readwrite) uint8_t mediaKind;
|
||||
@property(readwrite) uint8_t contentRating;
|
||||
@property(readwrite) uint8_t hdVideo;
|
||||
@property(readwrite) uint8_t gapless;
|
||||
@property(readwrite) uint8_t podcast;
|
||||
@property(readwrite) BOOL isEdited;
|
||||
@property(readwrite) BOOL isArtworkEdited;
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user