]> err.no Git - sope/blob - libFoundation/Foundation/NSStream.m
fixed some NGMail framework build issue
[sope] / libFoundation / Foundation / NSStream.m
1 /* 
2    NSStream.m
3
4    Copyright (C) 2003 SKYRIX Software AG, Helge Hess.
5    All rights reserved.
6    
7    Author: Helge Hess <helge.hess@opengroupware.org>
8    
9    This file is part of libFoundation.
10    
11    Permission to use, copy, modify, and distribute this software and its
12    documentation for any purpose and without fee is hereby granted, provided
13    that the above copyright notice appear in all copies and that both that
14    copyright notice and this permission notice appear in supporting
15    documentation.
16    
17    We disclaim all warranties with regard to this software, including all
18    implied warranties of merchantability and fitness, in no event shall
19    we be liable for any special, indirect or consequential damages or any
20    damages whatsoever resulting from loss of use, data or profits, whether in
21    an action of contract, negligence or other tortious action, arising out of
22    or in connection with the use or performance of this software.
23 */
24
25 #include <Foundation/NSStream.h>
26 #include <common.h>
27
28 @implementation NSStream
29
30 + (void)getStreamsToHost:(NSHost *)_host port:(int)_port 
31   inputStream:(NSInputStream **)_in
32   outputStream:(NSOutputStream **)_out
33 {
34     // TODO
35     if (_in) *_in = nil;
36     if (_in) *_in = nil;
37     [self notImplemented:_cmd];
38 }
39
40 /* accessors */
41
42 - (void)setDelegate:(id)_delegate
43 {
44     [self subclassResponsibility:_cmd];
45 }
46 - (id)delegate
47 {
48     return nil;
49 }
50
51 - (NSError *)streamError
52 {
53     return nil;
54 }
55 - (NSStreamStatus)streamStatus
56 {
57     return NSStreamStatusError;
58 }
59
60 /* properties */
61
62 - (BOOL)setProperty:(id)_value forKey:(NSString *)_key
63 {
64     return NO;
65 }
66 - (id)propertyForKey:(NSString *)_key
67 {
68     return nil;
69 }
70
71 /* operations */
72
73 - (void)open
74 {
75 }
76 - (void)close
77 {
78 }
79
80 /* runloop */
81
82 - (void)scheduleInRunLoop:(NSRunLoop *)_runloop forMode:(NSString *)_mode 
83 {
84     [self subclassResponsibility:_cmd];
85 }
86 - (void)removeFromRunLoop:(NSRunLoop *)_runloop forMode:(NSString *)_mode 
87 {
88     [self subclassResponsibility:_cmd];
89 }
90
91 @end /* NSStream */
92
93 /*
94   Local Variables:
95   c-basic-offset: 4
96   tab-width: 8
97   End:
98 */