C++ (Qt)enum EventType { Event1, Event2, ... } class EventHandler{public: virtual void eventHandle( EventType event, void *param = 0 ) = 0;}; class BaseObject : public QObject, public EventHandler{public: ... virtual void eventHandle( EventType event, void *param = 0 );};