1997-09-01 21:59:51 +00:00
|
|
|
/* Interface for GNU Objective-C version of NSDistantObject
|
1997-05-03 20:43:46 +00:00
|
|
|
Copyright (C) 1997 Free Software Foundation, Inc.
|
|
|
|
|
1997-09-01 21:59:51 +00:00
|
|
|
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
|
|
|
Based on code by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
|
|
|
Created: August 1997
|
1997-05-03 20:43:46 +00:00
|
|
|
|
|
|
|
This file is part of the GNUstep Base Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; if not, write to the Free
|
|
|
|
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*/
|
|
|
|
|
1997-09-01 21:59:51 +00:00
|
|
|
#ifndef __NSDistantObject_h_GNUSTEP_BASE_INCLUDE
|
|
|
|
#define __NSDistantObject_h_GNUSTEP_BASE_INCLUDE
|
1997-05-03 20:43:46 +00:00
|
|
|
|
1997-09-01 21:59:51 +00:00
|
|
|
#include <Foundation/NSProxy.h>
|
|
|
|
|
|
|
|
@class NSConnection;
|
|
|
|
|
|
|
|
@interface NSDistantObject : NSProxy <NSCoding>
|
1997-05-03 20:43:46 +00:00
|
|
|
{
|
1997-09-01 21:59:51 +00:00
|
|
|
@private
|
1998-09-26 05:13:45 +00:00
|
|
|
NSConnection *_connection;
|
1997-09-01 21:59:51 +00:00
|
|
|
id _object;
|
|
|
|
BOOL _isLocal;
|
1998-06-26 20:39:50 +00:00
|
|
|
BOOL _isVended;
|
1998-09-26 05:13:45 +00:00
|
|
|
Protocol *_protocol;
|
1997-05-03 20:43:46 +00:00
|
|
|
}
|
|
|
|
|
1997-09-01 21:59:51 +00:00
|
|
|
+ (NSDistantObject*) proxyWithLocal: anObject
|
|
|
|
connection: (NSConnection*)aConnection;
|
|
|
|
+ (NSDistantObject*) proxyWithTarget: anObject
|
|
|
|
connection: (NSConnection*)aConnection;
|
1997-05-03 20:43:46 +00:00
|
|
|
|
1997-09-01 21:59:51 +00:00
|
|
|
- (NSConnection*) connectionForProxy;
|
|
|
|
- initWithLocal:anObject connection: (NSConnection*)aConnection;
|
|
|
|
- initWithTarget:anObject connection: (NSConnection*)aConnection;
|
|
|
|
- (void) setProtocolForProxy: (Protocol*)aProtocol;
|
1997-05-03 20:43:46 +00:00
|
|
|
|
1997-09-01 21:59:51 +00:00
|
|
|
@end
|
1997-05-03 20:43:46 +00:00
|
|
|
|
1997-09-01 21:59:51 +00:00
|
|
|
@interface NSDistantObject(GNUstepExtensions)
|
|
|
|
|
|
|
|
+ newForRemoteTarget: (unsigned)target connection: (NSConnection*)conn;
|
1997-05-03 20:43:46 +00:00
|
|
|
|
1997-09-01 21:59:51 +00:00
|
|
|
- awakeAfterUsingCoder: aDecoder;
|
1997-09-29 14:39:53 +00:00
|
|
|
- classForPortCoder;
|
1997-09-01 21:59:51 +00:00
|
|
|
+ newWithCoder: aRmc;
|
|
|
|
- (const char *) selectorTypeForProxy: (SEL)selector;
|
|
|
|
- forward: (SEL)aSel :(arglist_t)frame;
|
|
|
|
- targetForProxy;
|
1997-05-03 20:43:46 +00:00
|
|
|
@end
|
1997-09-01 21:59:51 +00:00
|
|
|
|
|
|
|
#endif /* __NSDistantObject_h_GNUSTEP_BASE_INCLUDE */
|