telephonymgr.pp 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199
  1. {$MACRO ON}
  2. {$define Rsc := }
  3. (******************************************************************************
  4. *
  5. * Copyright (c) 1999-2000 Palm, Inc. or its subsidiaries.
  6. * All rights reserved.
  7. *
  8. * File: TelephonyMgr.h
  9. *
  10. * Release: Palm OS SDK 4.0 (63220)
  11. *
  12. * Description:
  13. * This is the header file for the Telephony Manager
  14. * for Palm OS Wireless Telephony Add-on.
  15. * It defines the Telephony Manager public functions.
  16. *
  17. * History:
  18. * Created by Gilles Fabre
  19. * 08/05/99 gfa Initial version.
  20. * 05/02/00 gfa Shared lib, 2nd API version.
  21. *
  22. *****************************************************************************)
  23. unit telephonymgr;
  24. interface
  25. uses palmos, libtraps, errorbase, systemresources, event_, systemmgr, telephonymgrtypes;
  26. // sysMakeROMVersion(major, minor, fix, stage, buildNum)
  27. const
  28. kTelMgrVersionMajor = 1;
  29. kTelMgrVersionMinor = 0;
  30. kTelMgrVersionFix = 3;
  31. kTelMgrVersionBuild = 0;
  32. function kTelMgrVersion(major, minor, fix, stage: UInt8; buildNum: UInt16): UInt32;
  33. const
  34. // TelMgr shared lib internal name
  35. kTelMgrLibName = 'Telephony Library';
  36. // TelMgr shared lib name and creator
  37. kTelMgrDatabaseCreator = sysFileCTelMgrLib;
  38. kTelMgrDatabaseType = sysFileTLibrary;
  39. kTelTelephonyNotification = Rsc('tmgr'); // telephony notification
  40. kTelTelephonyEvent = $1200; // telephony event
  41. // Telephony notification IDs
  42. kTelSmsLaunchCmdIncomingMessage = 0; // an incoming SMS
  43. kTelSpcLaunchCmdIncomingCall = Succ(kTelSmsLaunchCmdIncomingMessage); // an incoming voice call
  44. kTelSpcLaunchCmdCallerIDAvailable = Succ(kTelSpcLaunchCmdIncomingCall); // the caller ID is available
  45. kTelSpcLaunchCmdCallReleased = Succ(kTelSpcLaunchCmdCallerIDAvailable); // the call has been released
  46. kTelSpcLaunchCmdCallBusy = Succ(kTelSpcLaunchCmdCallReleased); // the called equipment is busy
  47. kTelSpcLaunchCmdCallConnect = Succ(kTelSpcLaunchCmdCallBusy); // the line is opened
  48. kTelSpcLaunchCmdCallError = Succ(kTelSpcLaunchCmdCallConnect); // the call has encountered an error
  49. kTelEmcLaunchCmdCallReleased = Succ(kTelSpcLaunchCmdCallError); // the call has been released
  50. kTelEmcLaunchCmdCallBusy = Succ(kTelEmcLaunchCmdCallReleased); // the called equipment is busy
  51. kTelEmcLaunchCmdCallConnect = Succ(kTelEmcLaunchCmdCallBusy); // the line is opened
  52. kTelEmcLaunchCmdCallError = Succ(kTelEmcLaunchCmdCallConnect); // the call has encountered an error
  53. kTelLastLaunchCode = Succ(kTelEmcLaunchCmdCallError);
  54. // notification priorities
  55. kTelCallNotificationPriority = 0; // higher priority
  56. kTelSmsNotificationPriority = 1;
  57. // error codes
  58. telErrMsgAllocation = telErrorClass or $01; // couldn't allocate message
  59. telErrUnknown = telErrorClass or $02; // unknown Tel internal error
  60. telErrMemAllocation = telErrorClass or $03; // memory allocation error
  61. telErrResultTimeOut = telErrorClass or $04; // time-out was reached
  62. telErrResultUserCancel = telErrorClass or $05; // user cancelled action
  63. telErrResultBusyResource = telErrorClass or $06; // resource is busy
  64. telErrInvalidAppId = telErrorClass or $07; // don't know that application
  65. telErrTooManyApps = telErrorClass or $08; // applications table is full
  66. telErrSecurity = telErrorClass or $09; // access to ME has not been granted
  67. telErrBufferSize = telErrorClass or $0A; // buffer used to retrieve data is too small
  68. telErrFeatureNotSupported = telErrorClass or $0B; // the feature is not supported by phone/network
  69. telErrPhoneComm = telErrorClass or $0C; // the communication link with the phone is down
  70. telErrPhoneReply = telErrorClass or $0D; // the phone reply syntax is incorrect, check the phone driver!
  71. telErrCommandFailed = telErrorClass or $0E; // the phone couldn't achieve the associated command, check the phone driver!
  72. telErrSpcLineIsBusy = telErrorClass or $0F; // spc call failure events, error field values
  73. telErrPhoneCodeRequired = telErrorClass or $10; // phone code required
  74. telErrNoSIMInserted = telErrorClass or $11; // no SIM inserted
  75. telErrPINRequired = telErrorClass or $12; // PIN is required
  76. telErrPUKRequired = telErrorClass or $13; // PUK is required
  77. telErrSIMFailure = telErrorClass or $14; // the SIM is not working properly
  78. telErrSIMBusy = telErrorClass or $15; // the SIM couldn't reply
  79. telErrSIMWrong = telErrorClass or $16; // the SIM is not accepted by the phone
  80. telErrPassword = telErrorClass or $17; // incorrect password
  81. telErrPIN2Required = telErrorClass or $18; // PIN2 is required
  82. telErrPUK2Required = telErrorClass or $19; // PUK2 is required
  83. telErrPhoneMemAllocation = telErrorClass or $1A; // phone memory is full
  84. telErrInvalidIndex = telErrorClass or $1B; // invalid index when accessing a storage
  85. telErrEntryNotFound = telErrorClass or $1C; // entry not found
  86. telErrPhoneMemFailure = telErrorClass or $1D; // the phone encountered a memory error
  87. telErrInvalidString = telErrorClass or $1E; // bad character in text string
  88. telErrInvalidDial = telErrorClass or $1F; // bad character in dial string
  89. telErrNoNetwork = telErrorClass or $20; // no network available
  90. telErrNetworkTimeOut = telErrorClass or $21; // the network didn't reply within 'normal' time delay
  91. telErrInvalidParameter = telErrorClass or $22; // bad parameter passed to an API
  92. telErrValidityPeriod = telErrorClass or $23; // the specified short message validity period is invalid
  93. telErrCodingScheme = telErrorClass or $24; // the specified short message coding scheme is invalid
  94. telErrPhoneNumber = telErrorClass or $25; // the specified short message smsc or destination phone number is invalid
  95. telErrValueStale = telErrorClass or $26; // information couldn't be retrieved, a copy of last retrieved value was returned
  96. telErrTTaskNotRunning = telErrorClass or $27; // the Telephony Task is not running
  97. telErrPhoneToSIMPINRequired = telErrorClass or $28; // Phone 2 SIM PIN is required
  98. telErrSpecificDrvNotFound = telErrorClass or $29; // the specified driver was not found
  99. telErrGenericDrvNotFound = telErrorClass or $2A; // the generic driver was not found
  100. telErrNoSpecificDrv = telErrorClass or $2B; // no specific driver was specified
  101. telErrSpcLineIsReleased = telErrorClass or $2C; // the call has been released
  102. telErrSpcCallError = telErrorClass or $2D; // the call has encountered an error
  103. telErrNotInstalled = telErrorClass or $2E; // the shared lib couldn't be installed
  104. telErrVersion = telErrorClass or $2F; // the shared lib version doesn't match the application one
  105. telErrSettings = telErrorClass or $30; // bad telephony settings: Phone Panel Prefs doesn't exist or Telephony Profile not (correctly) set
  106. telErrUnavailableValue = telErrorClass or $31; // the asked value can't be retrieved at that time (i.e.: TelSpcGetCallerNumber and no active line)
  107. telErrLimitedCompatibility = telErrorClass or $32; // the current driver is partially compatible with the connected phone
  108. telErrProfileConflict = telErrorClass or $33; // the currently used profile conflicts with the requested profile
  109. telErrLibStillInUse = telErrorClass or $34; // the shared lib is currently being used by another app, don't unload it!
  110. telErrTTaskNotFound = telErrorClass or $35; // couldn't find the specified (by phone driver) telephony task
  111. // constants
  112. kTelInvalidAppId = TelAppID(-1); // this value can't be returned on TelMgr attachement
  113. kTelInfiniteDelay = $FFFFFFFF; // infinite time-out delay
  114. kTelLocationSeparator = ';'; // this symbol is used to separate location string tokens
  115. kTelNwkAutomaticSearch = 0; // network search mode
  116. kTelNwkManualSearch = 1;
  117. kTelNwkCDMA = 0; // network type
  118. kTelNwkGSM = 1;
  119. kTelNwkTDMA = 2;
  120. kTelNwkPDC = 3;
  121. kTelPowBatteryPowered = 0; // battery status
  122. kTelPowBatteryNotPowered = 1;
  123. kTelPowNoBattery = 2;
  124. kTelPowBatteryFault = 3;
  125. kTelSpcCallingLineId = -1; // ID of a calling line. We can't provide a real ID knowing that an error might occur after
  126. //TelSpcCallNumber return... So use this one to 'close' the line
  127. // Messages types
  128. kTelSmsMessageTypeDelivered = 0;
  129. kTelSmsMessageTypeReport = 1;
  130. kTelSmsMessageTypeSubmitted = 2;
  131. kTelSmsMessageTypeManualAck = 3;
  132. kTelSmsMessageAllTypes = 4;
  133. kTelSmsMultiPartExtensionTypeId = $00; // Multipart short messages
  134. kTelSmsNbsExtensionTypeId = $04; // NBS message, with port number in short
  135. kTelSmsNbs2ExtensionTypeId = $05; // NBS message, with port number in long
  136. kTelSmsDefaultProtocol = 0; // sms message transport protocol
  137. kTelSmsFaxProtocol = 1;
  138. kTelSmsX400Protocol = 2;
  139. kTelSmsPagingProtocol = 3;
  140. kTelSmsEmailProtocol = 4;
  141. kTelSmsErmesProtocol = 5;
  142. kTelSmsVoiceProtocol = 6;
  143. kTelSmsAPIVersion = $0001; // SMS api version
  144. kTelSmsStorageSIM = 0; // SMS storage IDs
  145. kTelSmsStoragePhone = 1;
  146. kTelSmsStorageAdaptor = 2;
  147. kTelSmsStorageFirstOem = 3;
  148. kTelSmsCMTMessageType = 0; // Cellular Messaging Teleservice message
  149. kTelSmsCPTMessageType = 1; // Cellular Paging Teleservice message
  150. kTelSmsVMNMessageType = 2; // Voice Mail Notification message
  151. // Delivery report Type (UInt8) - Only used in CDMA & TDMA advanced parameters
  152. kTelSmsStatusReportDeliveryType = 0; // Status report or delivery acknowledge
  153. kTelSmsManualAckDeliveryType = 1; // Manual acknowledge delivery
  154. // Data coding scheme (UInt8)
  155. kTelSms8BitsEncoding = 0;
  156. kTelSmsBitsASCIIEncoding = 1; // ANSI X3.4
  157. kTelSmsIA5Encoding = 2; // CCITTT T.50
  158. kTelSmsIS91Encoding = 3; // TIA/EIA/IS-91 section 3.7.1
  159. kTelSmsUCS2Encoding = 4; // Only supported by GSM
  160. kTelSmsDefaultGSMEncoding = 5; // Only supported by GSM
  161. // Message urgency / priority (UInt8) - Only used in CDMA & TDMA advanced parameters
  162. kTelSmsUrgencyNormal = 0;
  163. kTelSmsUrgencyUrgent = 1;
  164. kTelSmsUrgencyEmergency = 2;
  165. //Bulk (CDMA) & Interactive mode (TDMA) are not supported
  166. // Privacy message indicator (UInt8) - Only used in CDMA & TDMA advanced parameters
  167. kTelSmsPrivacyNotRestricted = 0; // Privacy level 0
  168. kTelSmsPrivacyRestricted = 1; // Privacy level 1
  169. kTelSmsPrivacyConfidential = 2; // Privacy level 2
  170. kTelSmsPrivacySecret = 3; // Privacy level 3
  171. // Delivery status report (UInt8)
  172. kTelSmsDSRSuccess = 0;
  173. kTelSmsDSRMessageReplaced = 1;
  174. kTelSmsDSRMessageForwarded = 2; // unknown delivery result
  175. kTelSmsDSRTempCongestion = 3;
  176. kTelSmsDSRTempSMEBusy = 4;
  177. kTelSmsDSRTempServiceRejected = 5;
  178. kTelSmsDSRTempServiceUnavailable = 6;
  179. kTelSmsDSRTempSMEError = 7;
  180. kTelSmsDSRTempOther = 8;
  181. kTelSmsDSRPermRPError = 9;
  182. kTelSmsDSRPermBadDestination = 10;
  183. kTelSmsDSRPermUnobtainable = 11;
  184. kTelSmsDSRPermServiceUnavailable = 12;
  185. kTelSmsDSRPermInternetworkError = 13;
  186. kTelSmsDSRPermValidityExpired = 14;
  187. kTelSmsDSRPermDeletedByOrigSME = 15;
  188. kTelSmsDSRPermDeleteByAdm = 16;
  189. kTelSmsDSRPermSMNotExist = 17;
  190. kTelSmsDSRPermOther = 18;
  191. kTelSpeechCallClass = 0; // call classes
  192. kTelDataCallClass = 1;
  193. kTelFaxCallClass = 2;
  194. kTelPhbFixedPhonebook = 0; // phonebooks
  195. kTelPhbSimPhonebook = 1;
  196. kTelPhbPhonePhonebook = 2;
  197. kTelPhbLastDialedPhonebook = 3;
  198. kTelPhbSimAndPhonePhonebook = 4;
  199. kTelPhbAdaptorPhonebook = 5;
  200. kTelPhbFirstOemPhonebook = 6;
  201. kTelCallIdle = 0; // call states
  202. kTelCallConnecting = 1;
  203. kTelCallConnected = 2;
  204. kTelCallRedial = 3;
  205. kTelCallIncoming = 4;
  206. kTelCallIncomingAck = 5;
  207. kTelCallDisconnecting = 6;
  208. kTelCallTypeOutgoing = 0; // call type
  209. kTelCallTypeIncoming = 1;
  210. kTelCallServiceVoice = 0; // call service type
  211. kTelCallServiceData = 1;
  212. kTelStyReady = 0; // no more security code expected
  213. kTelStyPin1CodeId = 1; // authentication code IDs
  214. kTelStyPin2CodeId = 2;
  215. kTelStyPuk1CodeId = 3;
  216. kTelStyPuk2CodeId = 4;
  217. kTelStyPhoneToSimCodeId = 5;
  218. kTelStyFirstOemCodeId = 6;
  219. kTelInfPhoneBrand = 0; // phone information type
  220. kTelInfPhoneModel = 1;
  221. kTelInfPhoneRevision = 2;
  222. // TelMgr library call ID's
  223. // first entry points are reserved for internal use only
  224. telLibTrapReserved1 = sysLibTrapCustom;
  225. telLibTrapReserved2 = sysLibTrapCustom + 1;
  226. telLibTrapReserved3 = sysLibTrapCustom + 2;
  227. telLibTrapReserved4 = sysLibTrapCustom + 3;
  228. telLibTrapReserved5 = sysLibTrapCustom + 4;
  229. telLibTrapReserved6 = sysLibTrapCustom + 5;
  230. telLibTrapReserved7 = sysLibTrapCustom + 6;
  231. telLibTrapReserved8 = sysLibTrapCustom + 7;
  232. telLibTrapReserved9 = sysLibTrapCustom + 8;
  233. telLibTrapReserved10 = sysLibTrapCustom + 9;
  234. telLibTrapGetEvent = sysLibTrapCustom + 10;
  235. telLibTrapGetTelephonyEvent = sysLibTrapCustom + 11;
  236. telLibTrapOpenPhoneConnection = sysLibTrapCustom + 12;
  237. telLibTrapIsPhoneConnected = sysLibTrapCustom + 13;
  238. telLibTrapClosePhoneConnection = sysLibTrapCustom + 14;
  239. telLibTrapIsServiceAvailable = sysLibTrapCustom + 15;
  240. telLibTrapIsFunctionSupported = sysLibTrapCustom + 16;
  241. telLibTrapSendCommandString = sysLibTrapCustom + 17;
  242. telLibTrapCancel = sysLibTrapCustom + 18;
  243. telLibTrapMatchPhoneDriver = sysLibTrapCustom + 19;
  244. telLibTrapGetCallState = sysLibTrapCustom + 20;
  245. telLibTrapOemCall = sysLibTrapCustom + 21;
  246. telLibTrapNwkGetNetworks = sysLibTrapCustom + 22;
  247. telLibTrapNwkGetNetworkName = sysLibTrapCustom + 23;
  248. telLibTrapNwkGetLocation = sysLibTrapCustom + 24;
  249. telLibTrapNwkSelectNetwork = sysLibTrapCustom + 25;
  250. telLibTrapNwkGetSelectedNetwork = sysLibTrapCustom + 26;
  251. telLibTrapNwkGetNetworkType = sysLibTrapCustom + 27;
  252. telLibTrapNwkGetSignalLevel = sysLibTrapCustom + 28;
  253. telLibTrapNwkGetSearchMode = sysLibTrapCustom + 29;
  254. telLibTrapNwkSetSearchMode = sysLibTrapCustom + 30;
  255. telLibTrapStyChangeAuthenticationCode = sysLibTrapCustom + 31;
  256. telLibTrapStyGetAuthenticationState = sysLibTrapCustom + 32;
  257. telLibTrapStyEnterAuthenticationCode = sysLibTrapCustom + 33;
  258. telLibTrapPowGetPowerLevel = sysLibTrapCustom + 34;
  259. telLibTrapPowGetBatteryStatus = sysLibTrapCustom + 35;
  260. telLibTrapPowSetPhonePower = sysLibTrapCustom + 36;
  261. telLibTrapCfgSetSmsCenter = sysLibTrapCustom + 37;
  262. telLibTrapCfgGetSmsCenter = sysLibTrapCustom + 38;
  263. telLibTrapCfgGetPhoneNumber = sysLibTrapCustom + 39;
  264. telLibTrapSmsGetUniquePartId = sysLibTrapCustom + 40;
  265. telLibTrapSmsGetDataMaxSize = sysLibTrapCustom + 41;
  266. telLibTrapSmsSendMessage = sysLibTrapCustom + 42;
  267. telLibTrapSmsSendManualAcknowledge = sysLibTrapCustom + 43;
  268. telLibTrapSmsReadMessage = sysLibTrapCustom + 44;
  269. telLibTrapSmsReadMessages = sysLibTrapCustom + 45;
  270. telLibTrapSmsReadReport = sysLibTrapCustom + 46;
  271. telLibTrapSmsReadReports = sysLibTrapCustom + 47;
  272. telLibTrapSmsReadSubmittedMessage = sysLibTrapCustom + 48;
  273. telLibTrapSmsReadSubmittedMessages = sysLibTrapCustom + 49;
  274. telLibTrapSmsGetMessageCount = sysLibTrapCustom + 50;
  275. telLibTrapSmsDeleteMessage = sysLibTrapCustom + 51;
  276. telLibTrapSmsGetAvailableStorage = sysLibTrapCustom + 52;
  277. telLibTrapSmsGetSelectedStorage = sysLibTrapCustom + 53;
  278. telLibTrapSmsSelectStorage = sysLibTrapCustom + 54;
  279. telLibTrapEmcCall = sysLibTrapCustom + 55;
  280. telLibTrapEmcCloseLine = sysLibTrapCustom + 56;
  281. telLibTrapEmcGetNumberCount = sysLibTrapCustom + 57;
  282. telLibTrapEmcGetNumber = sysLibTrapCustom + 58;
  283. telLibTrapEmcSetNumber = sysLibTrapCustom + 59;
  284. telLibTrapEmcSelectNumber = sysLibTrapCustom + 60;
  285. telLibTrapSpcCallNumber = sysLibTrapCustom + 61;
  286. telLibTrapSpcCloseLine = sysLibTrapCustom + 62;
  287. telLibTrapSpcHoldLine = sysLibTrapCustom + 63;
  288. telLibTrapSpcRetrieveHeldLine = sysLibTrapCustom + 64;
  289. telLibTrapSpcConference = sysLibTrapCustom + 65;
  290. telLibTrapSpcSelectLine = sysLibTrapCustom + 66;
  291. telLibTrapSpcAcceptCall = sysLibTrapCustom + 67;
  292. telLibTrapSpcRejectCall = sysLibTrapCustom + 68;
  293. telLibTrapSpcGetCallerNumber = sysLibTrapCustom + 69;
  294. telLibTrapSpcSendBurstDTMF = sysLibTrapCustom + 70;
  295. telLibTrapSpcStartContinuousDTMF = sysLibTrapCustom + 71;
  296. telLibTrapSpcStopContinuousDTMF = sysLibTrapCustom + 72;
  297. telLibTrapSpcPlayDTMF = sysLibTrapCustom + 73;
  298. telLibTrapPhbGetEntryCount = sysLibTrapCustom + 74;
  299. telLibTrapPhbGetEntry = sysLibTrapCustom + 75;
  300. telLibTrapPhbGetEntries = sysLibTrapCustom + 76;
  301. telLibTrapPhbAddEntry = sysLibTrapCustom + 77;
  302. telLibTrapPhbDeleteEntry = sysLibTrapCustom + 78;
  303. telLibTrapPhbGetAvailablePhonebooks = sysLibTrapCustom + 79;
  304. telLibTrapPhbSelectPhonebook = sysLibTrapCustom + 80;
  305. telLibTrapPhbGetSelectedPhonebook = sysLibTrapCustom + 81;
  306. telLibTrapPhbGetEntryMaxSizes = sysLibTrapCustom + 82;
  307. telLibTrapSndPlayKeyTone = sysLibTrapCustom + 83;
  308. telLibTrapSndStopKeyTone = sysLibTrapCustom + 84;
  309. telLibTrapSndMute = sysLibTrapCustom + 85;
  310. telLibTrapInfGetInformation = sysLibTrapCustom + 86;
  311. telLibTrapDtcCallNumber = sysLibTrapCustom + 87;
  312. telLibTrapDtcCloseLine = sysLibTrapCustom + 88;
  313. telLibTrapDtcSendData = sysLibTrapCustom + 89;
  314. telLibTrapDtcReceiveData = sysLibTrapCustom + 90;
  315. telLibTrapUnblockNotifications = sysLibTrapCustom + 91;
  316. telLibTrapOpenProfile = sysLibTrapCustom + 92;
  317. telLibTrapLast = sysLibTrapCustom + 93;
  318. // function traps
  319. function TelOpen(iRefnum: UInt16; iVersnum: UInt32; var oAppIdP: TelAppID): Err; syscall sysLibTrapOpen;
  320. function TelClose(iRefnum: UInt16; iAppId: TelAppID): Err; syscall sysLibTrapClose;
  321. // events management
  322. procedure TelGetEvent(iRefnum: UInt16; iAppId: TelAppID; oEventP: EventPtr; iTimeOut: Int32); syscall telLibTrapGetEvent;
  323. procedure TelGetTelephonyEvent(iRefnum: UInt16; iAppId: TelAppID; oEventP: EventPtr; iTimeOut: Int32); syscall telLibTrapGetTelephonyEvent;
  324. // phone connection management
  325. function TelOpenPhoneConnection(iRefnum: UInt16; iAppId: TelAppID; var ioTransIdP: UInt16): Err; syscall telLibTrapOpenPhoneConnection;
  326. function TelIsPhoneConnected(iRefnum: UInt16; iAppId: TelAppID; var ioTransIdP: UInt16): Err; syscall telLibTrapIsPhoneConnected;
  327. function TelClosePhoneConnection(iRefnum: UInt16; iAppId: TelAppID; var ioTransIdP: UInt16): Err; syscall telLibTrapClosePhoneConnection;
  328. // service/function availability
  329. function TelIsServiceAvailable(iRefnum: UInt16; iAppId: TelAppID; serviceId: UInt16; var ioTransIdP: UInt16): Err; syscall telLibTrapIsServiceAvailable;
  330. function TelIsFunctionSupported(iRefnum: UInt16; iAppId: TelAppID; functionId: UInt16; var ioTransIdP: UInt16): Err; syscall telLibTrapIsFunctionSupported;
  331. // sending commands to the phone
  332. function TelSendCommandString(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelSendCommandStringType; var ioTransIdP: UInt16): Err; syscall telLibTrapSendCommandString;
  333. // cancelling asynchronous calls
  334. function TelCancel(iRefnum: UInt16; iAppId: TelAppID; iTransId: UInt16; var ioTransIdP: UInt16): Err; syscall telLibTrapCancel;
  335. // checking whether phone and driver match
  336. function TelMatchPhoneDriver(iRefnum: UInt16; iAppId: TelAppID; var ioTransIdP: UInt16): Err; syscall telLibTrapMatchPhoneDriver;
  337. // getting phone status
  338. function TelGetCallState(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelGetCallStateType; var ioTransIdP: UInt16): Err; syscall telLibTrapGetCallState;
  339. // OEM support
  340. function TelOemCall(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelOemCallType; var ioTransIdP: UInt16): Err; syscall telLibTrapOemCall;
  341. // network
  342. function TelNwkGetNetworks(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelNwkGetNetworksType; var ioTransIdP: UInt16): Err; syscall telLibTrapNwkGetNetworks;
  343. function TelNwkGetNetworkName(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelNwkGetNetworkNameType; var ioTransIdP: UInt16): Err; syscall telLibTrapNwkGetNetworkName;
  344. function TelNwkGetLocation(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelNwkGetLocationType; var ioTransIdP: UInt16): Err; syscall telLibTrapNwkGetLocation;
  345. function TelNwkSelectNetwork(iRefnum: UInt16; iAppId: TelAppID; iNetworkId: UInt32; var ioTransIdP: UInt16): Err; syscall telLibTrapNwkSelectNetwork;
  346. function TelNwkGetSelectedNetwork(iRefnum: UInt16; iAppId: TelAppID; var oNetworkIdP: UInt32; var ioTransIdP: UInt16): Err; syscall telLibTrapNwkGetSelectedNetwork;
  347. function TelNwkGetNetworkType(iRefnum: UInt16; iAppId: TelAppID; var oTypeP: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapNwkGetNetworkType;
  348. function TelNwkGetSignalLevel(iRefnum: UInt16; iAppId: TelAppID; var oSignalP: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapNwkGetSignalLevel;
  349. function TelNwkGetSearchMode(iRefnum: UInt16; iAppId: TelAppID; var oModeP: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapNwkGetSearchMode;
  350. function TelNwkSetSearchMode(iRefnum: UInt16; iAppId: TelAppID; iMode: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapNwkSetSearchMode;
  351. // security
  352. function TelStyGetAuthenticationState(iRefnum: UInt16; iAppId: TelAppID; var oStateP: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapStyGetAuthenticationState;
  353. function TelStyEnterAuthenticationCode(iRefnum: UInt16; iAppId: TelAppID; const iCodeP: PChar; var ioTransIdP: UInt16): Err; syscall telLibTrapStyEnterAuthenticationCode;
  354. function TelStyChangeAuthenticationCode(iRefnum: UInt16; iAppId: TelAppID; var iParamP: TelStyChangeAuthenticationType; var ioTransIdP: UInt16): Err; syscall telLibTrapStyChangeAuthenticationCode;
  355. // power
  356. function TelPowGetPowerLevel(iRefnum: UInt16; iAppId: TelAppID; var oPowerP: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapPowGetPowerLevel;
  357. function TelPowGetBatteryStatus(iRefnum: UInt16; iAppId: TelAppID; var oStatusP: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapPowGetBatteryStatus;
  358. function TelPowSetPhonePower(iRefnum: UInt16; iAppId: TelAppID; iPowerOn: Boolean): Err; syscall telLibTrapPowSetPhonePower;
  359. // configuration
  360. function TelCfgSetSmsCenter(iRefnum: UInt16; iAppId: TelAppID; const iDialNumberP: PChar; var ioTransIdP: UInt16): Err; syscall telLibTrapCfgSetSmsCenter;
  361. function TelCfgGetSmsCenter(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelCfgGetSmsCenterType; var ioTransIdP: UInt16): Err; syscall telLibTrapCfgGetSmsCenter;
  362. function TelCfgGetPhoneNumber(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelCfgGetPhoneNumberType; var ioTransIdP: UInt16): Err; syscall telLibTrapCfgGetPhoneNumber;
  363. // sms
  364. function TelSmsGetUniquePartId(iRefnum: UInt16; iAppId: TelAppID; var oUniqueIdP: UInt16; var ioTransIdP: UInt16): Err; syscall telLibTrapSmsGetUniquePartId;
  365. function TelSmsGetDataMaxSize(iRefnum: UInt16; iAppId: TelAppID; var oSizeP: UInt16; var ioTransIdP: UInt16): Err; syscall telLibTrapSmsGetDataMaxSize;
  366. function TelSmsSendMessage(iRefnum: UInt16; iAppId: TelAppID; var ioMessageP: TelSmsSendMessageType; var ioTransIdP: UInt16): Err; syscall telLibTrapSmsSendMessage;
  367. function TelSmsSendManualAcknowledge(iRefnum: UInt16; iAppId: TelAppID; var ioAckP: TelSmsManualAckType; var ioTransIdP: UInt16): Err; syscall telLibTrapSmsSendManualAcknowledge;
  368. function TelSmsReadMessage(iRefnum: UInt16; iAppId: TelAppID; var ioMessageP: TelSmsDeliveryMessageType; var ioTransIdP: UInt16): Err; syscall telLibTrapSmsReadMessage;
  369. function TelSmsReadMessages(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelSmsReadMessagesType; var ioTransIdP: UInt16): Err; syscall telLibTrapSmsReadMessages;
  370. function TelSmsReadReport(iRefnum: UInt16; iAppId: TelAppID; var ioReportP: TelSmsReportType; var ioTransIdP: UInt16): Err; syscall telLibTrapSmsReadReport;
  371. function TelSmsReadReports(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelSmsReadReportsType; var ioTransIdP: UInt16): Err; syscall telLibTrapSmsReadReports;
  372. function TelSmsReadSubmittedMessage(iRefnum: UInt16; iAppId: TelAppID; var ioMessageP: TelSmsSubmittedMessageType; var ioTransIdP: UInt16): Err; syscall telLibTrapSmsReadSubmittedMessage;
  373. function TelSmsReadSubmittedMessages(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelSmsReadSubmittedMessagesType; var ioTransIdP: UInt16): Err; syscall telLibTrapSmsReadSubmittedMessages;
  374. function TelSmsGetMessageCount(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelSmsGetMessageCountType; var ioTransIdP: UInt16): Err; syscall telLibTrapSmsGetMessageCount;
  375. function TelSmsDeleteMessage(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelSmsDeleteMessageType; var ioTransIdP: UInt16): Err; syscall telLibTrapSmsDeleteMessage;
  376. function TelSmsGetAvailableStorage(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelSmsGetAvailableStorageType; var ioTransIdP: UInt16): Err; syscall telLibTrapSmsGetAvailableStorage;
  377. function TelSmsGetSelectedStorage(iRefnum: UInt16; iAppId: TelAppID; var oStorageIdP: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapSmsGetSelectedStorage;
  378. function TelSmsSelectStorage(iRefnum: UInt16; iAppId: TelAppID; iStorageId: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapSmsSelectStorage;
  379. // emergency calls
  380. function TelEmcCall(iRefnum: UInt16; iAppId: TelAppID; var ioTransIdP: UInt16): Err; syscall telLibTrapEmcCall;
  381. function TelEmcCloseLine(iRefnum: UInt16; iAppId: TelAppID; var ioTransIdP: UInt16): Err; syscall telLibTrapEmcCloseLine;
  382. function TelEmcGetNumberCount(iRefnum: UInt16; iAppId: TelAppID; var oCountP: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapEmcGetNumberCount;
  383. function TelEmcGetNumber(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelEmcGetNumberType; var ioTransIdP: UInt16): Err; syscall telLibTrapEmcGetNumber;
  384. function TelEmcSetNumber(iRefnum: UInt16; iAppId: TelAppID; var iParamP: TelEmcSetNumberType; var ioTransIdP: UInt16): Err; syscall telLibTrapEmcSetNumber;
  385. function TelEmcSelectNumber(iRefnum: UInt16; iAppId: TelAppID; iIndex: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapEmcSelectNumber;
  386. // speech call
  387. function TelSpcCallNumber(iRefnum: UInt16; iAppId: TelAppID; const iDialNumberP: PChar; var ioTransIdP: UInt16): Err; syscall telLibTrapSpcCallNumber;
  388. function TelSpcCloseLine(iRefnum: UInt16; iAppId: TelAppID; iLineId: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapSpcCloseLine;
  389. function TelSpcHoldLine(iRefnum: UInt16; iAppId: TelAppID; var ioTransIdP: UInt16): Err; syscall telLibTrapSpcHoldLine;
  390. function TelSpcRetrieveHeldLine(iRefnum: UInt16; iAppId: TelAppID; var ioTransIdP: UInt16): Err; syscall telLibTrapSpcRetrieveHeldLine;
  391. function TelSpcConference(iRefnum: UInt16; iAppId: TelAppID; var oLineIdP: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapSpcConference;
  392. function TelSpcSelectLine(iRefnum: UInt16; iAppId: TelAppID; iLineId: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapSpcSelectLine;
  393. function TelSpcAcceptCall(iRefnum: UInt16; iAppId: TelAppID; var oLineIdP: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapSpcAcceptCall;
  394. function TelSpcRejectCall(iRefnum: UInt16; iAppId: TelAppID; var ioTransIdP: UInt16): Err; syscall telLibTrapSpcRejectCall;
  395. function TelSpcGetCallerNumber(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelSpcGetCallerNumberType; var ioTransIdP: UInt16): Err; syscall telLibTrapSpcGetCallerNumber;
  396. function TelSpcSendBurstDTMF(iRefnum: UInt16; iAppId: TelAppID; const iDTMFStringP: PChar; var ioTransIdP: UInt16): Err; syscall telLibTrapSpcSendBurstDTMF;
  397. function TelSpcStartContinuousDTMF(iRefnum: UInt16; iAppId: TelAppID; iKeyCode: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapSpcStartContinuousDTMF;
  398. function TelSpcStopContinuousDTMF(iRefnum: UInt16; iAppId: TelAppID; var ioTransIdP: UInt16): Err; syscall telLibTrapSpcStopContinuousDTMF;
  399. function TelSpcPlayDTMF(iRefnum: UInt16; iAppId: TelAppID; var iParamP: TelSpcPlayDTMFType; var ioTransIdP: UInt16): Err; syscall telLibTrapSpcPlayDTMF;
  400. // phonebook
  401. function TelPhbGetEntryCount(iRefnum: UInt16; iAppId: TelAppID; var oParamP: TelPhbGetEntryCountType; var ioTransIdP: UInt16): Err; syscall telLibTrapPhbGetEntryCount;
  402. function TelPhbGetEntry(iRefnum: UInt16; iAppId: TelAppID; var ioEntryP: TelPhbEntryType; var ioTransIdP: UInt16): Err; syscall telLibTrapPhbGetEntry;
  403. function TelPhbGetEntries(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelPhbGetEntriesType; var ioTransIdP: UInt16): Err; syscall telLibTrapPhbGetEntries;
  404. function TelPhbAddEntry(iRefnum: UInt16; iAppId: TelAppID; var iEntryP: TelPhbEntryType; var ioTransIdP: UInt16): Err; syscall telLibTrapPhbAddEntry;
  405. function TelPhbDeleteEntry(iRefnum: UInt16; iAppId: TelAppID; iEntryIndex: UInt16; var ioTransIdP: UInt16): Err; syscall telLibTrapPhbDeleteEntry;
  406. function TelPhbGetAvailablePhonebooks(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelPhbGetAvailablePhonebooksType; var ioTransIdP: UInt16): Err; syscall telLibTrapPhbGetAvailablePhonebooks;
  407. function TelPhbSelectPhonebook(iRefnum: UInt16; iAppId: TelAppID; iPhbId: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapPhbSelectPhonebook;
  408. function TelPhbGetSelectedPhonebook(iRefnum: UInt16; iAppId: TelAppID; var oPhbIdP: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapPhbGetSelectedPhonebook;
  409. function TelPhbGetEntryMaxSizes(iRefnum: UInt16; iAppId: TelAppID; var oParamP: TelPhbGetEntryMaxSizesType; var ioTransIdP: UInt16): Err; syscall telLibTrapPhbGetEntryMaxSizes;
  410. // sound
  411. function TelSndPlayKeyTone(iRefnum: UInt16; iAppId: TelAppID; var iParamP: TelSndPlayKeyToneType; var ioTransIdP: UInt16): Err; syscall telLibTrapSndPlayKeyTone;
  412. function TelSndStopKeyTone(iRefnum: UInt16; iAppId: TelAppID; var ioTransIdP: UInt16): Err; syscall telLibTrapSndStopKeyTone;
  413. function TelSndMute(iRefnum: UInt16; iAppId: TelAppID; iMuteOn: Boolean; var ioTransIdP: UInt16): Err; syscall telLibTrapSndMute;
  414. // information
  415. function TelInfGetInformation(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelInfGetInformationType; var ioTransIdP: UInt16): Err; syscall telLibTrapInfGetInformation;
  416. // data
  417. function TelDtcCallNumber(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelDtcCallNumberType; var ioTransIdP: UInt16): Err; syscall telLibTrapDtcCallNumber;
  418. function TelDtcCloseLine(iRefnum: UInt16; iAppId: TelAppID; iLineId: UInt8; var ioTransIdP: UInt16): Err; syscall telLibTrapDtcCloseLine;
  419. function TelDtcSendData(iRefnum: UInt16; iAppId: TelAppID; var iParamP: TelDtcSendDataType; var ioTransIdP: UInt16): Err; syscall telLibTrapDtcSendData;
  420. function TelDtcReceiveData(iRefnum: UInt16; iAppId: TelAppID; var ioParamP: TelDtcReceiveDataType; var ioTransIdP: UInt16): Err; syscall telLibTrapDtcReceiveData;
  421. function TelUnblockNotifications(iRefnum: UInt16): Err; syscall telLibTrapUnblockNotifications;
  422. // open telephony using a particular connection profile
  423. function TelOpenProfile(iRefnum: UInt16; iVersnum: UInt32; profileId: UInt32; var oAppIdP: TelAppID): Err; syscall telLibTrapOpenProfile;
  424. // MACROS for checking service availability
  425. function TelIsNwkServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  426. function TelIsStyServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  427. function TelIsPowServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  428. function TelIsCfgServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  429. function TelIsSmsServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  430. function TelIsEmcServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  431. function TelIsSpcServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  432. function TelIsDtcServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  433. function TelIsPhbServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  434. function TelIsOemServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  435. function TelIsSndServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  436. function TelIsInfServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  437. // MACROS to check function availability
  438. function TelIsSendCommandStringSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  439. function TelIsCancelSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  440. function TelIsMatchPhoneDriverSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  441. function TelIsGetCallStateSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  442. function TelIsOemCallSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  443. function TelIsNwkGetNetworksSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  444. function TelIsNwkGetNetworkNameSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  445. function TelIsNwkGetLocationSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  446. function TelIsNwkSelectNetworkSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  447. function TelIsNwkGetSelectedNetworkSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  448. function TelIsNwkGetNetworkTypeSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  449. function TelIsNwkGetSignalLevelSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  450. function TelIsNwkGetSearchModeSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  451. function TelIsNwkSetSearchModeSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  452. function TelIsStyGetAuthenticationStateSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  453. function TelIsStyEnterAuthenticationCodeSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  454. function TelIsStyChangeAuthenticationCodeSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  455. function TelIsPowGetPowerLevelSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  456. function TelIsPowGetBatteryStatusSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  457. function TelIsPowSetPhonePowerSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  458. function TelIsCfgSetSmsCenterSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  459. function TelIsCfgGetSmsCenterSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  460. function TelIsCfgGetPhoneNumberSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  461. function TelIsSmsGetUniquePartIdSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  462. function TelIsSmsGetDataMaxSizeSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  463. function TelIsSmsSendMessageSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  464. function TelIsSmsSendManualAcknowledgeSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  465. function TelIsSmsReadMessageSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  466. function TelIsSmsReadMessagesSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  467. function TelIsSmsReadReportSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  468. function TelIsSmsReadReportsSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  469. function TelIsSmsReadSubmittedMessageSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  470. function TelIsSmsReadSubmittedMessagesSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  471. function TelIsSmsGetMessageCountSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  472. function TelIsSmsDeleteMessageSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  473. function TelIsSmsGetAvailableStorageSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  474. function TelIsSmsGetSelectedStorageSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  475. function TelIsSmsSelectStorageSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  476. function TelIsEmcCallSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  477. function TelIsEmcCloseLineSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  478. function TelIsEmcGetNumberCountSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  479. function TelIsEmcGetNumberSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  480. function TelIsEmcSetNumberSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  481. function TelIsEmcSelectNumberSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  482. function TelIsSpcCallNumberSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  483. function TelIsSpcCloseLineSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  484. function TelIsSpcHoldLineSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  485. function TelIsSpcRetrieveHeldLineSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  486. function TelIsSpcConferenceSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  487. function TelIsSpcSelectLineSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  488. function TelIsSpcAcceptCallSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  489. function TelIsSpcRejectCallSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  490. function TelIsSpcGetCallerNumberSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  491. function TelIsSpcSendBurstDTMFSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  492. function TelIsSpcStartContinuousDTMFSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  493. function TelIsSpcStopContinuousDTMFSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  494. function TelIsSpcPlayDTMFSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  495. function TelIsPhbGetEntryCountSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  496. function TelIsPhbGetEntrySupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  497. function TelIsPhbGetEntriesSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  498. function TelIsPhbAddEntrySupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  499. function TelIsPhbDeleteEntrySupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  500. function TelIsPhbGetAvailablePhonebooksSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  501. function TelIsPhbSelectPhonebookSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  502. function TelIsPhbGetSelectedPhonebookSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  503. function TelIsPhbGetEntryMaxSizesSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  504. function TelIsSndPlayKeyToneSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  505. function TelIsSndStopKeyToneSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  506. function TelIsSndMuteSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  507. function TelIsInfGetInformationSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  508. function TelIsDtcCallNumberSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  509. function TelIsDtcCloseLineSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  510. function TelIsDtcSendDataSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  511. function TelIsDtcReceiveDataSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  512. implementation
  513. function kTelMgrVersion(major, minor, fix, stage: UInt8; buildNum: UInt16): UInt32;
  514. begin
  515. kTelMgrVersion := sysMakeROMVersion(kTelMgrVersionMajor, kTelMgrVersionMinor, kTelMgrVersionFix, sysROMStageBeta, kTelMgrVersionBuild);
  516. end;
  517. // MACROS for checking service availability
  518. function TelIsNwkServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  519. begin
  520. TelIsNwkServiceAvailable := TelIsServiceAvailable(refnum, appId, kTelNwkServiceId, transIdP);
  521. end;
  522. function TelIsStyServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  523. begin
  524. TelIsStyServiceAvailable := TelIsServiceAvailable(refnum, appId, kTelStyServiceId, transIdP);
  525. end;
  526. function TelIsPowServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  527. begin
  528. TelIsPowServiceAvailable := TelIsServiceAvailable(refnum, appId, kTelPowServiceId, transIdP);
  529. end;
  530. function TelIsCfgServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  531. begin
  532. TelIsCfgServiceAvailable := TelIsServiceAvailable(refnum, appId, kTelCfgServiceId, transIdP);
  533. end;
  534. function TelIsSmsServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  535. begin
  536. TelIsSmsServiceAvailable := TelIsServiceAvailable(refnum, appId, kTelSmsServiceId, transIdP);
  537. end;
  538. function TelIsEmcServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  539. begin
  540. TelIsEmcServiceAvailable := TelIsServiceAvailable(refnum, appId, kTelEmcServiceId, transIdP);
  541. end;
  542. function TelIsSpcServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  543. begin
  544. TelIsSpcServiceAvailable := TelIsServiceAvailable(refnum, appId, kTelSpcServiceId, transIdP);
  545. end;
  546. function TelIsDtcServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  547. begin
  548. TelIsDtcServiceAvailable := TelIsServiceAvailable(refnum, appId, kTelDtcServiceId, transIdP);
  549. end;
  550. function TelIsPhbServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  551. begin
  552. TelIsPhbServiceAvailable := TelIsServiceAvailable(refnum, appId, kTelPhbServiceId, transIdP);
  553. end;
  554. function TelIsOemServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  555. begin
  556. TelIsOemServiceAvailable := TelIsServiceAvailable(refnum, appId, kTelOemServiceId, transIdP);
  557. end;
  558. function TelIsSndServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  559. begin
  560. TelIsSndServiceAvailable := TelIsServiceAvailable(refnum, appId, kTelSndServiceId, transIdP);
  561. end;
  562. function TelIsInfServiceAvailable(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  563. begin
  564. TelIsInfServiceAvailable := TelIsServiceAvailable(refnum, appId, kTelInfServiceId, transIdP);
  565. end;
  566. // MACROS to check function availability
  567. function TelIsSendCommandStringSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  568. begin
  569. TelIsSendCommandStringSupported := TelIsFunctionSupported(refnum, appId, kTelSendCommandStringMessage, transIdP);
  570. end;
  571. function TelIsCancelSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  572. begin
  573. TelIsCancelSupported := TelIsFunctionSupported(refnum, appId, kTelUrqCancelMessage, transIdP);
  574. end;
  575. function TelIsMatchPhoneDriverSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  576. begin
  577. TelIsMatchPhoneDriverSupported := TelIsFunctionSupported(refnum, appId, kTelUrqMatchPhoneDriverMessage, transIdP);
  578. end;
  579. function TelIsGetCallStateSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  580. begin
  581. TelIsGetCallStateSupported := TelIsFunctionSupported(refnum, appId, kTelGetCallStateMessage, transIdP);
  582. end;
  583. function TelIsOemCallSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  584. begin
  585. TelIsOemCallSupported := TelIsFunctionSupported(refnum, appId, kTelOemCallMessage, transIdP);
  586. end;
  587. function TelIsNwkGetNetworksSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  588. begin
  589. TelIsNwkGetNetworksSupported := TelIsFunctionSupported(refnum, appId, kTelNwkGetNetworksMessage, transIdP);
  590. end;
  591. function TelIsNwkGetNetworkNameSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  592. begin
  593. TelIsNwkGetNetworkNameSupported := TelIsFunctionSupported(refnum, appId, kTelNwkGetNetworkNameMessage, transIdP);
  594. end;
  595. function TelIsNwkGetLocationSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  596. begin
  597. TelIsNwkGetLocationSupported := TelIsFunctionSupported(refnum, appId, kTelNwkGetLocationMessage, transIdP);
  598. end;
  599. function TelIsNwkSelectNetworkSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  600. begin
  601. TelIsNwkSelectNetworkSupported := TelIsFunctionSupported(refnum, appId, kTelNwkSelectNetworkMessage, transIdP);
  602. end;
  603. function TelIsNwkGetSelectedNetworkSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  604. begin
  605. TelIsNwkGetSelectedNetworkSupported := TelIsFunctionSupported(refnum, appId, kTelNwkGetSelectedNetworkMessage, transIdP);
  606. end;
  607. function TelIsNwkGetNetworkTypeSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  608. begin
  609. TelIsNwkGetNetworkTypeSupported := TelIsFunctionSupported(refnum, appId, kTelNwkGetNetworkTypeMessage, transIdP);
  610. end;
  611. function TelIsNwkGetSignalLevelSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  612. begin
  613. TelIsNwkGetSignalLevelSupported := TelIsFunctionSupported(refnum, appId, kTelNwkGetSignalLevelMessage, transIdP);
  614. end;
  615. function TelIsNwkGetSearchModeSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  616. begin
  617. TelIsNwkGetSearchModeSupported := TelIsFunctionSupported(refnum, appId, kTelNwkGetSearchModeMessage, transIdP);
  618. end;
  619. function TelIsNwkSetSearchModeSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  620. begin
  621. TelIsNwkSetSearchModeSupported := TelIsFunctionSupported(refnum, appId, kTelNwkSetSearchModeMessage, transIdP);
  622. end;
  623. function TelIsStyGetAuthenticationStateSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  624. begin
  625. TelIsStyGetAuthenticationStateSupported := TelIsFunctionSupported(refnum, appId, kTelStyGetAuthenticationStateMessage, transIdP);
  626. end;
  627. function TelIsStyEnterAuthenticationCodeSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  628. begin
  629. TelIsStyEnterAuthenticationCodeSupported := TelIsFunctionSupported(refnum, appId, kTelStyEnterAuthenticationCodeMessage, transIdP);
  630. end;
  631. function TelIsStyChangeAuthenticationCodeSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  632. begin
  633. TelIsStyChangeAuthenticationCodeSupported := TelIsFunctionSupported(refnum, appId, kTelStyChangeAuthenticationCodeMessage, transIdP);
  634. end;
  635. function TelIsPowGetPowerLevelSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  636. begin
  637. TelIsPowGetPowerLevelSupported := TelIsFunctionSupported(refnum, appId, kTelPowGetPowerLevelMessage, transIdP);
  638. end;
  639. function TelIsPowGetBatteryStatusSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  640. begin
  641. TelIsPowGetBatteryStatusSupported := TelIsFunctionSupported(refnum, appId, kTelPowGetBatteryStatusMessage, transIdP);
  642. end;
  643. function TelIsPowSetPhonePowerSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  644. begin
  645. TelIsPowSetPhonePowerSupported := TelIsFunctionSupported(refnum, appId, kTelPowSetPhonePowerMessage, transIdP);
  646. end;
  647. function TelIsCfgSetSmsCenterSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  648. begin
  649. TelIsCfgSetSmsCenterSupported := TelIsFunctionSupported(refnum, appId, kTelCfgSetSmsCenterMessage, transIdP);
  650. end;
  651. function TelIsCfgGetSmsCenterSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  652. begin
  653. TelIsCfgGetSmsCenterSupported := TelIsFunctionSupported(refnum, appId, kTelCfgGetSmsCenterMessage, transIdP);
  654. end;
  655. function TelIsCfgGetPhoneNumberSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  656. begin
  657. TelIsCfgGetPhoneNumberSupported := TelIsFunctionSupported(refnum, appId, kTelCfgGetPhoneNumberMessage, transIdP);
  658. end;
  659. function TelIsSmsGetUniquePartIdSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  660. begin
  661. TelIsSmsGetUniquePartIdSupported := TelIsFunctionSupported(refnum, appId, kTelUrqSmsGetUniquePartIdMessage, transIdP);
  662. end;
  663. function TelIsSmsGetDataMaxSizeSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  664. begin
  665. TelIsSmsGetDataMaxSizeSupported := TelIsFunctionSupported(refnum, appId, kTelSmsGetDataMaxSizeMessage, transIdP);
  666. end;
  667. function TelIsSmsSendMessageSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  668. begin
  669. TelIsSmsSendMessageSupported := TelIsFunctionSupported(refnum, appId, kTelSmsSendMessageMessage, transIdP);
  670. end;
  671. function TelIsSmsSendManualAcknowledgeSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  672. begin
  673. TelIsSmsSendManualAcknowledgeSupported := TelIsFunctionSupported(refnum, appId, kTelSmsSendManualAcknowledgeMessage, transIdP);
  674. end;
  675. function TelIsSmsReadMessageSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  676. begin
  677. TelIsSmsReadMessageSupported := TelIsFunctionSupported(refnum, appId, kTelSmsReadMessageMessage, transIdP);
  678. end;
  679. function TelIsSmsReadMessagesSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  680. begin
  681. TelIsSmsReadMessagesSupported := TelIsFunctionSupported(refnum, appId, kTelSmsReadMessagesMessage, transIdP);
  682. end;
  683. function TelIsSmsReadReportSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  684. begin
  685. TelIsSmsReadReportSupported := TelIsFunctionSupported(refnum, appId, kTelSmsReadReportMessage, transIdP);
  686. end;
  687. function TelIsSmsReadReportsSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  688. begin
  689. TelIsSmsReadReportsSupported := TelIsFunctionSupported(refnum, appId, kTelSmsReadReportsMessage, transIdP);
  690. end;
  691. function TelIsSmsReadSubmittedMessageSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  692. begin
  693. TelIsSmsReadSubmittedMessageSupported := TelIsFunctionSupported(refnum, appId, kTelSmsReadSubmittedMessageMessage, transIdP);
  694. end;
  695. function TelIsSmsReadSubmittedMessagesSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  696. begin
  697. TelIsSmsReadSubmittedMessagesSupported := TelIsFunctionSupported(refnum, appId, kTelSmsReadSubmittedMessagesMessage, transIdP);
  698. end;
  699. function TelIsSmsGetMessageCountSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  700. begin
  701. TelIsSmsGetMessageCountSupported := TelIsFunctionSupported(refnum, appId, kTelSmsGetMessageCountMessage, transIdP);
  702. end;
  703. function TelIsSmsDeleteMessageSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  704. begin
  705. TelIsSmsDeleteMessageSupported := TelIsFunctionSupported(refnum, appId, kTelSmsDeleteMessageMessage, transIdP);
  706. end;
  707. function TelIsSmsGetAvailableStorageSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  708. begin
  709. TelIsSmsGetAvailableStorageSupported := TelIsFunctionSupported(refnum, appId, kTelSmsGetAvailableStorageMessage, transIdP);
  710. end;
  711. function TelIsSmsGetSelectedStorageSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  712. begin
  713. TelIsSmsGetSelectedStorageSupported := TelIsFunctionSupported(refnum, appId, kTelSmsGetSelectedStorageMessage, transIdP);
  714. end;
  715. function TelIsSmsSelectStorageSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  716. begin
  717. TelIsSmsSelectStorageSupported := TelIsFunctionSupported(refnum, appId, kTelSmsSelectStorageMessage, transIdP);
  718. end;
  719. function TelIsEmcCallSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  720. begin
  721. TelIsEmcCallSupported := TelIsFunctionSupported(refnum, appId, kTelEmcCallMessage, transIdP);
  722. end;
  723. function TelIsEmcCloseLineSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  724. begin
  725. TelIsEmcCloseLineSupported := TelIsFunctionSupported(refnum, appId, kTelEmcCloseLineMessage, transIdP);
  726. end;
  727. function TelIsEmcGetNumberCountSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  728. begin
  729. TelIsEmcGetNumberCountSupported := TelIsFunctionSupported(refnum, appId, kTelEmcGetNumberCountMessage, transIdP);
  730. end;
  731. function TelIsEmcGetNumberSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  732. begin
  733. TelIsEmcGetNumberSupported := TelIsFunctionSupported(refnum, appId, kTelEmcGetNumberMessage, transIdP);
  734. end;
  735. function TelIsEmcSetNumberSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  736. begin
  737. TelIsEmcSetNumberSupported := TelIsFunctionSupported(refnum, appId, kTelEmcSetNumberMessage, transIdP);
  738. end;
  739. function TelIsEmcSelectNumberSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  740. begin
  741. TelIsEmcSelectNumberSupported := TelIsFunctionSupported(refnum, appId, kTelEmcSelectNumberMessage, transIdP);
  742. end;
  743. function TelIsSpcCallNumberSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  744. begin
  745. TelIsSpcCallNumberSupported := TelIsFunctionSupported(refnum, appId, kTelSpcCallNumberMessage, transIdP);
  746. end;
  747. function TelIsSpcCloseLineSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  748. begin
  749. TelIsSpcCloseLineSupported := TelIsFunctionSupported(refnum, appId, kTelSpcCloseLineMessage, transIdP);
  750. end;
  751. function TelIsSpcHoldLineSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  752. begin
  753. TelIsSpcHoldLineSupported := TelIsFunctionSupported(refnum, appId, kTelSpcHoldLineMessage, transIdP);
  754. end;
  755. function TelIsSpcRetrieveHeldLineSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  756. begin
  757. TelIsSpcRetrieveHeldLineSupported := TelIsFunctionSupported(refnum, appId, kTelSpcRetrieveHeldLineMessage, transIdP);
  758. end;
  759. function TelIsSpcConferenceSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  760. begin
  761. TelIsSpcConferenceSupported := TelIsFunctionSupported(refnum, appId, kTelSpcConferenceMessage, transIdP);
  762. end;
  763. function TelIsSpcSelectLineSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  764. begin
  765. TelIsSpcSelectLineSupported := TelIsFunctionSupported(refnum, appId, kTelSpcSelectLineMessage, transIdP);
  766. end;
  767. function TelIsSpcAcceptCallSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  768. begin
  769. TelIsSpcAcceptCallSupported := TelIsFunctionSupported(refnum, appId, kTelSpcAcceptCallMessage, transIdP);
  770. end;
  771. function TelIsSpcRejectCallSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  772. begin
  773. TelIsSpcRejectCallSupported := TelIsFunctionSupported(refnum, appId, kTelSpcRejectCallMessage, transIdP);
  774. end;
  775. function TelIsSpcGetCallerNumberSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  776. begin
  777. TelIsSpcGetCallerNumberSupported := TelIsFunctionSupported(refnum, appId, kTelSpcGetCallerNumberMessage, transIdP);
  778. end;
  779. function TelIsSpcSendBurstDTMFSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  780. begin
  781. TelIsSpcSendBurstDTMFSupported := TelIsFunctionSupported(refnum, appId, kTelSpcSendBurstDTMFMessage, transIdP);
  782. end;
  783. function TelIsSpcStartContinuousDTMFSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  784. begin
  785. TelIsSpcStartContinuousDTMFSupported := TelIsFunctionSupported(refnum, appId, kTelSpcStartContinuousDTMFMessage, transIdP);
  786. end;
  787. function TelIsSpcStopContinuousDTMFSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  788. begin
  789. TelIsSpcStopContinuousDTMFSupported := TelIsFunctionSupported(refnum, appId, kTelSpcStopContinuousDTMFMessage, transIdP);
  790. end;
  791. function TelIsSpcPlayDTMFSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  792. begin
  793. TelIsSpcPlayDTMFSupported := TelIsFunctionSupported(refnum, appId, kTelSpcPlayDTMFMessage, transIdP);
  794. end;
  795. function TelIsPhbGetEntryCountSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  796. begin
  797. TelIsPhbGetEntryCountSupported := TelIsFunctionSupported(refnum, appId, kTelPhbGetEntryCountMessage, transIdP);
  798. end;
  799. function TelIsPhbGetEntrySupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  800. begin
  801. TelIsPhbGetEntrySupported := TelIsFunctionSupported(refnum, appId, kTelPhbGetEntryMessage, transIdP);
  802. end;
  803. function TelIsPhbGetEntriesSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  804. begin
  805. TelIsPhbGetEntriesSupported := TelIsFunctionSupported(refnum, appId, kTelPhbGetEntriesMessage, transIdP);
  806. end;
  807. function TelIsPhbAddEntrySupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  808. begin
  809. TelIsPhbAddEntrySupported := TelIsFunctionSupported(refnum, appId, kTelPhbAddEntryMessage, transIdP);
  810. end;
  811. function TelIsPhbDeleteEntrySupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  812. begin
  813. TelIsPhbDeleteEntrySupported := TelIsFunctionSupported(refnum, appId, kTelPhbDeleteEntryMessage, transIdP);
  814. end;
  815. function TelIsPhbGetAvailablePhonebooksSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  816. begin
  817. TelIsPhbGetAvailablePhonebooksSupported := TelIsFunctionSupported(refnum, appId, kTelPhbGetAvailablePhonebooksMessage, transIdP);
  818. end;
  819. function TelIsPhbSelectPhonebookSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  820. begin
  821. TelIsPhbSelectPhonebookSupported := TelIsFunctionSupported(refnum, appId, kTelPhbSelectPhonebookMessage, transIdP);
  822. end;
  823. function TelIsPhbGetSelectedPhonebookSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  824. begin
  825. TelIsPhbGetSelectedPhonebookSupported := TelIsFunctionSupported(refnum, appId, kTelPhbGetSelectedPhonebookMessage, transIdP);
  826. end;
  827. function TelIsPhbGetEntryMaxSizesSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  828. begin
  829. TelIsPhbGetEntryMaxSizesSupported := TelIsFunctionSupported(refnum, appId, kTelPhbGetEntryMaxSizesMessage, transIdP);
  830. end;
  831. function TelIsSndPlayKeyToneSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  832. begin
  833. TelIsSndPlayKeyToneSupported := TelIsFunctionSupported(refnum, appId, kTelSndPlayKeyToneMessage, transIdP);
  834. end;
  835. function TelIsSndStopKeyToneSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  836. begin
  837. TelIsSndStopKeyToneSupported := TelIsFunctionSupported(refnum, appId, kTelSndStopKeyToneMessage, transIdP);
  838. end;
  839. function TelIsSndMuteSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  840. begin
  841. TelIsSndMuteSupported := TelIsFunctionSupported(refnum, appId, kTelSndMuteMessage, transIdP);
  842. end;
  843. function TelIsInfGetInformationSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  844. begin
  845. TelIsInfGetInformationSupported := TelIsFunctionSupported(refnum, appId, kTelInfGetInformationMessage, transIdP);
  846. end;
  847. function TelIsDtcCallNumberSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  848. begin
  849. TelIsDtcCallNumberSupported := TelIsFunctionSupported(refnum, appId, kTelDtcCallNumberMessage, transIdP);
  850. end;
  851. function TelIsDtcCloseLineSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  852. begin
  853. TelIsDtcCloseLineSupported := TelIsFunctionSupported(refnum, appId, kTelDtcCloseLineMessage, transIdP);
  854. end;
  855. function TelIsDtcSendDataSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  856. begin
  857. TelIsDtcSendDataSupported := TelIsFunctionSupported(refnum, appId, kTelDtcSendDataMessage, transIdP);
  858. end;
  859. function TelIsDtcReceiveDataSupported(refnum: UInt16; appId: TelAppID; var transIdP: UInt16): Err;
  860. begin
  861. TelIsDtcReceiveDataSupported := TelIsFunctionSupported(refnum, appId, kTelDtcReceiveDataMessage, transIdP);
  862. end;
  863. end.