Files
BlockBlock/Installer/Source/Configure.h
T
Patrick Wardle 57ca40fc7f initial checkin
BlockBlock v1.0 (beta)
2020-04-10 21:09:09 -10:00

62 lines
1.1 KiB
Objective-C

//
// file: Configure.h
// project: BlockBlock (config)
// description: install/uninstall logic (header)
//
// created by Patrick Wardle
// copyright (c) 2018 Objective-See. All rights reserved.
//
#ifndef BlockBlock_Configure_h
#define BlockBlock_Configure_h
#import "HelperComms.h"
#import <Foundation/Foundation.h>
@interface Configure : NSObject
{
}
/* PROPERTIES */
//helper installed & connected
@property(nonatomic) BOOL gotHelp;
//need to request FDA
@property(nonatomic) BOOL requestFDA;
//daemom comms object
@property(nonatomic, retain) HelperComms* xpcComms;
/* METHODS */
//determine if installed
-(BOOL)isInstalled;
//determine if installed version is a beta
-(BOOL)isBetaInstalled;
//load/unload lauch daemon
// calls into helper via XPC
-(BOOL)toggleDaemon:(BOOL)shouldLoad;
//check if daemon has FDA
-(BOOL)shouldRequestFDA;
//invokes appropriate install || uninstall logic
-(BOOL)configure:(NSInteger)parameter;
//install
-(BOOL)install;
//uninstall
-(BOOL)uninstall:(BOOL)full;
//remove helper (daemon)
-(BOOL)removeHelper;
@end
#endif