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

  1. /* @(#)Z 1.3 os2/src/storage/idl/ILTr2Lsr.idl, oddataxfer, od96os2, odos29712d 97/03/21 17:21:40 (96/08/23 01:43:37) */
  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. /********************************************************************/
  30. /*                                                                  */
  31. /* Copyright (C) Apple Computer, Inc., 1994                         */
  32. /*                                                                  */
  33. /********************************************************************/
  34.  
  35. #ifndef _ILTR2LSR_
  36. #define _ILTR2LSR_
  37.  
  38. #include <ODObject.idl>
  39. #include <IODDefs.idl>
  40.  
  41. interface IODLinkService;
  42. interface IODLinkTarget;
  43. interface ODStorageUnit;
  44.  
  45. interface IODLinkTargetToLinkSource : ODObject
  46. {
  47.   #ifdef __PRIVATE__
  48.  
  49.     ODUpdateID ForwardGetUpdateID (in ODLinkID linkID);
  50.  
  51.     ODTime ForwardGetChangeTime (in ODLinkID linkID);
  52.  
  53.     ODStorageUnit ForwardGetContentStorageUnit(in ODLinkID linkID,
  54.                                                in ODLinkKey key);
  55.  
  56.     ODBoolean ForwardLock (in ODLinkID linkID,
  57.                            in ODULong wait,
  58.                            out ODLinkKey key);
  59.  
  60.     void ForwardUnlock (in ODLinkID linkID,
  61.                         in ODLinkKey key,
  62.                         in ODBoolean isLocal);
  63.  
  64.     void GetSourcePartDescription (in ODLinkID linkID,
  65.                                    out ODLinkConnectionData* srcPartDesc);
  66.       // Called by LinkTarget to get the description of the source Part.
  67.  
  68.     void LinkTargetClosed (in ODLinkID linkID,
  69.                            in ODLinkConnectionID trgtID,
  70.                            in ODBoolean isLocal);
  71.       // Called by a tracked LinkTarget to inform that it is being closed.
  72.       // A tracked registered LinkTarget does not have to call
  73.       //   LinkTargetUnregister but this method only.
  74.  
  75.     void LinkTargetRemoved (in ODLinkID linkID,
  76.                             in ODLinkConnectionID trgtID,
  77.                             in ODBoolean isLocal);
  78.       // Called by tracked LinkTarget to inform that the target part has just
  79.       //   broken the link.
  80.  
  81.     void LinkTargetReopened (in ODLinkID linkID,
  82.                              in ODLinkConnectionID trgtID,
  83.                              in ODULong pid,
  84.                              in ODLinkConnectionData trgtPartDesc,
  85.                              in IODLinkTarget linkTrgt,
  86.                              inout ODBoolean isLocal);
  87.       // Called by a tracked LinkTarget to inform that it is reopened.
  88.  
  89.     void AddLinkTarget (in ODLinkID linkid,
  90.                         in ODULong pid,
  91.                         in ODLinkConnectionData trgtPartDesc,
  92.                         in IODLinkTarget linkTrgt,
  93.                         out ODStorageUnitID sourceSUID,
  94.                         out ODLinkConnectionID trgtID,
  95.                         out ODBoolean isLocal,
  96.                         out ODBoolean trackTrgt);
  97.       // Called in LinkService::EstablishLinkFromTSpec (which is called
  98.       //   in LinkSpec::EstablishLink) or
  99.       //   PersistentLinkSpec::EstablishLink to add a new LinkTarget to the
  100.       //   LinkSource from a LinkSpec.
  101.      // Also called when a link target is copied without its
  102.       // source; the result is a new link to the original source
  103.  
  104.  
  105.     void LockToRead (in ODLinkID linkID,
  106.                      in ODULong wait,
  107.                      out ODLinkKey key);
  108.       // Called by LinkTarget to forward the Lock method of ODLink
  109.  
  110.     void RegisterTrackedLinkTarget (in ODLinkID linkID,
  111.                                     in ODLinkConnectionID trgtID,
  112.                                     in ODBoolean isLocal);
  113.       // Called by tracked LinkTarget to forward the RegisterDependent method
  114.       //   of ODLink.
  115.  
  116.     void RegisterUntrackedLinkTarget (in ODLinkID linkID,
  117.                                       in IODLinkTarget linkTrgt,
  118.                                       in ODLinkConnectionData* trgtPartDesc,
  119.                                       in ODBoolean isLocal,
  120.                                       out ODLinkConnectionID trgtID);
  121.       // Called by untracked LinkTarget to forward the RegisterDependent method
  122.       //   of ODLink.
  123.  
  124.     void ShowSourceContentFor (in ODLinkID linkID,
  125.                                in string hostName);
  126.       // Called by LinkTarget to forward the ShowSourceContent method of
  127.       //   ODLink.
  128.       // The hostName is needed to check if the request came from a local
  129.       //   LinkTarget.
  130.  
  131.     void TargetPartDescriptionChanged (in ODLinkID linkID,
  132.                                        in ODLinkConnectionID trgtID,
  133.                                        in ODBoolean isLocal,
  134.                                        in ODLinkConnectionData trgtPartDesc);
  135.       // Called by a tracked LinkTarget to update its Part description.
  136.  
  137.     void UnregisterLinkTarget (in ODLinkID linkID,
  138.                                in ODLinkConnectionID trgtID,
  139.                                in ODBoolean isLocal);
  140.       // Called by LinkTarget to forward the UnregisterDependent method of
  141.       //   ODLink.
  142.  
  143.   #endif //__PRIVATE__
  144.  
  145.   #ifdef __SOMIDL__
  146.     implementation {
  147.       releaseorder:
  148.         #ifdef __PRIVATE__
  149.           ForwardGetUpdateID,
  150.           ForwardGetChangeTime,
  151.           ForwardGetContentStorageUnit,
  152.           ForwardLock,
  153.           ForwardUnlock,
  154.           GetSourcePartDescription,
  155.       LinkTargetClosed,
  156.       LinkTargetRemoved,
  157.       LinkTargetReopened,
  158.           AddLinkTarget,
  159.           LockToRead,
  160.           RegisterTrackedLinkTarget,
  161.           RegisterUntrackedLinkTarget,
  162.           ShowSourceContentFor,
  163.           TargetPartDescriptionChanged,
  164.           UnregisterLinkTarget;
  165.         #else
  166.           reserved1,
  167.           reserved2,
  168.           reserved3,
  169.           reserved4,
  170.           reserved5,
  171.           reserved6,
  172.           reserved7,
  173.           reserved8,
  174.           reserved9,
  175.           reserved10,
  176.           reserved11,
  177.           reserved12,
  178.           reserved13,
  179.           reserved14,
  180.           reserved15,
  181.           reserved16;
  182.     #endif //__PRIVATE__
  183.     };
  184.   #endif //__SOMIDL__
  185. };
  186.  
  187. #endif //_ILTR2LSR_
  188. 
  189.