home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: InfoMgt / InfoMgt.zip / shr93.zip / NOTIFY.CSC < prev    next >
Text File  |  1993-04-12  |  3KB  |  87 lines

  1. #***********************************************************************
  2. #
  3. #  OS/2 Work Place Shell Sample Program - ShrNotifier
  4. #
  5. #  Copyright (C) 1993 IBM Corporation
  6. #
  7. #    DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  8. #    sample code created by IBM Corporation.  This sample code is
  9. #    not part of any standard or IBM product and is provided to you
  10. #    solely for the purpose of assisting you in the development of
  11. #    your applications.  The code is provided "AS IS".  ALL
  12. #    WARRANTIES ARE EXPRESSLY DISCLAIMED, INCLUDING THE IMPLIED
  13. #    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  14. #    PURPOSE.  IBM shall not be liable for any damages arising out
  15. #    of your use of the sample code, even if IBM has been advised of
  16. #    the possibility of such damages.
  17. #
  18. #***********************************************************************
  19.  
  20. #***********************************************************************
  21. #   Include the class definition file for the parent class
  22. #***********************************************************************
  23.  
  24. include <somobj.sc>
  25.  
  26. #***********************************************************************
  27. #   Define the new class
  28. #***********************************************************************
  29.  
  30. class: ShrNotifier,
  31.        external stem   = ntf,
  32.        local,
  33.        external prefix = ntf_,
  34.        major version   = 1,
  35.        minor version   = 2;
  36.  
  37. --
  38. -- CLASS: ShrNotifier
  39. --
  40. -- CLASS HIERARCHY:
  41. --
  42. --     SOMObject
  43. --       └── ShrNotifier
  44. --
  45. -- DESCRIPTION:
  46. --
  47. --   See NOTIFY.C for more details.
  48. --   See ADDRBK.C and PERSON.C for example uses.
  49. --
  50.  
  51. #***********************************************************************
  52. #   Specify the parent class
  53. #***********************************************************************
  54.  
  55. parent: SOMObject;
  56.  
  57. #***********************************************************************
  58. #   Define instance data
  59. #***********************************************************************
  60.  
  61. data:
  62.  
  63.    SOMObject *somWindowNotifyList;      // List of interested windows
  64.  
  65. #***********************************************************************
  66. #   Define methods
  67. #***********************************************************************
  68.  
  69. methods:
  70.  
  71. #***********************************************************************
  72. #   Define instance methods
  73. #***********************************************************************
  74.  
  75. SOMObject *shrQueryWindowNotifyList(), private;
  76.  
  77. BOOL shrAddInterestedWindow(HWND hwndInterested);
  78. BOOL shrRemoveInterestedWindow(HWND hwndInterested);
  79. ULONG shrNotifyInterestedWindows
  80.     (SOMAny *somChangedObject, ULONG ulChangeMsg, MPARAM mp1, MPARAM mp2);
  81.  
  82. #***********************************************************************
  83. #   Specify instance methods being overridden
  84. #***********************************************************************
  85.  
  86. override somUninit;
  87.