home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / ievtpriv.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  2.1 KB  |  62 lines

  1. #ifndef _IEVTPRIV_INL_
  2. #define _IEVTPRIV_INL_ 0
  3. /*******************************************************************************
  4. * FILE NAME: ievtpriv.inl                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the definition of the inline functions for the          *
  8. *   classes declared in ievtpriv.hpp.                                          *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #ifndef _IEVTPRIV_
  19.   #undef  _IEVTPRIV_INL_
  20.   #define _IEVTPRIV_INL_ 1
  21.   #include <ievtpriv.hpp>
  22. #endif
  23.  
  24. #if _IEVTPRIV_INL_
  25.   #define inline
  26. #endif
  27.  
  28. inline IEventPrivateData::IEventPrivateData()
  29.   : fCursor(0), fHandlerList(0)
  30. {
  31. }
  32.  
  33. inline IEventPrivateData::~IEventPrivateData()
  34. {
  35. }
  36.  
  37. inline IEventPrivateData& IEventPrivateData::setHandlerCursor(
  38.                                              IHandlerList::Cursor* cursor)
  39. {
  40.   fCursor = cursor;
  41.   return *this;
  42. }
  43.  
  44. inline IEventPrivateData& IEventPrivateData::setHandlerList(
  45.                                              IHandlerList* handlerList)
  46. {
  47.   fHandlerList = handlerList;
  48.   return *this;
  49. }
  50.  
  51. inline IHandlerList::Cursor* IEventPrivateData::handlerCursor() const
  52. {
  53.   return fCursor;
  54. }
  55.  
  56. inline IHandlerList* IEventPrivateData::handlerList() const
  57. {
  58.   return fHandlerList;
  59. }
  60.  
  61. #endif // _IEVTPRIV_INL_
  62.