Files
Patrick Wardle 205e24d309 version 2.0.0
-avoid UI calls when run in cmdline mode
 -hide icon when run in cmdline mode
 -option to scan single process
2018-12-21 20:19:09 -10:00

40 lines
655 B
Objective-C

//
// ItemBase.h
// TaskExplorer
//
// Created by Patrick Wardle on 9/25/14.
// Copyright (c) 2014 Objective-See. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ItemBase : NSObject
{
}
//name
@property(retain, nonatomic)NSString* name;
//path
@property(retain, nonatomic)NSString* path;
//icon
@property(nonatomic, retain)NSImage* icon;
//file attributes
@property(nonatomic, retain)NSDictionary* attributes;
/* METHODS */
//init method
-(id)initWithParams:(NSDictionary*)params;
//return a path that can be opened in Finder.app
-(NSString*)pathForFinder;
//convert object to JSON string
-(NSString*)toJSON;
@end