mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
48 lines
1.0 KiB
/*
|
|
* REVISIONS:
|
|
* ane11Nov92: Changed IsA and Equal.
|
|
* pcy30Nov92: Added dispatcher and Register/UnregisterEvent
|
|
* pcy30Apr93: Made Register/Unregister for virtual, removed IsA
|
|
* cad07Oct93: Plugging Memory Leaks
|
|
* ajr03Dec93: Set and Get were good only for compiler warnings... fixed.
|
|
* cad28Feb94: added copy constructor
|
|
* mwh05May94: #include file madness , part 2
|
|
*/
|
|
|
|
#ifndef __UPDATEOBJ_H
|
|
#define __UPDATEOBJ_H
|
|
|
|
#include "_defs.h"
|
|
//
|
|
// Defines
|
|
//
|
|
_CLASSDEF(UpdateObj)
|
|
//
|
|
// Implementation uses
|
|
//
|
|
#include "apcobj.h"
|
|
//
|
|
// Interface uses
|
|
//
|
|
_CLASSDEF(Event)
|
|
_CLASSDEF(Dispatcher)
|
|
|
|
class UpdateObj : public Obj
|
|
{
|
|
protected:
|
|
PDispatcher theDispatcher;
|
|
|
|
public:
|
|
UpdateObj();
|
|
UpdateObj(const UpdateObj&);
|
|
|
|
virtual ~UpdateObj();
|
|
virtual INT Update(PEvent value);
|
|
virtual INT RegisterEvent(INT anEventCode, PUpdateObj aAttribute);
|
|
virtual INT UnregisterEvent(INT anEventCode, PUpdateObj aAttribute);
|
|
virtual INT Set(INT code, const PCHAR value);
|
|
virtual INT Get(INT code, PCHAR value);
|
|
};
|
|
#endif
|
|
|
|
|