Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
WebpanelRequest Class Reference
Inheritance diagram for WebpanelRequest:
Inheritance graph
Collaboration diagram for WebpanelRequest:
Collaboration graph

Public Member Functions

 WebpanelRequest (Module *o, HTTPReply &r, HTTPMessage &m, HTTPProvider *s, const Anope::string &p_n, HTTPClient *c, TemplateFileServer::Replacements &re, const Anope::string &user, const Anope::string &pass)
void OnSuccess () anope_override
void OnFail () anope_override
- Public Member Functions inherited from IdentifyRequest
const Anope::stringGetAccount () const
const Anope::stringGetPassword () const
void Hold (Module *m)
void Release (Module *m)
void Success (Module *m)
void Dispatch ()

Private Attributes

HTTPReply reply
HTTPMessage message
Reference< HTTPProviderserver
Anope::string page_name
Reference< HTTPClientclient
TemplateFileServer::Replacements replacements

Additional Inherited Members

- Static Public Member Functions inherited from IdentifyRequest
static void ModuleUnload (Module *m)
- Protected Member Functions inherited from IdentifyRequest
 IdentifyRequest (Module *o, const Anope::string &acc, const Anope::string &pass)
virtual ~IdentifyRequest ()

Detailed Description

Definition at line 10 of file index.cpp.

Constructor & Destructor Documentation

◆ WebpanelRequest()

WebpanelRequest::WebpanelRequest ( Module o,
HTTPReply r,
HTTPMessage m,
HTTPProvider s,
const Anope::string p_n,
HTTPClient c,
TemplateFileServer::Replacements re,
const Anope::string user,
const Anope::string pass 

Definition at line 20 of file index.cpp.

Referenced by WebCPanel::Index::OnRequest().

Member Function Documentation

◆ OnFail()

void WebpanelRequest::OnFail ( )

Implements IdentifyRequest.

Definition at line 66 of file index.cpp.

References HTTPClient::SendReply(), and TemplateFileServer::Serve().

Referenced by OnSuccess().

◆ OnSuccess()

void WebpanelRequest::OnSuccess ( )

Field Documentation

◆ client

Reference<HTTPClient> WebpanelRequest::client

Definition at line 16 of file index.cpp.

◆ message

HTTPMessage WebpanelRequest::message

Definition at line 13 of file index.cpp.

◆ page_name

Anope::string WebpanelRequest::page_name

Definition at line 15 of file index.cpp.

◆ replacements

TemplateFileServer::Replacements WebpanelRequest::replacements

Definition at line 17 of file index.cpp.

Referenced by WebCPanel::Index::OnRequest().

◆ reply

HTTPReply WebpanelRequest::reply

Definition at line 12 of file index.cpp.

◆ server

Reference<HTTPProvider> WebpanelRequest::server

Definition at line 14 of file index.cpp.

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