Describes interface of object which can have notification mechanism (via listener) with only one notification method.
You can find more information in comments below.
class IFeedback
{
protected:
IFeedbackListener *m_pListener;
public:
IFeedbackListener* const &Listener{ m_pListener }; // Assigned listener
virtual bool setListener(IFeedbackListener *listener) = 0; // Assign new listener
};
Namespace: | nitisa |
Include: | Nitisa/Interfaces/IFeedback.h |