InspIRCd
3.0
|
#include <event.h>
Classes | |
struct | Comp |
struct | ElementComp |
Public Types | |
typedef insp::flat_multiset< ModuleEventListener *, Comp, ElementComp > | SubscriberList |
Public Member Functions | |
ModuleEventProvider (Module *mod, const std::string &eventid) | |
const Module * | GetModule () const |
const SubscriberList & | GetSubscribers () const |
void | Subscribe (ModuleEventListener *subscriber) |
void | Unsubscribe (ModuleEventListener *subscriber) |
![]() | |
ServiceProvider (Module *Creator, const std::string &Name, ServiceType Type) | |
const char * | GetTypeString () const |
virtual void | RegisterService () |
void | DisableAutoRegister () |
![]() | |
virtual CullResult | cull () |
Additional Inherited Members | |
![]() | |
ModuleRef | creator |
const std::string | name |
const ServiceType | service |
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.
|
inline |
Constructor
mod | Module providing the event(s) |
eventid | Identifier of the event or event group provided, must be unique |
|
inline |
Retrieves the module which created this listener.
|
inline |
Get list of objects subscribed to this event
|
inline |
Subscribes a listener to this event.
subscriber | The listener to subscribe. |
|
inline |
Unsubscribes a listener from this event.
subscriber | The listener to unsubscribe. |