// $Revision: 1.3 $ // Copyright (C) 1994-1995 Taligent, Inc. All rights reserved. #ifndef TaligentSamples_SENDER #define TaligentSamples_SENDER #ifndef TaligentSamples_SENDERPROTOCOL #include "SenderProtocol.h" #endif // For MCollectible. #ifndef Taligent_COREPRIMITIVECLASSES #include #endif class TSender : public MSenderProtocol, public MDelegatingNotifier { public: TSender(); TSender(const TSender&); virtual ~TSender(); TSender& operator=(const TSender&); virtual long GetValue() const; virtual void SetValue(long); virtual MNotifier* GetNotifier() const; virtual void SetNotifier(MNotifier*); virtual TInterest GetValueChangedInterest() const; private: long fValue; MNotifier* fNotifier; bool fOwnsNotifier; }; #endif