1 // MacTF Copyright 2004 Nathan Oates
5 * This source code is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Public License as published
7 * by the Free Software Foundation; either version 2 of the License,
8 * or (at your option) any later version.
10 * This source code is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * Please refer to the GNU Public License for more details.
15 * You should have received a copy of the GNU Public License along with
16 * this source code; if not, write to:
17 * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 /* This file was modified by Kalle Olavi Niemitalo on 2007-10-18. */
22 #import <Cocoa/Cocoa.h>
26 @interface DataHandler
: NSObject
28 NSMutableArray
* fileList
;
29 NSMutableArray
* searchList
;
30 IBOutlet id tableView
;
31 IBOutlet UIElements
*UIEl
;
35 - (NSMutableArray
*) fileList
;
36 - (NSMutableArray
*) displayedList
;
37 - (void) setFileList
: (NSArray
*)newFileList
;
38 - (void) setSearchList
: (NSArray
*)newSearchList
;
40 - (IBAction
) search
:(id
)sender
;
41 // - (void) setSnapShot: (NSArray *)newFileList;
42 - (NSMutableDictionary
*) getTFFileFromSwappedHexData
:(NSData
*) input
;
43 - (NSData
*) getDataFromTFFile
:(NSDictionary
*) infile withName
:(NSString
*)inputName
;
44 - (void) convertRawDataToUseful
:(NSMutableDictionary
*) input
;
45 - (NSDictionary
*) extractAttributes
:(NSDictionary
*)fattrs
;
46 - (NSDictionary
*) extractDataFromRecHeader
:(NSString
*)file forModel
:(NSString
*)model
;