forked from AndrewSchenk/App-Scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainVC.h
82 lines (63 loc) · 1.86 KB
/
MainVC.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//
// MainVC.h
// APIScanner
//
// Created by Andrew Schenk on 9/2/10.
// Copyright 2010 Chimp Studios. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "ScanResultsWC.h"
#import "DropBox.h"
#import "MAAttachedWindow.h"
@interface MainVC : NSWindowController <NSDrawerDelegate, NSTabViewDelegate, NSTableViewDataSource>{
//NSWindow *window;
ScanResultsWC *scanResultsWC;
// Binary Scanner
IBOutlet NSTextField *headerLabel, *progressLabel;
IBOutlet DropBox *box;
IBOutlet NSImageView *appIcon, *xrayHud;
IBOutlet NSProgressIndicator *progressIndicator;
NSTimer *animationTimer;
NSSound *systemSound;
BOOL hasPrematurelyFinished;
// Search
IBOutlet NSSearchField *searchField;
IBOutlet NSDrawer *drawer;
IBOutlet NSTableView *table;
// Missing Signature
IBOutlet NSView *missingSigVw;
IBOutlet NSButton *misSigBtn;
IBOutlet NSTextField *missingSignatureTf;
MAAttachedWindow *misWindow;
@private
NSTimer *guidelinesTimer;
int startingIndex;
BOOL hasStarted;
IBOutlet NSTextView* guidelinesDisplay;
NSArray *guidelines;
NSMutableArray *searchResults;
NSMutableData *connData;
}
//@property (assign) IBOutlet NSWindow *window;
// Missing Signatures
-(IBAction)reportMissingSig:(id)sender;
-(IBAction)submitMissingSig:(id)sender;
// Guidelines
-(void)loadNewMessage;
// Animation
-(void)startIconAnimation;
-(void)renderInverseIcon;
// Searching
-(IBAction)toggleDrawer:(id)sender;
-(IBAction)search:(id)sender;
// Binary Scan
-(IBAction)openFile:(id)sender;
-(void)didReceiveDraggedFiles:(NSArray*)files;
-(void)readInBinaryFromFiles:(NSArray*)files;
-(NSImage*)getImageForFile:(NSString*)filepath;
-(void)startScannerWithURL:(NSURL*)url;
-(void)readHexCStringDataInFromURL:(NSURL*)url;
-(void)processHexMethods:(NSArray*)hmethds;
-(void)stripIVarsAndPathsFromStrings:(NSArray*)strings;
-(void)checkMethodsAgainstDatabase:(NSArray*)methods;
@end