//
//  DCMCompositeResponseHandler.h
//  OsiriX
//
//  Created by Lance Pysher on 12/15/04.
//  Copyright 2004 Macrad, LLC. All rights reserved.
//

/*************
The networking code of the DCMFramework is predominantly a port of the 11/4/04 version of the java pixelmed toolkit by David Clunie.
htt://www.pixelmed.com   
**************/

#import <Cocoa/Cocoa.h>
#import "DCMReceivedDataHandler.h"

@class DCMObject;
@class DCMTransferSyntax;
@class DCMPDataPDU;
@class DCMAssociation;
@interface DCMCompositeResponseHandler : DCMReceivedDataHandler {

	BOOL success;
	int status;
	BOOL allowData;
	NSString *calledAET;
	NSDate *date;
}

- (DCMObject *)objectFromCommandOrData:(NSData *)data withTransferSyntax:(DCMTransferSyntax *)syntax;
- (void)sendPDataIndication:(DCMPDataPDU *)pdu   association:(DCMAssociation *)association;
- (void)evaluateStatusAndSetSuccess:(DCMObject *)object;
- (void)makeUseOfDataSet:(DCMObject *)object;
- (BOOL)wasSuccessful;
- (int)status;
- (NSString *)calledAET;
- (void)setCalledAET:(NSString *)aet;

@end
