InspIRCd  3.0
Public Member Functions | Public Attributes | List of all members
ServiceProvider Class Reference

#include <base.h>

Inheritance diagram for ServiceProvider:
classbase CommandBase DataProvider Events::ModuleEventProvider ExtensionItem IOHookProvider ModeHandler Command ClientProtocol::Serializer ClientProtocol::EventProvider ClientProtocol::MessageTagEvent LocalIntExt SimpleExtItem< T, Del > SimpleExtItem< ChanData > SimpleExtItem< std::string > StringExtItem ListModeBase ParamModeBase PrefixMode SimpleChannelModeHandler SimpleUserModeHandler

Public Member Functions

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

Public Attributes

ModuleRef creator
const std::string name
const ServiceType service

Detailed Description

A structure defining something that a module can provide

Member Function Documentation

◆ DisableAutoRegister()

void ServiceProvider::DisableAutoRegister ( )

If called, this ServiceProvider won't be registered automatically

◆ GetTypeString()

const char * ServiceProvider::GetTypeString ( ) const

Retrieves a string that represents the type of this service.

◆ RegisterService()

void ServiceProvider::RegisterService ( )

Register this service in the appropriate registrar

Reimplemented in Command, ModeHandler, and ExtensionItem.

Member Data Documentation

◆ creator

ModuleRef ServiceProvider::creator

Module that is providing this service

◆ name

const std::string ServiceProvider::name

Name of the service being provided

◆ service

const ServiceType ServiceProvider::service

Type of service (must match object type)

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