The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

ModuleHttpStats Class Reference

Inheritance diagram for ModuleHttpStats:

Inheritance graph
[legend]
Collaboration diagram for ModuleHttpStats:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void ReadConfig ()
 ModuleHttpStats (InspIRCd *Me)
std::string Sanitize (const std::string &str)
void OnEvent (Event *event)
 Called whenever an Event class is sent to all module by another module.
const char * OnRequest (Request *request)
 Called whenever a Request class is sent to your module by another module.
virtual ~ModuleHttpStats ()
virtual Version GetVersion ()
 Returns the version number of a Module.
void ReadConfig ()
 ModuleHttpStats (InspIRCd *Me)
std::string Sanitize (const std::string &str)
void OnEvent (Event *event)
 Called whenever an Event class is sent to all module by another module.
const char * OnRequest (Request *request)
 Called whenever a Request class is sent to your module by another module.
virtual ~ModuleHttpStats ()
virtual Version GetVersion ()
 Returns the version number of a Module.

Private Attributes

std::string stylesheet
bool changed

Detailed Description

Definition at line 21 of file m_httpd_config.cpp.


Constructor & Destructor Documentation

ModuleHttpStats::ModuleHttpStats InspIRCd Me  )  [inline]
 

Definition at line 35 of file m_httpd_config.cpp.

References ModuleManager::Attach(), changed, I_OnEvent, I_OnRequest, InspIRCd::Modules, ReadConfig(), and Module::ServerInstance.

virtual ModuleHttpStats::~ModuleHttpStats  )  [inline, virtual]
 

Definition at line 118 of file m_httpd_config.cpp.

ModuleHttpStats::ModuleHttpStats InspIRCd Me  )  [inline]
 

Definition at line 35 of file m_httpd_stats.cpp.

References ModuleManager::Attach(), changed, I_OnEvent, I_OnRequest, InspIRCd::Modules, ReadConfig(), and Module::ServerInstance.

virtual ModuleHttpStats::~ModuleHttpStats  )  [inline, virtual]
 

Definition at line 192 of file m_httpd_stats.cpp.


Member Function Documentation

virtual Version ModuleHttpStats::GetVersion  )  [inline, virtual]
 

Returns the version number of a Module.

The method should return a Version object with its version information assigned via Version::Version

Reimplemented from Module.

Definition at line 196 of file m_httpd_stats.cpp.

References API_VERSION, and VF_VENDOR.

virtual Version ModuleHttpStats::GetVersion  )  [inline, virtual]
 

Returns the version number of a Module.

The method should return a Version object with its version information assigned via Version::Version

Reimplemented from Module.

Definition at line 122 of file m_httpd_config.cpp.

References API_VERSION, and VF_VENDOR.

void ModuleHttpStats::OnEvent Event event  )  [inline, virtual]
 

Called whenever an Event class is sent to all module by another module.

Please see the documentation of Event::Send() for further information. The Event sent can always be assumed to be non-NULL, you should *always* check the value of Event::GetEventID() before doing anything to the event data, and you should *not* change the event data in any way!

Parameters:
event The Event class being received

Reimplemented from Module.

Definition at line 77 of file m_httpd_stats.cpp.

References UserManager::all_opers, User::awaymsg, Version::Build, InspIRCd::chanlist, Channel::ChanModes(), UserManager::clientlist, InspIRCd::Config, DEBUG, User::dhost, ModuleManager::Find(), User::fullname, ModuleManager::GetAllModuleNames(), Channel::GetAllPrefixChars(), Event::GetData(), Event::GetEventID(), Channel::GetHalfoppedUsers(), User::GetIPString(), SocketEngine::GetMaxFds(), SocketEngine::GetName(), Channel::GetOppedUsers(), User::GetPort(), SocketEngine::GetRemainingFds(), ProtocolInterface::GetServerList(), Event::GetSource(), HTTPRequest::GetURI(), Channel::GetUsers(), Module::GetVersion(), Channel::GetVoicedUsers(), HTTPDocument::headers, connection::host, User::ident, User::IsModeSet(), LogManager::Log(), InspIRCd::Logs, Version::Major, Version::Minor, InspIRCd::Modules, Channel::name, User::nick, User::oper, InspIRCd::PI, Version::Revision, Sanitize(), InspIRCd::SE, Request::Send(), User::server, ServerConfig::ServerDesc, Module::ServerInstance, ServerConfig::ServerName, HTTPHeaders::SetHeader(), HTTPRequest::sock, InspIRCd::startup_time, InspIRCd::Time(), Channel::topic, InspIRCd::Users, and User::uuid.

void ModuleHttpStats::OnEvent Event event  )  [inline, virtual]
 

Called whenever an Event class is sent to all module by another module.

Please see the documentation of Event::Send() for further information. The Event sent can always be assumed to be non-NULL, you should *always* check the value of Event::GetEventID() before doing anything to the event data, and you should *not* change the event data in any way!

Parameters:
event The Event class being received

Reimplemented from Module.

Definition at line 77 of file m_httpd_config.cpp.

References InspIRCd::Config, ServerConfig::config_data, DEBUG, Event::GetData(), Event::GetEventID(), Event::GetSource(), HTTPRequest::GetURI(), HTTPDocument::headers, LogManager::Log(), InspIRCd::Logs, Request::Send(), Module::ServerInstance, HTTPHeaders::SetHeader(), and HTTPRequest::sock.

const char* ModuleHttpStats::OnRequest Request request  )  [inline, virtual]
 

Called whenever a Request class is sent to your module by another module.

Please see the documentation of Request::Send() for further information. The Request sent can always be assumed to be non-NULL, you should not change the request object or its data. Your method may return arbitary data in the char* result which the requesting module may be able to use for pre-determined purposes (e.g. the results of an SQL query, etc).

Parameters:
request The Request class being received

Reimplemented from Module.

Definition at line 186 of file m_httpd_stats.cpp.

const char* ModuleHttpStats::OnRequest Request request  )  [inline, virtual]
 

Called whenever a Request class is sent to your module by another module.

Please see the documentation of Request::Send() for further information. The Request sent can always be assumed to be non-NULL, you should not change the request object or its data. Your method may return arbitary data in the char* result which the requesting module may be able to use for pre-determined purposes (e.g. the results of an SQL query, etc).

Parameters:
request The Request class being received

Reimplemented from Module.

Definition at line 112 of file m_httpd_config.cpp.

void ModuleHttpStats::ReadConfig  )  [inline]
 

Definition at line 29 of file m_httpd_stats.cpp.

References Module::ServerInstance, and stylesheet.

void ModuleHttpStats::ReadConfig  )  [inline]
 

Definition at line 29 of file m_httpd_config.cpp.

References Module::ServerInstance, and stylesheet.

Referenced by ModuleHttpStats().

std::string ModuleHttpStats::Sanitize const std::string str  )  [inline]
 

Definition at line 43 of file m_httpd_stats.cpp.

References ConvToStr().

std::string ModuleHttpStats::Sanitize const std::string str  )  [inline]
 

Definition at line 43 of file m_httpd_config.cpp.

References ConvToStr().

Referenced by OnEvent().


Member Data Documentation

bool ModuleHttpStats::changed [private]
 

Definition at line 25 of file m_httpd_config.cpp.

Referenced by ModuleHttpStats().

std::string ModuleHttpStats::stylesheet [private]
 

Definition at line 24 of file m_httpd_config.cpp.

Referenced by ReadConfig().


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