home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Found / FWNotifn / Include / FWNotifn.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.4 KB  |  86 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWNotifn.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    (c) 1993, 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWNOTIFN_H
  11. #define FWNOTIFN_H
  12.  
  13. #ifndef FWSTDDEF_H
  14. #include "FWStdDef.h"
  15. #endif
  16.  
  17. #ifndef FWINTERE_H
  18. #include "FWIntere.h"
  19. #endif
  20.  
  21. #if FW_LIB_EXPORT_PRAGMAS
  22. #pragma lib_export on
  23. #endif
  24.  
  25. //========================================================================================
  26. // Forward declarations
  27. //========================================================================================
  28.  
  29. class FW_CLASS_ATTR FW_CInterest;
  30. class FW_CLASS_ATTR FW_MNotifier;
  31.  
  32. //========================================================================================
  33. // CLASS FW_CNotification
  34. //========================================================================================
  35.  
  36. class FW_CLASS_ATTR FW_CNotification
  37. {
  38. public:
  39.                         FW_CNotification(const FW_CInterest& interest);
  40.                         FW_CNotification(const FW_CNotification& other);
  41.     virtual            ~FW_CNotification();
  42.     
  43.     FW_Boolean            operator==(const FW_CNotification& other);
  44.     FW_CNotification&    operator=(const FW_CNotification& other);
  45.  
  46.     FW_CInterest*        GetInterest() const;
  47.     FW_TypeToken        GetName() const;
  48.     FW_MNotifier*        GetNotifier() const;
  49.  
  50. private:
  51.     FW_CInterest*        fInterest;
  52. };
  53.  
  54. //----------------------------------------------------------------------------------------
  55. // FW_CNotification::GetInterest
  56. //----------------------------------------------------------------------------------------
  57.  
  58. inline FW_CInterest* FW_CNotification::GetInterest() const
  59. {
  60.     return fInterest;
  61. }
  62.  
  63. //----------------------------------------------------------------------------------------
  64. // FW_CNotification::GetName
  65. //----------------------------------------------------------------------------------------
  66.  
  67. inline FW_TypeToken FW_CNotification::GetName() const
  68. {
  69.     return fInterest->GetName();
  70. }
  71.  
  72. //----------------------------------------------------------------------------------------
  73. // FW_CNotification::GetInterest
  74. //----------------------------------------------------------------------------------------
  75.  
  76. inline FW_MNotifier* FW_CNotification::GetNotifier() const
  77. {
  78.     return fInterest->GetNotifier();
  79. }
  80.  
  81. #if FW_LIB_EXPORT_PRAGMAS
  82. #pragma lib_export off
  83. #endif
  84.  
  85. #endif
  86.