InspIRCd  3.0
Public Types | Public Member Functions | Friends | List of all members
Events::ModuleEventProvider Class Reference

#include <event.h>

Inheritance diagram for Events::ModuleEventProvider:
ServiceProvider dynamic_reference_base::CaptureHook classbase

Public Types

typedef std::vector< ModuleEventListener * > SubscriberList
 

Public Member Functions

 ModuleEventProvider (Module *mod, const std::string &eventid)
 
const SubscriberList & GetSubscribers () const
 
- Public Member Functions inherited from ServiceProvider
 ServiceProvider (Module *Creator, const std::string &Name, ServiceType Type)
 
virtual void RegisterService ()
 
void DisableAutoRegister ()
 
- Public Member Functions inherited from classbase
virtual CullResult cull ()
 

Friends

class ModuleEventListener
 

Additional Inherited Members

- Public Attributes inherited from ServiceProvider
ModuleRef creator
 
const std::string name
 
const ServiceType service
 

Detailed Description

Provider of one or more cross-module events. Modules who wish to provide events for other modules create instances of this class and use one of the macros below to fire the event, passing the instance of the event provider class to the macro. Event providers are identified using a unique identifier string.

Constructor & Destructor Documentation

◆ ModuleEventProvider()

Events::ModuleEventProvider::ModuleEventProvider ( Module mod,
const std::string &  eventid 
)
inline

Constructor

Parameters
modModule providing the event(s)
eventidIdentifier of the event or event group provided, must be unique

Member Function Documentation

◆ GetSubscribers()

const SubscriberList& Events::ModuleEventProvider::GetSubscribers ( ) const
inline

Get list of objects subscribed to this event

Returns
List of subscribed objects

The documentation for this class was generated from the following file: