helperserviceclass.pp 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. {$MACRO ON}
  2. {$define Rsc := }
  3. (******************************************************************************
  4. *
  5. * Copyright (c) 1995-2000 Palm, Inc. or its subsidiaries.
  6. * All rights reserved.
  7. *
  8. * File: HelperServiceClass.h
  9. *
  10. * Release: Palm OS SDK 4.0 (63220)
  11. *
  12. * Description:
  13. * Public header file for the service class ID's and extended details
  14. * data structures used with the "address book helper" API.
  15. *
  16. * For each Service Class ID, this header file also defines the
  17. * corresponding extended details data structures that may
  18. * optionally be passed as the 'pDetails' element in the
  19. * HelperNotifyExecuteType structure. We strongly recommend that
  20. * every extra details data structure include a version number,
  21. * which will alow the structure to be extended by adding new structure
  22. * elements later.
  23. *
  24. * The Service Class ID is a 32-bit value that uniquely identifies the
  25. * class of service performed by the Helper -- for example, making a
  26. * voice telephone call, sending an internet e-mail, sending an SMS
  27. * message, sending a fax, etc. Palm defines some common Service Class
  28. * ID's and the corresponding extra details structures in this header file.
  29. *
  30. * 3rd party developers:
  31. * If none of these service class ID's match the service performed by your
  32. * helper, you must register a unique service class ID using the Creator ID
  33. * registry on Palm's web site (or use a creator ID that you already own).
  34. * A group of developers may elect to support the same service class ID for
  35. * interoperability.
  36. *
  37. *****************************************************************************)
  38. {$IFNDEF FPC_DOTTEDUNITS}
  39. unit helperserviceclass;
  40. {$ENDIF FPC_DOTTEDUNITS}
  41. interface
  42. {$IFDEF FPC_DOTTEDUNITS}
  43. uses PalmApi.Palmos;
  44. {$ELSE FPC_DOTTEDUNITS}
  45. uses palmos;
  46. {$ENDIF FPC_DOTTEDUNITS}
  47. //------------------------------------------------------------------------
  48. // Current Helper Service Class ID's
  49. //------------------------------------------------------------------------
  50. //
  51. // Helpers of this Service Class make a voice telephone call.
  52. //
  53. // The telephone number to dial is passed in the 'pData' element of the main
  54. // structure (HelperNotifyExecuteType)
  55. //
  56. // The 'pDetails' struct member is NULL for this service class.
  57. //
  58. const
  59. kHelperServiceClassIDVoiceDial = Rsc('voic');
  60. //
  61. // Helpers of this Service Class send an Internet mail message.
  62. //
  63. // "To" address(es) are passed in the 'pData' element of the main structure
  64. // (HelperNotifyExecuteType)
  65. //
  66. // The 'pDetails' struct member may optionally point to
  67. // HelperServiceEMailDetailsType for this service class.
  68. //
  69. kHelperServiceClassIDEMail = Rsc('mail');
  70. type
  71. _HelperServiceEMailDetailsType = record
  72. version: UInt16; // this is version 1
  73. cc: PAnsiChar; // IN: carbon copy address string or NULL -- will
  74. // be duplicated by helper if necessary;
  75. // multiple addresses are separated by
  76. // semicolon (ex. "[email protected]; [email protected]")
  77. subject: PAnsiChar; // IN: subject string or NULL -- will be duplicated
  78. // by helper if necessary (ex. "helper API")
  79. message: PAnsiChar; // IN: initial message body string or NULL -- will be
  80. // duplicated by helper if necessary (ex.
  81. // "Lets discuss the helper API tomorrow.")
  82. end;
  83. HelperServiceEMailDetailsType = _HelperServiceEMailDetailsType;
  84. //
  85. // Helpers of this Service Class send an SMS message.
  86. //
  87. // SMS mailbox number is passed in the 'pData' element of the main structure
  88. // (HelperNotifyExecuteType).
  89. //
  90. // The 'pDetails' struct member may optionally point to
  91. // HelperServiceSMSDetailsType for this service class.
  92. //
  93. const
  94. kHelperServiceClassIDSMS = Rsc('sms_');
  95. type
  96. _HelperServiceSMSDetailsType = record
  97. version: UInt16; // this is version 1
  98. message: PAnsiChar; // IN: initial message body string or NULL -- will be
  99. // duplicated by helper if necessary (ex.
  100. // "Lets discuss the helper API tomorrow.")
  101. end;
  102. HelperServiceSMSDetailsType = _HelperServiceSMSDetailsType;
  103. //
  104. // Helpers of this Service Class send a fax.
  105. //
  106. // The fax number is passed in the 'pData' element of the main structure
  107. // (HelperNotifyExecuteType).
  108. //
  109. // The 'pDetails' struct member is NULL for this service class.
  110. //
  111. const
  112. kHelperServiceClassIDFax = Rsc('fax_');
  113. implementation
  114. end.