helperserviceclass.pp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. unit helperserviceclass;
  39. interface
  40. uses palmos;
  41. //------------------------------------------------------------------------
  42. // Current Helper Service Class ID's
  43. //------------------------------------------------------------------------
  44. //
  45. // Helpers of this Service Class make a voice telephone call.
  46. //
  47. // The telephone number to dial is passed in the 'pData' element of the main
  48. // structure (HelperNotifyExecuteType)
  49. //
  50. // The 'pDetails' struct member is NULL for this service class.
  51. //
  52. const
  53. kHelperServiceClassIDVoiceDial = Rsc('voic');
  54. //
  55. // Helpers of this Service Class send an Internet mail message.
  56. //
  57. // "To" address(es) are passed in the 'pData' element of the main structure
  58. // (HelperNotifyExecuteType)
  59. //
  60. // The 'pDetails' struct member may optionally point to
  61. // HelperServiceEMailDetailsType for this service class.
  62. //
  63. kHelperServiceClassIDEMail = Rsc('mail');
  64. type
  65. _HelperServiceEMailDetailsType = record
  66. version: UInt16; // this is version 1
  67. cc: PChar; // IN: carbon copy address string or NULL -- will
  68. // be duplicated by helper if necessary;
  69. // multiple addresses are separated by
  70. // semicolon (ex. "[email protected]; [email protected]")
  71. subject: PChar; // IN: subject string or NULL -- will be duplicated
  72. // by helper if necessary (ex. "helper API")
  73. message: PChar; // IN: initial message body string or NULL -- will be
  74. // duplicated by helper if necessary (ex.
  75. // "Lets discuss the helper API tomorrow.")
  76. end;
  77. HelperServiceEMailDetailsType = _HelperServiceEMailDetailsType;
  78. //
  79. // Helpers of this Service Class send an SMS message.
  80. //
  81. // SMS mailbox number is passed in the 'pData' element of the main structure
  82. // (HelperNotifyExecuteType).
  83. //
  84. // The 'pDetails' struct member may optionally point to
  85. // HelperServiceSMSDetailsType for this service class.
  86. //
  87. const
  88. kHelperServiceClassIDSMS = Rsc('sms_');
  89. type
  90. _HelperServiceSMSDetailsType = record
  91. version: UInt16; // this is version 1
  92. message: PChar; // IN: initial message body string or NULL -- will be
  93. // duplicated by helper if necessary (ex.
  94. // "Lets discuss the helper API tomorrow.")
  95. end;
  96. HelperServiceSMSDetailsType = _HelperServiceSMSDetailsType;
  97. //
  98. // Helpers of this Service Class send a fax.
  99. //
  100. // The fax number is passed in the 'pData' element of the main structure
  101. // (HelperNotifyExecuteType).
  102. //
  103. // The 'pDetails' struct member is NULL for this service class.
  104. //
  105. const
  106. kHelperServiceClassIDFax = Rsc('fax_');
  107. implementation
  108. end.