Go to the documentation of this file.
41 bool rethrow =
false,
bool singleShot =
false ) = 0;
49 virtual void getListeners( std::vector<IIncidentListener*>& lis,
const std::string&
type =
"" )
const = 0;
60 bool rethrow{
false };
61 bool singleShot{
false };
65 typedef std::vector<std::pair<std::unique_ptr<Incident>, std::vector<Listener>>>
IncidentPack;
74 virtual void fireIncident( std::unique_ptr<Incident> incident ) = 0;
virtual void fireIncident(std::unique_ptr< Incident > incident)=0
Fire an Incident, Incident ownership has to be passed to the service since it is going to be accessed...
virtual void addListener(IIncidentListener *lis, const std::string &type="", long priority=0, bool rethrow=false, bool singleShot=false)=0
Add listener.
virtual void getListeners(std::vector< IIncidentListener * > &lis, const std::string &type="") const =0
virtual void removeListener(IIncidentListener *lis, const std::string &type="")=0
Remove listener.
virtual void fireIncident(const Incident &incident)=0
Fire an Incident.
DeclareInterfaceID(IIncidentSvc, 2, 0)
InterfaceID.
std::vector< std::pair< std::unique_ptr< Incident >, std::vector< Listener > > > IncidentPack
List of incidents and their listeners.
virtual IIncidentSvc::IncidentPack getIncidents(const EventContext *ctx)=0
Get List of asynchronous incidents and their listeners.