Update of /cvsroot/scopeapp/scopeapp/src
In directory sc8-pr-cvs1:/tmp/cvs-serv17167/src
Modified Files:
InputSampler.h
Log Message:
Add a new InputErrorHandler protocol, containing a function to display error
messages and (if necessary) close the input handler and the objects using it.
Index: InputSampler.h
===================================================================
RCS file: /cvsroot/scopeapp/scopeapp/src/InputSampler.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** InputSampler.h 5 Dec 2002 15:08:10 -0000 1.6
--- InputSampler.h 25 Apr 2003 07:23:50 -0000 1.7
***************
*** 46,49 ****
--- 46,62 ----
@end
+ @protocol InputErrorHandler
+
+ // Display an alert when the InputSampler has encountered an error.
+ // If fatal, the InputHandler should destroy the InputSampler and exit
+ // when the error has finished displaying.
+ -(int) displayError: (NSString*) title
+ withExtraText: (NSString*) subtitle
+ withDefaultButton: (NSString*) defaultButton
+ withCancelButton: (NSString*) cancelButton
+ isFatal: (BOOL) fatal;
+
+ @end
+
// **********
// Protocol for an object which samples sound data
***************
*** 51,56 ****
@protocol InputSampler
! // init a sampler with a given owner object
! -(id) initWithOwner: (id <InputHandler, NSObject>) owner;
// return YES if the sampler has an input settings dialog it can show
--- 64,70 ----
@protocol InputSampler
! // init a sampler with a given owner object, and an object which handles errors
! -(id) initWithOwner: (id <InputHandler, NSObject>) owner
! withErrorHandler: (id <InputErrorHandler, NSObject>) errorHandler;
// return YES if the sampler has an input settings dialog it can show
|