-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathELLIOKitViewModel.h
More file actions
40 lines (30 loc) · 1.11 KB
/
ELLIOKitViewModel.h
File metadata and controls
40 lines (30 loc) · 1.11 KB
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
//
// ELLIOKitViewModel.h
// IOKitBrowser
//
// Created by Christopher Anderson on 25/11/2014.
// Copyright (c) 2014 Electric Labs. All rights reserved.
//
#import <Foundation/Foundation.h>
extern NSString * const kDepthAttribute;
typedef NS_ENUM(NSUInteger, ELLIOKitViewModelState) {
ELLIOKitViewModelStateLoading,
ELLIOKitViewModelStateSearching,
ELLIOKitViewModelStateLoaded
};
@interface ELLIOKitViewModel : NSObject
@property (nonatomic, readonly, assign) ELLIOKitViewModelState state;
@property (nonatomic, readonly, copy) NSString *filterTerm;
@property (nonatomic, readonly, copy) NSString *title;
@property (nonatomic, readonly, copy) NSAttributedString *trail;
- (void)load;
- (void)refresh;
- (void)filterModelByTerm:(NSString *)filterTerm;
- (void)clearFilter;
- (ELLIOKitViewModel *) viewModelForIndexPath:(NSIndexPath *)indexPath;
- (BOOL) hasChildren:(NSIndexPath *)indexPath;
- (NSAttributedString *) titleForIndexPath:(NSIndexPath *)indexPath;
- (NSString *) titleForHeaderInSection:(NSInteger)section;
- (NSInteger) numberOfRowsInSection:(NSInteger)section;
- (NSInteger) numberOfSections;
@end