home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / DSPLITEM.H < prev    next >
C/C++ Source or Header  |  1997-02-28  |  2KB  |  55 lines

  1. /*====START_GENERATED_PROLOG======================================
  2.  */
  3. /*
  4.  *   COMPONENT_NAME: odui
  5.  *
  6.  *   CLASSES:   DispatchModuleListItem
  7.  *
  8.  *   ORIGINS: 82,27
  9.  *
  10.  *
  11.  *   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  12.  *   All Rights Reserved
  13.  *   Licensed Materials - Property of IBM
  14.  *   US Government Users Restricted Rights - Use, duplication or
  15.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  16.  *       
  17.  *   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18.  *   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  19.  *   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  20.  *   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  21.  *   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  22.  *   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  23.  *   OR PERFORMANCE OF THIS SOFTWARE.
  24.  */
  25. /*====END_GENERATED_PROLOG========================================
  26.  */
  27. /* @(#) 1.3 com/src/ui/dsplitem.h, odui, od96os2, odos29646d 10/31/96 12:45:54 [11/15/96 15:51:25] */
  28. /********************************************************************/
  29. /*                                                                  */
  30. /* Copyright (C) Apple Computer, Inc., 1994                         */
  31. /*                                                                  */
  32. /*                                                                  */
  33. /********************************************************************/
  34. #ifndef _DSPLITEM_
  35. #define _DSPLITEM_
  36.  
  37. /* The following class definitions are used by the IKeySet collection */
  38. /* class in Disptch.cpp.  These must be in a separate include file    */
  39. /* for automatic generation of template functions.                    */
  40.  
  41. class ODDispatchModule;
  42.  
  43. class DispatchModuleListItem {
  44.    int key;
  45.    ODDispatchModule *dispmod;
  46. public:
  47.    DispatchModuleListItem(ODDispatchModule* module, int eventData) {
  48.       dispmod = module;
  49.       key = eventData;
  50.    }
  51.    ODDispatchModule* DispatchModule() const { return dispmod; }
  52.    friend int const &key(DispatchModuleListItem const &e) { return e.key; }
  53. };
  54. #endif
  55.