-
Notifications
You must be signed in to change notification settings - Fork 13
/
ItemView.h
53 lines (37 loc) · 1.58 KB
/
ItemView.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
46
47
48
49
50
51
52
53
//
// ItemView.h
// TaskExplorer
//
// Created by Patrick Wardle on 5/23/15.
// Copyright (c) 2015 Objective-See, LLC. All rights reserved.
//
#import "File.h"
#import "Task.h"
#import "Binary.h"
#import "Connection.h"
#import <Foundation/Foundation.h>
/* METHODS */
//create customize item view
NSTableCellView* createItemView(NSTableView* tableView, id owner, id item);
//create & customize flagged item view
NSTableCellView* createFlaggedItemView(NSTableView* tableView, id owner, id item);
//create & customize global dylib/file view
NSTableCellView* createLoadedItemView(NSTableView* tableView, id owner, id item);
//create & customize task view
NSTableCellView* createTaskView(NSTableView* tableView, id owner, id item);
//create & customize dylib view
NSTableCellView* createDylibView(NSTableView* tableView, id owner, Binary* dylib);
//create & customize file view
NSTableCellView* createFileView(NSTableView* tableView, id owner, File* file);
//create & customize networking view
NSTableCellView* createNetworkView(NSTableView* tableView, id owner, Connection* connection);
//add a tracking area to a view within the item view
void addTrackingArea(NSTableCellView* itemView, NSUInteger subviewTag, id owner);
//build item + 'loaded in' string for dylibs, files, etc in search window
NSAttributedString* initLoadedInString(id item);
//set code signing image
// ->either signed, unsigned, or unknown
NSImage* getCodeSigningIcon(Binary* binary);
//configure the VT button
// ->also set's binary name to red if known malware
void configVTButton(NSTableCellView *itemCell, id owner, Binary* binary);