forked from NSGod/ichm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHMLinkItem.h
46 lines (29 loc) · 971 Bytes
/
CHMLinkItem.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
//
// CHMLinkItem.h
// ichm
//
// Created by Mark Douma on 4/19/2016.
// Copyright © 2016 Mark Douma LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@class CHMTableOfContents;
@class CHMArchiveItem;
@interface CHMLinkItem : NSObject {
NSString *name;
NSString *path;
NSMutableArray *children;
NSUInteger pageID;
CHMArchiveItem *archiveItem;
CHMLinkItem *parent; // non-retained
CHMTableOfContents *container; // non-retained
}
@property (readonly, nonatomic, retain) NSString *name;
@property (readonly, nonatomic, retain) NSString *path;
@property (readonly, nonatomic, retain) NSArray *children;
@property (readonly, nonatomic, retain) CHMArchiveItem *archiveItem;
@property (readonly, nonatomic, assign) CHMLinkItem *parent;
@property (readonly, nonatomic, assign) CHMTableOfContents *container;
- (NSUInteger)numberOfChildren;
- (CHMLinkItem *)childAtIndex:(NSUInteger)n;
- (NSArray *)ancestors;
@end