forked from gonzoua/AudioBookBinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Chapter.h
31 lines (27 loc) · 804 Bytes
/
Chapter.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
//
// Chapter.h
// AudioBookBinder
//
// Created by Oleksandr Tymoshenko on 10-06-11.
// Copyright 2010 Bluezbox Software. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "AudioFile.h"
@interface Chapter : NSObject {
NSString *name;
NSMutableArray *files;
}
@property (readwrite, copy) NSString *name;
@property (readwrite, copy) NSMutableArray *files;
- (id) copy;
- (void) addFile:(AudioFile *)file;
- (void) addFiles:(NSArray *)newFiles;
- (BOOL) containsFile:(AudioFile*)file;
- (AudioFile*) fileAtIndex:(NSInteger)index;
- (void) removeFile:(AudioFile*)file;
- (void) insertFile:(AudioFile*)file atIndex:(NSInteger)index;
- (int) totalFiles;
- (Chapter*) splitAtFile:(AudioFile*)file;
- (UInt32) totalDuration;
- (void) sortUsingDecriptor:(NSSortDescriptor*)descriptor;
@end