home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12otk1.exe / include / Arbitrat.idl < prev    next >
Text File  |  1997-04-02  |  4KB  |  132 lines

  1. /* @(#)Z 1.2 com/src/ui/idl/Arbitrat.idl, odui, od96os2, odos29712d 97/03/21 17:20:46 (96/07/15 18:28:15) */
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odui
  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. //#    Copyright:    (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  29.  
  30. #ifndef _ARBITRAT_
  31. #define _ARBITRAT_
  32.  
  33. #ifndef _ODOBJECT_
  34. #include "ODObject.idl"
  35. #endif
  36.  
  37. //=====================================================================================
  38. // Class defined in this interface
  39. //=====================================================================================
  40.  
  41. interface  ODArbitrator;
  42.  
  43. //=====================================================================================
  44. // Classes used by this interface
  45. //=====================================================================================
  46.  
  47. interface  ODFocusModule;
  48. interface  ODFocusSet;
  49. interface  ODFocusOwnerIterator;
  50. interface  ODFrame;
  51.  
  52.  
  53.  
  54. //=====================================================================================
  55. // Class ODArbitrator
  56. //=====================================================================================
  57.  
  58. interface ODArbitrator :  ODObject
  59. {    
  60.    ODBoolean RequestFocusSet(in ODFocusSet focusSet,
  61.                                  in ODFrame requestingFrame);
  62.     
  63.    ODBoolean RequestFocus(in ODTypeToken focus,
  64.                               in ODFrame requestingFrame);
  65.         
  66.    void RelinquishFocusSet(in ODFocusSet focusSet,
  67.                               in ODFrame relinquishingFrame);
  68.         
  69.    void RelinquishFocus(in ODTypeToken focus,
  70.                            in ODFrame relinquishingFrame);
  71.   
  72.    void TransferFocus(in ODTypeToken focus,
  73.                          in ODFrame transferringFrame,
  74.                       in ODFrame newOwner);
  75.                  
  76.    void TransferFocusSet(in ODFocusSet focusSet, 
  77.                            in ODFrame transferringFrame,
  78.                         in ODFrame newOwner);
  79.                  
  80.    ODFrame AcquireFocusOwner(in ODTypeToken focus);
  81.     
  82.    ODFocusOwnerIterator CreateOwnerIterator(in ODTypeToken focus);
  83.           
  84.    void RegisterFocus(in ODTypeToken focus,
  85.                          in ODFocusModule focusModule);
  86.       
  87.    void UnregisterFocus(in ODTypeToken focus);
  88.  
  89.    ODBoolean IsFocusRegistered(in ODTypeToken focus);
  90.   
  91.    ODBoolean IsFocusExclusive(in ODTypeToken focus);
  92.   
  93.    ODFocusModule GetFocusModule(in ODTypeToken focus);
  94.    
  95.    ODFocusSet CreateFocusSet();
  96.  
  97.  
  98. #ifdef __SOMIDL__
  99.     implementation
  100.     {
  101.         majorversion = 1; minorversion = 0;
  102.         
  103.         functionprefix = ODArbitrator;
  104.         
  105.         override:
  106.             somUninit,
  107.             Purge;
  108.         releaseorder:
  109.             RequestFocusSet,
  110.             RequestFocus,
  111.             RelinquishFocusSet,
  112.             RelinquishFocus,
  113.             TransferFocus,
  114.             TransferFocusSet,
  115.             AcquireFocusOwner,
  116.             CreateOwnerIterator,
  117.             RegisterFocus,
  118.             UnregisterFocus,
  119.             IsFocusRegistered,
  120.             IsFocusExclusive,
  121.             GetFocusModule,
  122.             CreateFocusSet,
  123.             reserved1;
  124.  
  125.  
  126.     
  127.   };
  128. #endif //# __SOMIDL__
  129. };
  130.  
  131. #endif //# _ARBITRAT_
  132.