Files
externals/linux/include/ccapi_cpp/ccapi_event_handler.h
T
John Colvin 99c440f568 Add ccapi [header-only] lib to includes
This is the open source crypto connector lib
2022-06-06 11:57:00 -04:00

23 lines
875 B
C++

#ifndef INCLUDE_CCAPI_CPP_CCAPI_EVENT_HANDLER_H_
#define INCLUDE_CCAPI_CPP_CCAPI_EVENT_HANDLER_H_
#include "ccapi_cpp/ccapi_event.h"
namespace ccapi {
class Session;
class EventHandler {
public:
virtual ~EventHandler() {}
virtual bool processEvent(const Event& event, Session* session) { return true; }
// An implementation of processEvent should process the specified
// 'event' which originates from the specified 'session' and
// return true to indicate events should continue to be delivered
// or false to terminate dispatching of events.
//
// If the application wishes to process the event further
// after returning from the processEvents() call it must make
// a copy of the Event to ensure the underlying data is not
// freed.
// Note: no exceptions are thrown
};
} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_EVENT_HANDLER_H_