home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / phonekit / NXPhoneChannel.h < prev    next >
Text File  |  1992-07-08  |  1KB  |  53 lines

  1. /*
  2.  *    ISDN/POTS Project
  3.  *    Copyright 1991, NeXT, Inc.
  4.  * 
  5.  *    NXPhoneChannel.h (Client side)
  6.  *
  7.  *    Interface declaration for NXPhoneChannel object.
  8.  *
  9.  *    NXPhoneChannel objects and their subclasses are used to facilitate
  10.  *    communication between the POTS/ISDN server anF's clients.
  11.  *
  12.  *    A NXPhoneChannel object is the bearer of one or more virtual calls.
  13.  *    Each virtual call is represented by a NXPhoneCall object. 
  14.  */
  15. #import <objc/Object.h>
  16. #import "NXPhoneCall.h"
  17. #import "phoneTypes.h"
  18.  
  19.  
  20. @interface NXPhoneChannel : Object
  21. {
  22.     void *_private;
  23. }
  24.  
  25. - init;
  26. - initType: (NXPhoneChannelType)chan;
  27.  
  28. @end
  29.  
  30. /*
  31.  *   These methods are forwarded to the phone server.
  32.  */
  33. @interface NXPhoneChannel (RemoteMethods)
  34.   
  35.    
  36. /*
  37.  *   Call management
  38.  */
  39. - (void)setType: (NXPhoneChannelType)c;
  40. - (NXPhoneChannelType)type;        
  41. - (void) addCall: call;
  42. - (void) removeCall: call;
  43. - activeCall;
  44. @end
  45.  
  46. @interface NXPhoneChannel (RemoteCallBackMethods)
  47.  
  48. - allocateIncomingCallOfType:(NXPhoneCallType)t;
  49. - (BOOL)acceptCall: newCall;
  50. - (void)channelError: (NXPhoneError)reason;
  51.  
  52. @end
  53.