#include <service.h>
Inherits Base.
Inherited by AccessProvider, Command, DNS::Manager, Encryption::Provider, ForbidService, GlobalService, HTTPProvider, IgnoreService, IRCDMessage, IRCDProto, LDAPProvider, MemoServService, NewsService, NickServService, Panel, RegexProvider, SessionService, SQL::Provider, SSLService, XLineManager, and XMLRPCServiceInterface.

Public Member Functions | |
| Service (Module *o, const Anope::string &t, const Anope::string &n) | |
| virtual | ~Service () |
| void | Register () |
| void | Unregister () |
Static Public Member Functions | |
| static Service * | FindService (const Anope::string &t, const Anope::string &n) |
| static std::vector< Anope::string > | GetServiceKeys (const Anope::string &t) |
| static void | AddAlias (const Anope::string &t, const Anope::string &n, const Anope::string &v) |
| static void | DelAlias (const Anope::string &t, const Anope::string &n) |
Data Fields | |
| Module * | owner |
| Anope::string | type |
| Anope::string | name |
Static Private Member Functions | |
| static Service * | FindService (const std::map< Anope::string, Service * > &services, const std::map< Anope::string, Anope::string > *aliases, const Anope::string &n) |
Static Private Attributes | |
| static std::map< Anope::string, std::map< Anope::string, Service * > > | Services |
| static std::map< Anope::string, std::map< Anope::string, Anope::string > > | Aliases |
Anything that inherits from this class can be referred to using ServiceReference. Any interfaces provided by modules, such as commands, use this. This is also used for modules that publish a service (m_ssl, etc).
Definition at line 25 of file service.h.
| Service::Service | ( | Module * | o, | |
| const Anope::string & | t, | |||
| const Anope::string & | n | |||
| ) | [inline] |
| static void Service::AddAlias | ( | const Anope::string & | t, | |
| const Anope::string & | n, | |||
| const Anope::string & | v | |||
| ) | [inline, static] |
Definition at line 70 of file service.h.
Referenced by ServiceAlias::ServiceAlias().
| static void Service::DelAlias | ( | const Anope::string & | t, | |
| const Anope::string & | n | |||
| ) | [inline, static] |
Definition at line 76 of file service.h.
References Anope::string::erase().
Referenced by ServiceAlias::~ServiceAlias().
| static Service* Service::FindService | ( | const Anope::string & | t, | |
| const Anope::string & | n | |||
| ) | [inline, static] |
| static Service* Service::FindService | ( | const std::map< Anope::string, Service * > & | services, | |
| const std::map< Anope::string, Anope::string > * | aliases, | |||
| const Anope::string & | n | |||
| ) | [inline, static, private] |
Definition at line 30 of file service.h.
Referenced by ServiceReference< SSLService >::operator bool().
| static std::vector<Anope::string> Service::GetServiceKeys | ( | const Anope::string & | t | ) | [inline, static] |
Definition at line 60 of file service.h.
Referenced by CommandOSModInfo::Execute().
std::map< Anope::string, std::map< Anope::string, Anope::string > > Service::Aliases [static, private] |
Reimplemented in IRCDMessage.
Definition at line 88 of file service.h.
Referenced by Log::BuildPrefix(), MySQLService::Connect(), FlagsChanAccess::DetermineFlags(), XOPChanAccess::DetermineLevel(), AccessChanAccess::DetermineLevel(), CommandNSAccess::Execute(), CommandMSRSend::Execute(), LDAPService::LDAPService(), Log::Log(), CommandCSSetSecure::OnHelp(), CommandCSSetKeepTopic::OnHelp(), CommandCSSetFounder::OnHelp(), CommandCSSetDescription::OnHelp(), CommandCSSetBanType::OnHelp(), CommandCSSetAutoOp::OnHelp(), HTTPD::OnReload(), WebCPanel::ChanServ::Access::OnRequest(), DBPlain::OnSaveDatabase(), LDAPService::Reconnect(), XLine::Serialize(), ChanAccess::Serialize(), and SXLineDelCallback::~SXLineDelCallback().
Definition at line 84 of file service.h.
Referenced by CommandOSReload::Execute(), CommandOSModUnLoad::Execute(), CommandNSResend::Execute(), CommandNSRecover::Execute(), CommandNSIdentify::Execute(), CommandNSGroup::Execute(), CommandMSRSend::Execute(), IRCDMessageSASL::Run(), and IRCDMessageEncap::Run().
std::map< Anope::string, std::map< Anope::string, Service * > > Service::Services [static, private] |
Reimplemented in XLineManager.
Definition at line 86 of file service.h.
Referenced by XOPBase::DoDel(), and XOPBase::DoList().
1.7.1