InspIRCd  4.0
Public Member Functions | Static Public Attributes | List of all members
Events::ModuleEventListener Class Reference

#include <event.h>

Inheritance diagram for Events::ModuleEventListener:
dynamic_reference_base::CaptureHook ClientProtocol::EventHook ClientProtocol::MessageTagProvider

Public Member Functions

 ModuleEventListener (Module *mod, const std::string &eventid, unsigned int eventprio=DefaultPriority)
const ModuleGetModule () const
unsigned int GetPriority () const

Static Public Attributes

static const unsigned int DefaultPriority = 100

Detailed Description

Base class for abstract classes describing cross-module events. Subscribers should NOT inherit directly from this class.

Constructor & Destructor Documentation

◆ ModuleEventListener()

Events::ModuleEventListener::ModuleEventListener ( Module mod,
const std::string &  eventid,
unsigned int  eventprio = DefaultPriority 


modModule subscribing
eventidIdentifier of the event to subscribe to
eventprioThe priority to give this event listener

Member Function Documentation

◆ GetModule()

const Module* Events::ModuleEventListener::GetModule ( ) const

Retrieves the module which created this listener.

◆ GetPriority()

unsigned int Events::ModuleEventListener::GetPriority ( ) const

Retrieves the priority of this event.

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