#import "DWObject.h"


@interface AqCoreController : DWObject
{
    NSTask* java;
    int ncrashes;
    BOOL applicationIsTerminating;
    
    NSPipe* readPipe;
    NSPipe* writePipe;

    NSFileHandle* reader;
    NSFileHandle* writer;
    
    NSLock* l1;
    NSLock* l2;
}

+ (id) instance;
+ (BOOL) coreFilesAreValid;
+ (BOOL) hasJava141;
+ (BOOL) hasJava142;

- (void) launchCore;
- (void) terminateCore;

+ (void) writeString: (id) theString;
- (void) writeString: (id) theString;

@end