-
Notifications
You must be signed in to change notification settings - Fork 32
/
PrefsWindowController.h
executable file
·70 lines (46 loc) · 1.32 KB
/
PrefsWindowController.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
//
// PrefsWindowController.h
// KnockKnock
//
// Created by Patrick Wardle on 2/6/15.
// Copyright (c) 2015 Objective-See, LLC. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface PrefsWindowController : NSWindowController <NSWindowDelegate>
{
}
/* METHODS */
//register default prefs
// ->only used if user hasn't set any
-(void)registerDefaults;
//load (persistence) preferences from file system
-(void)loadPreferences;
//buttons
//button for filtering out OS componets
@property (weak) IBOutlet NSButton* showTrustedItemsBtn;
//button disabling update check
@property (weak) IBOutlet NSButton *disableUpdateCheckBtn;
//button for disabling talking to VT
@property (weak) IBOutlet NSButton* disableVTQueriesBtn;
//button for saving output
@property (weak) IBOutlet NSButton* saveOutputBtn;
//button for ok/close
@property (weak) IBOutlet NSButton *okButton;
//filter out OS/known items
@property BOOL showTrustedItems;
//no update checks
@property BOOL disableUpdateCheck;
//disable talking to VT
@property BOOL disableVTQueries;
//save results (at end of scan)
@property BOOL saveOutput;
//save results now
@property BOOL shouldSaveNow;
/* METHODS */
//save existing prefs
-(void)captureExistingPrefs;
//'OK' button handler
// ->save prefs and close window
-(IBAction)closeWindow:(id)sender;
/* METHODS */
@end