// $Revision: 1.3 $ // Copyright (c) 1994-1995 Taligent, Inc. All Rights Reserved. // Notification Sample 1 #ifndef TaligentSamples_SENDER #include "Sender.h" #endif TSender::TSender() : TNotifier(), fValue(0) { } TSender::~TSender() { } long TSender::GetValue() const { return fValue; } void TSender::SetValue(long value) { if (value != fValue) { fValue = value; Notify(TNotification(GetValueChangedInterest())); } } TInterest TSender::GetValueChangedInterest() const { static const TToken kValueChanged("ValueChanged"); // Cast away const. return TInterest((TSender*)this, kValueChanged); }