-
Notifications
You must be signed in to change notification settings - Fork 2
/
MusicFileInfo.h
41 lines (33 loc) · 1.03 KB
/
MusicFileInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// MusicFileInfo.h
// iMusicTags
//
// Created by Kevin Chen on 10-7-23.
// Copyright 2010 Kevin Chen's workstation. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MusicFileInfo : NSObject {
NSString *title;
NSString *artist;
NSString *album;
NSString *genre;
NSInteger year;
NSInteger track;
NSURL *fileUrl;
CFStringEncoding guessEncoding;
}
- (id)initWithUrl:(NSURL *)aUrl;
- (id)initWithUrl:(NSURL *)aUrl withEncoding:(CFStringEncoding)anEncoding;
- (void)writeTags;
- (void)writeTags:(CFStringEncoding)anEncoding;
- (void)readMPEGInfo:(NSURL *)aUrl encoding:(CFStringEncoding)anEncoding;
- (void)writeMPEGInfo:(NSURL *)aUrl encoding:(CFStringEncoding)anEncoding;
- (BOOL)hasID3v2Tag:(NSURL *)aUrl;
@property (readwrite, copy) NSString *title;
@property (readwrite, copy) NSString *artist;
@property (readwrite, copy) NSString *album;
@property (readwrite, copy) NSString *genre;
@property (readwrite) NSInteger year;
@property (readwrite) NSInteger track;
@property (readwrite, copy) NSURL *fileUrl;
@end