home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osr1.exe / src / ilsv2as.cpp < prev    next >
Text File  |  1997-03-21  |  7KB  |  182 lines

  1. /* @(#)Z 1.3 os2/src/storage/ilsv2as.cpp, oddataxfer, od96os2, odos29712d 97/03/21 17:38:59 (96/08/23 01:43:59) */
  2. //====START_GENERATED_PROLOG======================================
  3. //
  4. //
  5. //   COMPONENT_NAME: oddataxfer
  6. //
  7. //   CLASSES: none
  8. //
  9. //   ORIGINS: 82,27
  10. //
  11. //
  12. //   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13. //   All Rights Reserved
  14. //   Licensed Materials - Property of IBM
  15. //   US Government Users Restricted Rights - Use, duplication or
  16. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. //       
  18. //   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. //   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20. //   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. //   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. //   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. //   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24. //   OR PERFORMANCE OF THIS SOFTWARE.
  25. //
  26. //====END_GENERATED_PROLOG========================================
  27. //
  28.  
  29. #ifdef _PLATFORM_OS2_
  30.  
  31. #ifndef SOM_Module_ilsv2as_Source
  32. #define SOM_Module_ilsv2as_Source
  33. #endif
  34. #define IODLinkServiceToAvailServer_Class_Source
  35.  
  36. #include <ISOStr.h>
  37. #include <IODDefs.xh>
  38. #include "ILSv2AS.xih"
  39.  
  40.  
  41. /*
  42.  * RegisterDoc is called when a new document is opened.
  43.  */
  44.  
  45. SOM_Scope IODDocumentID  SOMLINK RegisterDoc(IODLinkServiceToAvailServer *somSelf,
  46.                                               Environment *ev,
  47.                                              IODFileName docPathName,
  48.                                              IODAvailServerToLinkService* linkService)
  49. {
  50.     /* IODLinkServiceToAvailServerData *somThis = IODLinkServiceToAvailServerGetData(somSelf); */
  51.     IODLinkServiceToAvailServerMethodDebug("IODLinkServiceToAvailServer","RegisterDoc");
  52.  
  53.     /* Return statement to be customized: */
  54.     { IODDocumentID retVal;  return (retVal); }
  55. }
  56.  
  57. /*
  58.  * UnregisterDoc is called when a document is destroyed.
  59.  */
  60.  
  61. SOM_Scope void  SOMLINK UnregisterDoc(IODLinkServiceToAvailServer *somSelf,
  62.                                        Environment *ev, IODDocumentID docID)
  63. {
  64.     /* IODLinkServiceToAvailServerData *somThis = IODLinkServiceToAvailServerGetData(somSelf); */
  65.     IODLinkServiceToAvailServerMethodDebug("IODLinkServiceToAvailServer","UnregisterDoc");
  66.  
  67. }
  68.  
  69. /*
  70.  * DocOpened is called when a document already registered with the AS
  71.  * is opened.  If the path name does not match the path name registered
  72.  * with that document id, then an exception is returned and the document
  73.  * is not opened.
  74.  */
  75.  
  76. SOM_Scope ODBoolean  SOMLINK DocOpened(IODLinkServiceToAvailServer *somSelf,
  77.                                         Environment *ev, IODDocumentID docID,
  78.                                        IODFileName docPathName,
  79.                                        IODAvailServerToLinkService* linkService,
  80.                                        IODFileName* oldPathName)
  81. {
  82.     /* IODLinkServiceToAvailServerData *somThis = IODLinkServiceToAvailServerGetData(somSelf); */
  83.     IODLinkServiceToAvailServerMethodDebug("IODLinkServiceToAvailServer","DocOpened");
  84.  
  85.     /* Return statement to be customized: */
  86.     { ODBoolean retVal;  return (retVal); }
  87. }
  88.  
  89. /*
  90.  * DocClosed is called when an opened document is closed.
  91.  */
  92.  
  93. SOM_Scope void  SOMLINK DocClosed(IODLinkServiceToAvailServer *somSelf,
  94.                                    Environment *ev, IODDocumentID docID)
  95. {
  96.     /* IODLinkServiceToAvailServerData *somThis = IODLinkServiceToAvailServerGetData(somSelf); */
  97.     IODLinkServiceToAvailServerMethodDebug("IODLinkServiceToAvailServer","DocClosed");
  98.  
  99. }
  100.  
  101. /*
  102.  * DocMoved is called when a registered document's persistent storage
  103.  * changes from oldPathName to newPathName.
  104.  */
  105.  
  106. SOM_Scope void  SOMLINK DocMoved(IODLinkServiceToAvailServer *somSelf,
  107.                                   Environment *ev, IODDocumentID docID,
  108.                                  IODFileName oldPathName, IODFileName newPathName)
  109. {
  110.     /* IODLinkServiceToAvailServerData *somThis = IODLinkServiceToAvailServerGetData(somSelf); */
  111.     IODLinkServiceToAvailServerMethodDebug("IODLinkServiceToAvailServer","DocMoved");
  112.  
  113. }
  114.  
  115. /*
  116.  * RegisterLink is called when a new LinkSource has been
  117.  * created in the document.  It provides a pointer to the LinkSource so
  118.  * the AS may forward calls to it.  The AS returns a unique (within the
  119.  * AS) ID for this LinkSource.  (LinkOpened need not be called).
  120.  */
  121.  
  122. SOM_Scope ODLinkID  SOMLINK RegisterLink(IODLinkServiceToAvailServer *somSelf,
  123.                                           Environment *ev, IODDocumentID docID,
  124.                                          IODLinkTargetToLinkSource* linkSrc)
  125. {
  126.     /* IODLinkServiceToAvailServerData *somThis = IODLinkServiceToAvailServerGetData(somSelf); */
  127.     IODLinkServiceToAvailServerMethodDebug("IODLinkServiceToAvailServer","RegisterLink");
  128.  
  129.     /* Return statement to be customized: */
  130.     { ODLinkID retVal;  return (retVal); }
  131. }
  132.  
  133. /*
  134.  * LinkOpened is called when an existing LinkSource is internalized in
  135.  * a document.  It provides a pointer to the LinkSource so
  136.  * the AS may forward calls to it.  The AS returns the current
  137.  * AuxiliaryState associated with this LinkSource, and whether some
  138.  * target currently holds a lock on this LinkSource ContentSU.
  139.  */
  140.  
  141. SOM_Scope void  SOMLINK LinkOpened(IODLinkServiceToAvailServer *somSelf,
  142.                                     Environment *ev, ODLinkID linkID,
  143.                                    IODLinkTargetToLinkSource* linkSrc,
  144.                                    IODAuxiliaryState** auxState,
  145.                                    ODBoolean* isLocked)
  146. {
  147.     /* IODLinkServiceToAvailServerData *somThis = IODLinkServiceToAvailServerGetData(somSelf); */
  148.     IODLinkServiceToAvailServerMethodDebug("IODLinkServiceToAvailServer","LinkOpened");
  149.  
  150. }
  151.  
  152. /*
  153.  * LinkClosed is called when a LinkSource is released in a document.
  154.  * It provides the current AuxiliaryState for this LinkSource.
  155.  * The AS will now process calls for this LinkSource.
  156.  * (Note that local LinkTargets will not have a reference any longer to
  157.  * the LinkSource object in the document.)
  158.  */
  159.  
  160. SOM_Scope void  SOMLINK LinkClosed(IODLinkServiceToAvailServer *somSelf,
  161.                                     Environment *ev, ODLinkID linkID,
  162.                                    IODAuxiliaryState* auxState)
  163. {
  164.     /* IODLinkServiceToAvailServerData *somThis = IODLinkServiceToAvailServerGetData(somSelf); */
  165.     IODLinkServiceToAvailServerMethodDebug("IODLinkServiceToAvailServer","LinkClosed");
  166.  
  167. }
  168.  
  169. /*
  170.  * RemoveLink is called when a LinkSource is removed from a document.
  171.  */
  172.  
  173. SOM_Scope void  SOMLINK RemoveLink(IODLinkServiceToAvailServer *somSelf,
  174.                                     Environment *ev, ODLinkID linkID)
  175. {
  176.     /* IODLinkServiceToAvailServerData *somThis = IODLinkServiceToAvailServerGetData(somSelf); */
  177.     IODLinkServiceToAvailServerMethodDebug("IODLinkServiceToAvailServer","RemoveLink");
  178.  
  179. }
  180.  
  181. #endif
  182.