libs-base/Source/NSXPCConnection.m

278 lines
5.3 KiB
Mathematica
Raw Permalink Normal View History

2019-11-13 07:31:09 +00:00
/* Implementation of class NSXPCConnection
Copyright (C) 2019 Free Software Foundation, Inc.
By: Gregory Casamento <greg.casamento@gmail.com>
Date: Tue Nov 12 23:50:29 EST 2019
This file is part of the GNUstep Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser 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
Lesser General Public License for more details.
2019-11-13 07:31:09 +00:00
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110 USA.
2019-11-13 07:31:09 +00:00
*/
#import "Foundation/NSXPCConnection.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
2019-11-13 07:31:09 +00:00
@implementation NSXPCConnection
- (instancetype) initWithServiceName:(NSString *)serviceName
2019-11-13 09:17:00 +00:00
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (NSString *) serviceName
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) setServiceName: (NSString *)serviceName
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (instancetype) initWithMachServiceName: (NSString *)name
options: (NSXPCConnectionOptions)options
2019-11-13 09:17:00 +00:00
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (instancetype) initWithListenerEndpoint: (NSXPCListenerEndpoint *)endpoint
2019-11-13 09:17:00 +00:00
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (NSXPCListenerEndpoint *) endpoint
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) setEndpoint: (NSXPCListenerEndpoint *) endpoint
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (NSXPCInterface *) exportedInterface
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) setExportInterface: (NSXPCInterface *)exportedInterface
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (NSXPCInterface *) remoteObjectInterface
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) setRemoteObjectInterface: (NSXPCInterface *)remoteObjectInterface
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (id) remoteObjectProxy
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) setRemoteObjectProxy: (id)remoteObjectProxy
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (id) remoteObjectProxyWithErrorHandler:(GSXPCProxyErrorHandler)handler
2019-11-13 09:17:00 +00:00
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (id) synchronousRemoteObjectProxyWithErrorHandler:
(GSXPCProxyErrorHandler)handler
2019-11-13 09:17:00 +00:00
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (GSXPCInterruptionHandler) interruptionHandler
{
return NULL;
}
- (void) setInterruptionHandler: (GSXPCInterruptionHandler)handler
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (GSXPCInvalidationHandler) invalidationHandler
{
return NULL;
}
- (void) setInvalidationHandler: (GSXPCInvalidationHandler)handler
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) resume
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) suspend
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) invalidate
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (NSUInteger) auditSessionIdentifier
{
return (NSUInteger)[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (pid_t) processIdentifier
2019-11-13 09:17:00 +00:00
{
return (pid_t)(uintptr_t)[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (uid_t) effectiveUserIdentifier
2019-11-13 09:17:00 +00:00
{
return (uid_t)(uintptr_t)[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (gid_t) effectiveGroupIdentifier
2019-11-13 09:17:00 +00:00
{
return (gid_t)(uintptr_t)[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
@end
@implementation NSXPCListener
+ (NSXPCListener *) serviceListener
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
+ (NSXPCListener *) anonymousListener
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (instancetype) initWithMachServiceName:(NSString *)name
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (id <NSXPCListenerDelegate>) delegate
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) setDelegate: (id <NSXPCListenerDelegate>) delegate
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (NSXPCListenerEndpoint *) endpoint
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) setEndpoint: (NSXPCListenerEndpoint *)endpoint
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) resume
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) suspend
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) invalidate
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
@end
@implementation NSXPCInterface
+ (NSXPCInterface *) interfaceWithProtocol: (Protocol *)protocol
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (Protocol *) protocol
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) setProtocol: (Protocol *)protocol
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) setClasses: (NSSet *)classes
forSelector: (SEL)sel
argumentIndex: (NSUInteger)arg
ofReply: (BOOL)ofReply
2019-11-13 09:17:00 +00:00
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (NSSet *) classesForSelector: (SEL)sel
argumentIndex: (NSUInteger)arg
ofReply: (BOOL)ofReply
2019-11-13 09:17:00 +00:00
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) setInterface: (NSXPCInterface *)ifc
forSelector: (SEL)sel
argumentIndex: (NSUInteger)arg
ofReply: (BOOL)ofReply
2019-11-13 09:17:00 +00:00
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (NSXPCInterface *) interfaceForSelector: (SEL)sel
argumentIndex: (NSUInteger)arg
ofReply: (BOOL)ofReply
2019-11-13 09:17:00 +00:00
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
@end
@implementation NSXPCListenerEndpoint
- (instancetype) initWithCoder: (NSCoder *)coder
{
return [self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
- (void) encodeWithCoder: (NSCoder *)coder
{
[self notImplemented: _cmd];
2019-11-13 09:17:00 +00:00
}
2019-11-13 07:31:09 +00:00
@end