Deposit.sgm 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <!-- $XConsortium: Deposit.sgm /main/5 1996/08/30 14:45:29 rws $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCDI.MAN282.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN282.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>Deposit</RefEntryTitle>
  13. <ManVolNum>special file</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Symbol Role="Message">Deposit</Symbol></RefName>
  17. <RefPurpose>save a document to its backing store
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: Deposit.sgm /main/5 1996/08/30 14:45:29 rws $-->
  21. <!-- CDE Common Source Format, Version 1.0.0-->
  22. <!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  23. <!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  24. <!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  25. <!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  26. <RefSynopsisDiv>
  27. <Synopsis>[<Symbol Role="Variable">file</Symbol>] Deposit(in <Emphasis>mediaType contents</Emphasis>
  28. [in messageID <Emphasis>commission</Emphasis>]);
  29. </Synopsis>
  30. </RefSynopsisDiv>
  31. <RefSect1>
  32. <Title>DESCRIPTION</Title>
  33. <Para>The
  34. <Symbol Role="Message">Deposit</Symbol> request saves a document to its backing store.
  35. This request is different from the
  36. <Symbol Role="Message">Save</Symbol> request in that the requester (not the handler) has the data to be saved.
  37. </Para>
  38. <Para>The
  39. <Emphasis>contents</Emphasis> argument
  40. is the contents of the document.
  41. If this argument is unset
  42. (in other words, has a value of
  43. <Literal>(char *)0</Literal>), then the contents of the document are in
  44. the file named in the message's
  45. <Symbol Role="Variable">file</Symbol> attribute.
  46. The data type
  47. (<Emphasis>mediaType</Emphasis>) of the
  48. <Emphasis>contents</Emphasis> argument should be
  49. <Literal>string</Literal>, unless nulls are valid in the given media type,
  50. in which case the data type must be
  51. <Literal>bytes</Literal>.</Para>
  52. <Para>The
  53. <Emphasis>commission</Emphasis> argument contains the message ID of the
  54. <Symbol Role="Message">Edit</Symbol> request that caused the creation of this buffer.
  55. </Para>
  56. </RefSect1>
  57. <RefSect1>
  58. <Title>APPLICATION USAGE</Title>
  59. <Para>The
  60. &cdeman.ttmedia.load; function can be used to register for,
  61. and help process, this message.
  62. </Para>
  63. <Para>This message can be sent with the
  64. &cdeman.ttmedia.Deposit; function.
  65. </Para>
  66. <Para>The
  67. <Symbol Role="Message">Deposit</Symbol> request is useful for cases where the user may perform
  68. an intermediate save of modifications to a document that is the subject of an
  69. <Symbol Role="Message">Edit</Symbol> or
  70. <Symbol Role="Message">Display</Symbol> request in progress.
  71. In the latter case, the
  72. <Symbol Role="Message">Deposit</Symbol> may fail on a
  73. <SystemItem Class="Constant">TT_DESKTOP_EACCES</SystemItem> error if the handler does not allow updates to the document being displayed.
  74. </Para>
  75. <Para>Handlers receiving this request should reply before deleting
  76. any file named in the message's
  77. <Symbol Role="Variable">file</Symbol> attribute,
  78. but this is optional
  79. and applications should not rely on this.
  80. </Para>
  81. </RefSect1>
  82. <RefSect1>
  83. <Title>ERRORS</Title>
  84. <Para>The ToolTalk service may return one of the following errors
  85. in processing the
  86. <Symbol Role="Message">Deposit</Symbol> request:
  87. </Para>
  88. <VariableList>
  89. <VarListEntry>
  90. <Term>TT_DESKTOP_EACCES</Term>
  91. <ListItem>
  92. <Para>The document is read-only.
  93. </Para>
  94. </ListItem>
  95. </VarListEntry>
  96. <VarListEntry>
  97. <Term>TT_DESKTOP_ENOENT</Term>
  98. <ListItem>
  99. <Para>The file that was alleged to contain the document does not exist.
  100. </Para>
  101. </ListItem>
  102. </VarListEntry>
  103. <VarListEntry>
  104. <Term>TT_DESKTOP_ENODATA</Term>
  105. <ListItem>
  106. <Para>The in-mode
  107. <Emphasis>contents</Emphasis> argument had no value and the
  108. <Symbol Role="Variable">file</Symbol> attribute
  109. of the message was not set.
  110. </Para>
  111. </ListItem>
  112. </VarListEntry>
  113. <VarListEntry>
  114. <Term>TT_MEDIA_ERR_FORMAT</Term>
  115. <ListItem>
  116. <Para>The document is not a valid instance of the media type.
  117. </Para>
  118. </ListItem>
  119. </VarListEntry>
  120. </VariableList>
  121. </RefSect1>
  122. <RefSect1>
  123. <Title>SEE ALSO</Title>
  124. <Para>&cdeman.ttmedia.load;, &cdeman.ttmedia.Deposit;; <Emphasis>Intro</Emphasis>, <Symbol Role="Message">Display</Symbol>, <Symbol Role="Message">Edit</Symbol>, <Symbol Role="Message">Status</Symbol> requests.
  125. </Para>
  126. </RefSect1>
  127. </RefEntry>
  128. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->