|
Samond Classes Library 1.1.6-RELEASE build 132
|
00001 // 00002 // SCStreamDelegateObject.h 00003 // scl 00004 // 00005 // Created by Viacheslav Smolensky on 05.05.12. 00006 // Copyright (c) 2007 - 2014 by Samond Development Corporation. All rights reserved. 00007 // 00008 00016 #import <scl/SCDelegateObject.h> 00017 #import <scl/SCStreamDelegate.h> 00018 00019 #define SCtreamDelegateObjectClass @"SCStremDelegateObject" ///< SCStreamDelegateObject class name 00020 00027 @interface SCStreamDelegateObject : SCDelegateObject <SCStreamDelegate> { 00028 00029 } 00030 00031 #pragma mark - 00032 #pragma mark Stream Error Events 00033 00039 - (void)stream:(SCStream *)stream didDetectError:(SCStreamStatus)error; 00040 00041 #pragma mark - 00042 #pragma mark Prior Events Methods 00043 00048 - (void)willReadObjectFromStream:(SCStream *)stream; 00049 00055 - (void)stream:(SCStream *)stream willWriteObject:(id<SCStreamProtocol>)object; 00056 00063 - (void)stream:(SCStream *)stream willReadBytes:(SCUSize)bytes toBuffer:(void *)buffer; 00064 00071 - (void)stream:(SCStream *)stream willWriteBytes:(SCUSize)bytes fromBuffer:(const void *)buffer; 00072 00079 - (void)stream:(SCStream *)stream willOpenWithPath:(NSString *)path mode:(SCFileStreamOpenMode)mode; 00080 00085 - (void)willCloseStream:(SCStream *)stream; 00086 00093 - (void)stream:(SCFileStream *)stream willSetOffset:(SCLong)offset 00094 whence:(SCFileStreamOffsetWhence)whence; 00095 00100 - (void)willRewindStream:(SCFileStream *)stream; 00101 00106 - (void)willReadStringFromStream:(SCStream *)stream; 00107 00114 - (void)stream:(SCStream *)stream willWriteString:(NSString *)string 00115 encoding:(NSStringEncoding)encoding; 00116 00124 - (void)stream:(SCStream *)stream willReadStringWithEncoding:(NSStringEncoding)encoding 00125 max:(SCUInteger)max; 00126 00127 #pragma mark - 00128 #pragma mark Completed Events Methods 00129 00135 - (void)stream:(SCStream *)stream didFinishReadingObject:(id<SCStreamProtocol>)object; 00136 00142 - (void)stream:(SCStream *)stream didFinishWritingObject:(id<SCStreamProtocol>)object; 00143 00150 - (void)stream:(SCStream *)stream didFinishReadingBytes:(SCUSize)bytes toBuffer:(void *)buffer; 00151 00158 - (void)stream:(SCStream *)stream didFinishWritingBytes:(SCUSize)bytes 00159 fromBuffer:(const void *)buffer; 00160 00165 - (void)didFinishOpeningStream:(SCStream *)stream; 00166 00174 - (void)stream:(SCStream *)stream didFinishOpeningWithPath:(NSString *)path 00175 mode:(SCFileStreamOpenMode)mode successfully:(BOOL)successfully; 00176 00181 - (void)didFinishClosingStream:(SCStream *)stream; 00182 00189 - (void)stream:(SCFileStream *)stream didFinishSettingOffset:(SCLong)offset 00190 whence:(SCFileStreamOffsetWhence)whence; 00191 00196 - (void)didFinishRewindingStream:(SCFileStream *)stream; 00197 00203 - (void)stream:(SCStream *)stream didFinishReadingString:(NSString *)string; 00204 00211 - (void)stream:(SCStream *)stream didFinishWritingString:(NSString *)string 00212 encoding:(NSStringEncoding)encoding; 00213 00222 - (void)stream:(SCStream *)stream didFinishReadingString:(NSString *)string 00223 encoding:(NSStringEncoding)encoding max:(SCUInteger)max; 00224 00225 @end
1.7.3