升龙物业 老版本 ocx IPO, 加密狗 转值班电话

TFB.idl 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. // TFB.idl : ActiveX 控件项目的类型库源。
  2. // 此文件将由 MIDL 编译器工具处理以
  3. // 产生类型库(TFB.tlb),该类型库将成为
  4. // TFB.ocx.
  5. #include <olectl.h>
  6. #include <idispids.h>
  7. [ uuid(50AC0170-A32B-40E4-B647-AE4306A300B4), version(1.0),
  8. control ]
  9. library TFBLib
  10. {
  11. importlib(STDOLE_TLB);
  12. // CTFBCtrl 的主调度接口
  13. [
  14. uuid(C442E54C-F74F-4921-99C6-D70F3DA6A6C9)
  15. ]
  16. dispinterface _DTFB
  17. {
  18. properties:
  19. methods:
  20. // 操作方法接口
  21. [id(1), helpstring("操作方法")] void Login(void);
  22. [id(3), helpstring("操作方法")] void Logout(void);
  23. [id(6), helpstring("操作方法")] void SayBusy(LONG a_nBusyCode);
  24. [id(7), helpstring("操作方法")] void SayFree(void);
  25. [id(8), helpstring("操作方法")] void ResetAgent(void);
  26. [id(9), helpstring("操作方法")] void MakeCall(BSTR a_sTelNumber, BSTR a_sCallerNum);
  27. [id(12), helpstring("操作方法")] void AnswerCall(void);
  28. [id(13), helpstring("操作方法")] void DropCall(void);
  29. [id(14), helpstring("操作方法")] void MuteOn(void);
  30. [id(15), helpstring("操作方法")] void MuteOff(void);
  31. [id(16), helpstring("操作方法")] void Hold(void);
  32. [id(17), helpstring("操作方法")] void Retrieve(void);
  33. [id(18), helpstring("操作方法")] void Instead(LONG a_nTargetAgent);
  34. [id(19), helpstring("操作方法")] void Transfer(BSTR a_sTelNumber, BSTR a_sCallerNum);
  35. [id(20), helpstring("操作方法")] void CancelTransfer(void);
  36. [id(21), helpstring("操作方法")] void TransferToIvr(BSTR a_sIvrFilePath, LONG a_nNode, VARIANT_BOOL a_bNeedReturn, BSTR a_sAssociateData);
  37. [id(22), helpstring("操作方法")] void MethodReserved(void);
  38. [id(23), helpstring("操作方法")] void Listen(LONG a_nTargetAgent);
  39. [id(24), helpstring("操作方法")] void Insert(LONG a_nTargetAgent);
  40. [id(25), helpstring("操作方法")] void Intercept(LONG a_nTargetAgent);
  41. [id(26), helpstring("操作方法")] void Break(LONG a_nTargetAgent);
  42. [id(27), helpstring("操作方法")] void ForceAgentState(LONG a_nTargetAgent, LONG a_nControlType);
  43. [id(28), helpstring("操作方法")] void Meeting(BSTR a_sTelNumber, BSTR a_sCallerNum);
  44. [id(29), helpstring("操作方法")] void CancelMeeting(void);
  45. [id(30), helpstring("操作方法")] void SendFax(BSTR a_sFilePath);
  46. [id(31), helpstring("操作方法")] void RecvFax(BSTR a_sRecvFilePath);
  47. // 业务方法接口
  48. [id(4), helpstring("业务方法")] BSTR GetVersion(void);
  49. [id(32), helpstring("业务方法")] VARIANT_BOOL GetAutoReconnect(void);
  50. [id(33), helpstring("业务方法")] VARIANT_BOOL GetAutoAnswer(void);
  51. [id(34), helpstring("业务方法")] BSTR GetAgentInfo(void);
  52. [id(35), helpstring("业务方法")] LONG GetAgentState(void);
  53. [id(36), helpstring("业务方法")] LONG GetAgentLineState(void);
  54. [id(37), helpstring("业务方法")] LONG GetAgentLinkState(void);
  55. [id(38), helpstring("业务方法")] LONG GetCallID(void);
  56. [id(39), helpstring("业务方法")] BSTR GetOuterNumber(void);
  57. [id(40), helpstring("业务方法")] BSTR GetCallInQueue(void);
  58. [id(41), helpstring("业务方法")] BSTR GetAllCallInQueue(void);
  59. [id(42), helpstring("业务方法")] BSTR GetRecordFilePath(void);
  60. [id(43), helpstring("业务方法")] BSTR GetLeaveWordFilePath(void);
  61. [id(44), helpstring("业务方法")] BSTR GetFaxFilePath(void);
  62. [id(45), helpstring("业务方法")] BSTR GetLogFileDirectory(void);
  63. [id(46), helpstring("业务方法")] VARIANT_BOOL SubscribeData(LONG nType, LONG nParam);
  64. [id(47), helpstring("业务方法")] VARIANT_BOOL CancelSubscribeData(LONG nType, LONG nParam);
  65. [id(48), helpstring("业务方法")] void SetAssociateData(BSTR a_sCaption, BSTR a_sContent);
  66. [id(49), helpstring("业务方法")] BSTR GetAssociateData(BSTR a_sCaption);
  67. [id(50), helpstring("业务方法")] BSTR QueryAgentListByAlerting(void);
  68. [id(51), helpstring("业务方法")] BSTR QueryAgentListByTalking(void);
  69. [id(52), helpstring("业务方法")] BSTR QueryAgentListByBusy(void);
  70. [id(53), helpstring("业务方法")] BSTR QueryAgentListByFree(void);
  71. [id(5), helpstring("业务方法")] BSTR GetPromptByAgentState(LONG a_nAgentState);
  72. [id(59), helpstring("业务方法")] BSTR GetPromptByAgentLineState(LONG a_nAgentLineState);
  73. [id(60), helpstring("业务方法")] BSTR GetPromptByAgentLinkState(LONG a_nAgentLinkState);
  74. [id(54), helpstring("业务方法")] BSTR GetPromptByBusyCode(LONG a_nBusyCode);
  75. [id(2), helpstring("业务方法")] BSTR GetErrorMsg(LONG a_nErrCode);
  76. [id(55), helpstring("业务方法")] void sysSetAutoReconnect(VARIANT_BOOL a_bAutoReconnect);
  77. [id(56), helpstring("业务方法")] void sysSetAutoAnswer(VARIANT_BOOL a_bAutoAnswer);
  78. [id(57), helpstring("业务方法")] void sysSetLogFileDirectory(BSTR a_sLogFileDir);
  79. [id(58), helpstring("业务方法")] void sysLog(VARIANT_BOOL a_bOpen);
  80. [id(61), helpstring("业务方法")] void sysShowLogInfo(VARIANT_BOOL a_bFlag);
  81. [id(62), helpstring("业务方法")] void ForceAgentOut(LONG a_nAgentId, BSTR a_sReason);
  82. [id(63), helpstring("业务方法")] void Cancel(void);
  83. [id(64), helpstring("业务方法")] void ConsultaionCall(BSTR a_sTelNumber, BSTR a_sCallerNum);
  84. [id(65), helpstring("业务方法")] void ConfirmTransfer(LONG a_nType);
  85. [id(152), helpstring("业务方法")] void SetAgentID(LONG newVal);
  86. [id(153), helpstring("业务方法")] void SetAgentGroup(BSTR newVal);
  87. [id(154), helpstring("业务方法")] void SetAgentType(LONG newVal);
  88. [id(155), helpstring("业务方法")] void SetAgentExten(LONG newVal);
  89. [id(156), helpstring("业务方法")] void SetAcdAddr(BSTR newVal);
  90. [id(157), helpstring("业务方法")] void SetAcdPort(LONG newVal);
  91. };
  92. // CTFBCtrl 的事件调度接口
  93. [
  94. uuid(87EA9BF3-2AF0-44D4-BAFA-BDBAC069AE49)
  95. ]
  96. dispinterface _DTFBEvents
  97. {
  98. properties:
  99. // 事件接口没有任何属性
  100. methods:
  101. [id(101), helpstring("事件")] void Evt_Login(VARIANT_BOOL a_bFlag, LONG a_nErrCode);
  102. [id(103), helpstring("事件")] void Evt_Logout(VARIANT_BOOL a_bFlag, LONG a_nErrCode);
  103. [id(140), helpstring("事件")] void Evt_Requested(ULONG a_nCallID);
  104. [id(104), helpstring("事件")] void Evt_AgentStateChanged(LONG a_nAgentState);
  105. [id(130), helpstring("事件")] void Evt_AgentLineStateChanged(LONG a_nLineState);
  106. [id(131), helpstring("事件")] void Evt_AgentLinkStateChanged(LONG a_nLinkState);
  107. [id(141), helpstring("事件")] void Evt_SubDataChanged(LONG a_nType, LONG a_nSubData1,
  108. LONG a_nSubData2, BSTR a_sSubStr);
  109. [id(142), helpstring("事件")] void Evt_SubFaxProgress(ULONG a_nFaxProgress);
  110. [id(106), helpstring("事件")] void Evt_SayBusy(VARIANT_BOOL a_bFlag, LONG a_nErrCode);
  111. [id(107), helpstring("事件")] void Evt_SayFree(VARIANT_BOOL a_bFlag, LONG a_nErrCode);
  112. [id(108), helpstring("事件")] void Evt_ResetAgent(VARIANT_BOOL a_bFlag, LONG a_nErrCode);
  113. [id(109), helpstring("事件")] void Evt_MakeCall(VARIANT_BOOL a_bFlag, LONG a_nType,
  114. BSTR a_sTelNumber, ULONG a_nCallID,
  115. LONG a_nErrCode);
  116. [id(144), helpstring("事件")] void Evt_Agent_Free(void);
  117. [id(135), helpstring("事件")] void Evt_Line_Offering(BSTR a_sOuterNumber,
  118. LONG a_nType,
  119. ULONG a_nCallID,
  120. ULONG a_nInfoEx);
  121. [id(136), helpstring("事件")] void Evt_Line_RingBack(BSTR a_sOuterNumber,
  122. ULONG a_nCallID);
  123. [id(137), helpstring("事件")] void Evt_Line_Talk(ULONG a_nCallID);
  124. [id(143), helpstring("事件")] void Evt_Line_HangUp(LONG a_nOrder, ULONG a_nCallID);
  125. [id(111), helpstring("事件")] void Evt_AnswerCall(VARIANT_BOOL a_bFlag,
  126. ULONG a_nCallID,
  127. LONG a_nErrCode);
  128. [id(112), helpstring("事件")] void Evt_DropCall(VARIANT_BOOL a_bFlag,
  129. LONG a_nOrder,
  130. ULONG a_nCallID,
  131. LONG a_nErrCode);
  132. [id(113), helpstring("事件")] void Evt_MuteOn(VARIANT_BOOL a_bFlag,
  133. ULONG a_nCallID,
  134. LONG a_nErrCode);
  135. [id(114), helpstring("事件")] void Evt_MuteOff(VARIANT_BOOL a_bFlag,
  136. ULONG a_nCallID,
  137. LONG a_nErrCode);
  138. [id(115), helpstring("事件")] void Evt_Hold(VARIANT_BOOL a_bFlag,
  139. ULONG a_nCallID,
  140. LONG a_nErrCode);
  141. [id(116), helpstring("事件")] void Evt_Retrieve(VARIANT_BOOL a_bFlag,
  142. ULONG a_nCallID,
  143. LONG a_nErrCode);
  144. [id(117), helpstring("事件")] void Evt_Instead(VARIANT_BOOL a_bFlag,
  145. ULONG a_nCallID,
  146. LONG a_nErrCode);
  147. [id(132), helpstring("事件")] void Evt_CallInQueue_Changed(LONG a_nCallInNum);
  148. [id(138), helpstring("事件")] void Evt_AllCallInQueue_Changed(BSTR a_sAllCallInQueueInfo);
  149. [id(133), helpstring("事件")] void Evt_RecordInform(BSTR a_sRecordFilePath, ULONG a_nCallID);
  150. [id(118), helpstring("事件")] void Evt_Transfer(VARIANT_BOOL a_bFlag,
  151. ULONG a_nCallID,
  152. LONG a_nErrCode);
  153. [id(119), helpstring("事件")] void Evt_CancelTransfer(VARIANT_BOOL a_bFlag,
  154. ULONG a_nCallID,
  155. LONG a_nErrCode);
  156. [id(120), helpstring("事件")] void Evt_TransferToIvr(VARIANT_BOOL a_bFlag,
  157. ULONG a_nCallID,
  158. LONG a_nErrCode);
  159. [id(121), helpstring("事件")] void Evt_Listen(VARIANT_BOOL a_bFlag,
  160. ULONG a_nCallID,
  161. LONG a_nErrCode);
  162. [id(122), helpstring("事件")] void Evt_Insert(VARIANT_BOOL a_bFlag,
  163. ULONG a_nCallID,
  164. LONG a_nErrCode);
  165. [id(123), helpstring("事件")] void Evt_Intercept(VARIANT_BOOL a_bFlag,
  166. ULONG a_nCallID,
  167. LONG a_nErrCode);
  168. [id(124), helpstring("事件")] void Evt_Break(VARIANT_BOOL a_bFlag,
  169. ULONG a_nCallID,
  170. LONG a_nErrCode);
  171. [id(125), helpstring("事件")] void Evt_ForceAgentState(VARIANT_BOOL a_bFlag,
  172. ULONG a_nCallID,
  173. LONG a_nErrCode);
  174. [id(126), helpstring("事件")] void Evt_Meeting(VARIANT_BOOL a_bFlag,
  175. ULONG a_nCallID,
  176. LONG a_nErrCode);
  177. [id(127), helpstring("事件")] void Evt_CancelMeeting(VARIANT_BOOL a_bFlag,
  178. ULONG a_nCallID,
  179. LONG a_nErrCode);
  180. [id(128), helpstring("事件")] void Evt_SendFax(VARIANT_BOOL a_bFlag,
  181. ULONG a_nCallID,
  182. LONG a_nErrCode);
  183. [id(129), helpstring("事件")] void Evt_RecvFax(VARIANT_BOOL a_bFlag,
  184. ULONG a_nCallID,
  185. LONG a_nErrCode);
  186. [id(102), helpstring("事件")] void Evt_SysError(LONG a_nErrCode);
  187. [id(105), helpstring("事件")] void Evt_SysWarning(BSTR a_sWarningMsg);
  188. [id(139), helpstring("事件")] void Evt_ShowInfo(BSTR a_sShowInfo);
  189. [id(145), helpstring("事件")] void Evt_ForcAgentOut(VARIANT_BOOL a_bFlag, LONG a_nErrCode);
  190. [id(146), helpstring("事件")] void Evt_LogOutByForce(LONG a_nForceAgentId, BSTR a_sReson);
  191. [id(147), helpstring("事件")] void Evt_Cancel(VARIANT_BOOL a_bFlag, ULONG a_nCallID, LONG a_nErrCode);
  192. [id(148), helpstring("事件")] void Evt_Consult(VARIANT_BOOL a_bFlag, ULONG a_nCallID, LONG a_nErrCode);
  193. [id(149), helpstring("事件")] void Evt_Confirm(VARIANT_BOOL a_bFlag, ULONG a_nCallID, LONG a_nErrCode);
  194. [id(150), helpstring("事件")] void Evt_Line_TalkInfo(ULONG a_nCallID, BSTR a_sOuterNumber);
  195. };
  196. // CTFBCtrl 的类信息
  197. [
  198. uuid(B4AE3B7A-B9A9-4B05-8457-FDFFB66D8CBE)
  199. ]
  200. coclass TFB
  201. {
  202. [default] dispinterface _DTFB;
  203. [default, source] dispinterface _DTFBEvents;
  204. };
  205. };