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

  1. /*
  2.  *    ISDN/POTS Project
  3.  *    Copyright 1991, 1992 NeXT, Inc.
  4.  *
  5.  *    NXPhoneCall.h (Client side)
  6.  *
  7.  *    Interface declaration for NXPhoneCall object.
  8.  *    
  9.  *    A NXPhoneCall object represents a virtual call over a Channel.  It
  10.  *    receives all incoming signalling information from the phone
  11.  *    network and is responsible for sending outgoing messages to
  12.  *    the network.  It is possible to have multiple virtual call
  13.  *    associated with a given Channel.
  14.  *
  15.  *     A call object must be associated with a Channel object in order
  16.  *    to receive signalling.
  17.  */
  18. #import <objc/Object.h>
  19. #impG"phoneError.h"
  20. #import "phoneTypes.h"
  21.  
  22.  
  23. @interface NXPhoneCall : Object
  24. {
  25.     void *_private;
  26. }
  27.  
  28. @end
  29.  
  30. /*
  31.  * Remote methods.
  32.  *    
  33.  * The Call object forwards these methods to the phone server.
  34.  */
  35. @interface NXPhoneCall (RemoteMethods)
  36. - init;
  37. - initType:(NXPhoneCallType)t;
  38. - (NXPhoneCallType)type;
  39. - (void)setType:(NXPhoneCallType)t;
  40. - (void)useHDLC: (BOOL)flag;
  41. - (void)hangUp;
  42. - (void)pickUp;
  43. - (void)transmitData: (void *)buf length: (int)buf_length;
  44. - (void)dialDigits: (char *)digits;
  45. - (void)hold;
  46. - (void)resume;
  47.  
  48. /*
  49.  *    Get the state of the channel
  50.  */
  51. - (NXPhoneCallState)state;
  52.  
  53. @end
  54.  
  55. /*
  56.  *  Remote call-back methods.
  57.  *   
  58.  *   These methods should be implemented by the subclass of Call.
  59.  *   They are sent from the POTS/ISDN server to the Call object.
  60.  */
  61. @interface NXPhoneCall (RemoteCallBackMethods)
  62. - (void)error: (SEL)lastOperation reason: (NXPhoneError)val;
  63. - (void)remoteBusy;
  64. - (void)remoteHangup;
  65. - (void)remoteRing;
  66. - (void)remotePickup;
  67. - (void)toneReceived: (int)t;
  68. - (void)ring;
  69. - (void)dialToneReceived;
  70. - (void)dialingComplete;
  71. - (void)dataReceived: (void *)buf length: (int)buf_length;
  72. - (void)callReleased;
  73. - (void)callConnected;
  74.  
  75.  
  76. @end
  77.