-
Notifications
You must be signed in to change notification settings - Fork 0
/
IIAlbum.h
45 lines (39 loc) · 874 Bytes
/
IIAlbum.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
42
43
44
45
//
// IIAlbum.h
// iTunesImport
//
// Created by Alexander Strange on 1/30/08.
//
#import <Cocoa/Cocoa.h>
#import "IIFileSource.h"
@interface TrackTags : NSObject {
@public;
int tid;
int num;
int year;
NSString *title, *artist, *composer, *genre, *comment, *internalName;
}
@end
@interface AlbumTags : NSObject <NSTableViewDataSource> {
@public;
NSString *title, *artist, *composer, *genre, *comment;
int year;
BOOL hasAlbumArtist;
NSMutableArray *tracks;
}
@end
@interface IIAlbum : NSObject {
IIFileSource *fileSource;
NSArray *fileNames;
AlbumTags *tags;
}
- (id)initWithFileSource:(IIFileSource *)fs;
- (unsigned)trackCount;
- (AlbumTags*)tags;
- (BOOL)isValid;
- (BOOL)shouldReencode;
- (NSString*)pathToTrackWithID:(int)track;
- (IIFileSource*)fileSource;
- (void)recanonicalizeTags;
@end
extern IIAlbum *GetAlbumForFileSource(IIFileSource *fs);