Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
WebPanelProtectedPage Class Referenceabstract

#include <webcpanel.h>

Inheritance diagram for WebPanelProtectedPage:
Inheritance graph
[legend]
Collaboration diagram for WebPanelProtectedPage:
Collaboration graph
[legend]

Public Member Functions

 WebPanelProtectedPage (const Anope::string &cat, const Anope::string &u, const Anope::string &ct="text/html")
 
bool OnRequest (HTTPProvider *provider, const Anope::string &page_name, HTTPClient *client, HTTPMessage &message, HTTPReply &reply) anope_override anope_final
 
virtual bool OnRequest (HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, NickAlias *, TemplateFileServer::Replacements &)=0
 
virtual std::set< Anope::stringGetData ()
 
- Public Member Functions inherited from WebPanelPage
 WebPanelPage (const Anope::string &u, const Anope::string &ct="text/html")
 
- Public Member Functions inherited from HTTPPage
 HTTPPage (const Anope::string &u, const Anope::string &ct="text/html")
 
const Anope::stringGetURL () const
 
const Anope::stringGetContentType () const
 
- Public Member Functions inherited from Base
 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 

Private Attributes

Anope::string category
 

Detailed Description

Definition at line 74 of file webcpanel.h.

Constructor & Destructor Documentation

WebPanelProtectedPage::WebPanelProtectedPage ( const Anope::string cat,
const Anope::string u,
const Anope::string ct = "text/html" 
)
inline

Definition at line 79 of file webcpanel.h.

Member Function Documentation

virtual std::set<Anope::string> WebPanelProtectedPage::GetData ( )
inlinevirtual
bool WebPanelProtectedPage::OnRequest ( HTTPProvider ,
const Anope::string ,
HTTPClient ,
HTTPMessage ,
HTTPReply  
)
inlinevirtual

Called when this page is requested

Parameters
Theserver this page is on
Thepage name
Theclient requesting the page
TheHTTP header sent from the client to request the page
TheHTTP header that will be sent back to the client

Implements WebPanelPage.

Definition at line 83 of file webcpanel.h.

References category, GetData(), Panel::GetNickFromSession(), HTTP_FOUND, SubSection::name, Section::name, NickAlias::nc, page_title, Panel::sections, Section::subsections, SubSection::url, and HTTPUtils::URLEncode().

virtual bool WebPanelProtectedPage::OnRequest ( HTTPProvider ,
const Anope::string ,
HTTPClient ,
HTTPMessage ,
HTTPReply ,
NickAlias ,
TemplateFileServer::Replacements  
)
pure virtual

Field Documentation

Anope::string WebPanelProtectedPage::category
private

Definition at line 76 of file webcpanel.h.

Referenced by OnRequest().


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