Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

139 lines
4.0 KiB

  1. /************************************************************************
  2. * *
  3. * INTEL CORPORATION PROPRIETARY INFORMATION *
  4. * *
  5. * This software is supplied under the terms of a license *
  6. * agreement or non-disclosure agreement with Intel Corporation *
  7. * and may not be copied or disclosed except in accordance *
  8. * with the terms of that agreement. *
  9. * *
  10. * Copyright (C) 1997 Intel Corp. All Rights Reserved *
  11. * *
  12. * $Archive: S:\sturgeon\src\gki\vcs\dcall.h_v $
  13. * *
  14. * $Revision: 1.3 $
  15. * $Date: 10 Jan 1997 16:13:46 $
  16. * *
  17. * $Author: CHULME $
  18. * *
  19. * $Log: S:\sturgeon\src\gki\vcs\dcall.h_v $
  20. *
  21. * Rev 1.3 10 Jan 1997 16:13:46 CHULME
  22. * Removed MFC dependency
  23. *
  24. * Rev 1.2 17 Dec 1996 18:22:18 CHULME
  25. * Switch src and destination fields on ARQ for Callee
  26. *
  27. * Rev 1.1 22 Nov 1996 15:25:10 CHULME
  28. * Added VCS log to the header
  29. *************************************************************************/
  30. // dcall.h : interface of the CCall class
  31. // See dcall.cpp for the implementation of this class
  32. /////////////////////////////////////////////////////////////////////////////
  33. #ifndef DCALL_H
  34. #define DCALL_H
  35. class CRegistration;
  36. class CCall
  37. {
  38. private:
  39. CallType m_callType;
  40. SeqAliasAddr *m_pRemoteInfo;
  41. TransportAddress m_RemoteCallSignalAddress;
  42. SeqAliasAddr *m_pDestExtraCallInfo;
  43. TransportAddress m_LocalCallSignalAddress;
  44. BandWidth m_bandWidth;
  45. CallReferenceValue m_callReferenceValue;
  46. ConferenceIdentifier m_conferenceID;
  47. BOOL m_activeMC;
  48. BOOL m_answerCall;
  49. GUID m_CallIdentifier;
  50. unsigned short m_usTimeTilStatus;
  51. UINT m_uRetryResetCount;
  52. UINT m_uRetryCountdown;
  53. UINT m_uMaxRetryCount;
  54. CallReturnInfo m_CallReturnInfo;
  55. BandWidth m_CFbandWidth;
  56. unsigned short m_CFirrFrequency;
  57. enum {
  58. GK_ADM_PENDING,
  59. GK_CALL,
  60. GK_DISENG_PENDING,
  61. GK_DISENGAGED,
  62. GK_BW_PENDING
  63. } m_State;
  64. RasMessage *m_pRasMessage;
  65. unsigned short m_usRetryCount;
  66. public:
  67. CCall();
  68. ~CCall();
  69. void SetCallIdentifier(LPGUID pID)
  70. {
  71. m_CallIdentifier = *pID;
  72. }
  73. HANDLE GetHCall(void)
  74. {
  75. return (m_CallReturnInfo.hCall);
  76. }
  77. void SetCallType(unsigned short usChoice)
  78. {
  79. m_callType.choice = usChoice;
  80. }
  81. HRESULT AddRemoteInfo(AliasAddress& rvalue);
  82. void SetRemoteCallSignalAddress(TransportAddress *pTA)
  83. {
  84. m_RemoteCallSignalAddress = *pTA;
  85. }
  86. HRESULT AddDestExtraCallInfo(AliasAddress& rvalue);
  87. HRESULT SetLocalCallSignalAddress(unsigned short usCallTransport);
  88. void SetBandWidth(BandWidth bw)
  89. {
  90. m_bandWidth = bw;
  91. }
  92. void SetCallReferenceValue(CallReferenceValue crv)
  93. {
  94. m_callReferenceValue = crv;
  95. }
  96. void SetConferenceID(ConferenceIdentifier *pCID);
  97. void GenerateConferenceID(void);
  98. void SetActiveMC(BOOL amc)
  99. {
  100. m_activeMC = amc;
  101. }
  102. void SetAnswerCall(BOOL ac)
  103. {
  104. m_answerCall = ac;
  105. }
  106. RasMessage *GetRasMessage(void)
  107. {
  108. return (m_pRasMessage);
  109. }
  110. HRESULT AdmissionRequest(void);
  111. HRESULT AdmissionConfirm(RasMessage *pRasMessage);
  112. HRESULT AdmissionReject(RasMessage *pRasMessage);
  113. HRESULT BandwidthRequest(void);
  114. HRESULT BandwidthConfirm(RasMessage *pRasMessage);
  115. HRESULT BandwidthReject(RasMessage *pRasMessage);
  116. HRESULT SendBandwidthConfirm(RasMessage *pRasMessage);
  117. HRESULT DisengageRequest(void);
  118. HRESULT DisengageConfirm(RasMessage *pRasMessage);
  119. HRESULT DisengageReject(RasMessage *pRasMessage);
  120. HRESULT SendDisengageConfirm(RasMessage *pRasMessage);
  121. HRESULT Retry(void);
  122. HRESULT SendInfoRequestResponse(CallInfoStruct *pCallInfo, RasMessage *pRasMessage, BOOL fThisCallOnly);
  123. BOOL MatchSeqNum(RequestSeqNum seqNum);
  124. BOOL MatchCRV(CallReferenceValue crv);
  125. };
  126. #endif // DCALL_H
  127. /////////////////////////////////////////////////////////////////////////////