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

Public Member Functions

 MyXMLRPCServiceInterface (Module *creator, const Anope::string &sname)
void Register (XMLRPCEvent *event)
void Unregister (XMLRPCEvent *event)
Anope::string Sanitize (const Anope::string &string) anope_override
bool OnRequest (HTTPProvider *provider, const Anope::string &page_name, HTTPClient *client, HTTPMessage &message, HTTPReply &reply) anope_override
void Reply (XMLRPCRequest &request)
- Public Member Functions inherited from XMLRPCServiceInterface
 XMLRPCServiceInterface (Module *creator, const Anope::string &sname)
- Public Member Functions inherited from Service
 Service (Module *o, const Anope::string &t, const Anope::string &n)
virtual ~Service ()
void Register ()
void Unregister ()
- Public Member Functions inherited from Base
 Base ()
virtual ~Base ()
void AddReference (ReferenceBase *r)
void DelReference (ReferenceBase *r)
- 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

Static Private Member Functions

static bool GetData (Anope::string &content, Anope::string &tag, Anope::string &data)

Private Attributes

std::deque< XMLRPCEvent * > events

Additional Inherited Members

- Static Public Member Functions inherited from Service
static ServiceFindService (const Anope::string &t, const Anope::string &n)
static std::vector< Anope::stringGetServiceKeys (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 inherited from Service
Anope::string type
Anope::string name

Detailed Description

Definition at line 28 of file m_xmlrpc.cpp.

Constructor & Destructor Documentation

◆ MyXMLRPCServiceInterface()

MyXMLRPCServiceInterface::MyXMLRPCServiceInterface ( Module creator,
const Anope::string sname 

Definition at line 33 of file m_xmlrpc.cpp.

Member Function Documentation

◆ GetData()

static bool MyXMLRPCServiceInterface::GetData ( Anope::string content,
Anope::string tag,
Anope::string data 

◆ OnRequest()

bool MyXMLRPCServiceInterface::OnRequest ( HTTPProvider ,
const Anope::string ,
HTTPClient ,
HTTPMessage ,

Called when this page is requested

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 HTTPPage.

Definition at line 107 of file m_xmlrpc.cpp.

References XMLRPCRequest::data, XMLRPCRequest::get_replies(), HTTP_PAGE_NOT_FOUND, XMLRPCRequest::id, LOG_DEBUG, XMLRPCRequest::name, and XMLRPCEvent::Run().

◆ Register()

void MyXMLRPCServiceInterface::Register ( XMLRPCEvent event)

Implements XMLRPCServiceInterface.

Definition at line 35 of file m_xmlrpc.cpp.

◆ Reply()

void MyXMLRPCServiceInterface::Reply ( XMLRPCRequest request)

◆ Sanitize()

Anope::string MyXMLRPCServiceInterface::Sanitize ( const Anope::string string)

◆ Unregister()

void MyXMLRPCServiceInterface::Unregister ( XMLRPCEvent event)

Implements XMLRPCServiceInterface.

Definition at line 40 of file m_xmlrpc.cpp.

Field Documentation

◆ events

std::deque<XMLRPCEvent *> MyXMLRPCServiceInterface::events

Definition at line 30 of file m_xmlrpc.cpp.

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