home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 7 / FreshFishVol7.bin / bbs / gnu / aplusplus-1.01-src.lha / GNU / src / amiga / APlusPlus-1.01 / libsource / ITransponder.cxx < prev    next >
C/C++ Source or Header  |  1994-04-23  |  1KB  |  42 lines

  1. /******************************************************************************
  2.  **
  3.  **    C++ Class Library for the Amiga© system software.
  4.  **
  5.  **    Copyright (C) 1994 by Armin Vogt  **  EMail: armin@uni-paderborn.de
  6.  **    All Rights Reserved.
  7.  **
  8.  **    $Source: apphome:APlusPlus/RCS/libsource/ITransponder.cxx,v $
  9.  **    $Revision: 1.3 $
  10.  **    $Date: 1994/04/23 21:01:47 $
  11.  **    $Author: Armin_Vogt $
  12.  **
  13.  ******************************************************************************/
  14.  
  15.  
  16. #include <APlusPlus/intuition/ITransponder.h>
  17. #include <APlusPlus/intuition/IntuiObject.h>
  18.  
  19.  
  20. volatile static char rcs_id[] = "$Id: ITransponder.cxx,v 1.3 1994/04/23 21:01:47 Armin_Vogt Exp Armin_Vogt $";
  21.  
  22.  
  23. void ITransponder::setReceiver(IntuiObject *newReceiver)
  24. {
  25.    receiver1 = newReceiver;
  26. }
  27.  
  28. MapITP::MapITP(IntuiObject *iob,AttrList& mapAttrs) : ITransponder(iob), mapAttrlist(mapAttrs)
  29. {
  30. }
  31.  
  32. void MapITP::sendNotification(AttrList& attrs)
  33. {
  34.     _dout("MapITP: received n.s = "<<attrs<<endl);
  35.    attrs.mapAttrs(mapAttrlist);
  36.     if (receiver1)
  37.     { 
  38.         _dout("MapITP: forwarding n.s. = "<<attrs<<endl);
  39.         receiver1->setAttributes(attrs);
  40.     }
  41. }
  42.