mirror of
https://github.com/objective-see/TaskExplorer.git
synced 2026-03-22 07:02:39 +00:00
43 lines
726 B
Objective-C
43 lines
726 B
Objective-C
//
|
|
// File.h
|
|
// TaskExplorer
|
|
//
|
|
// Created by Patrick Wardle on 2/19/15.
|
|
// Copyright (c) 2015 Objective-See. All rights reserved.
|
|
//
|
|
|
|
#import "ItemBase.h"
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
/* GLOBALS */
|
|
|
|
//(privacy) protected directories
|
|
extern NSArray* protectedDirectories;
|
|
|
|
@interface File : ItemBase
|
|
{
|
|
|
|
}
|
|
|
|
/* PROPERTIES */
|
|
|
|
//type
|
|
@property(nonatomic, retain)NSString* type;
|
|
|
|
|
|
/* METHODS */
|
|
|
|
//init method
|
|
-(id)initWithParams:(NSDictionary*)params;
|
|
|
|
//get detailed info (which takes a while to generate)
|
|
// ->only shown to user if they click 'info' so this method is called in the background
|
|
-(void)generateDetailedInfo;
|
|
|
|
//set file type
|
|
// ->invokes 'file' cmd, the parses out result
|
|
-(void)setFileType;
|
|
|
|
@end
|