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

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
Moduleowner
 
Anope::string type
 
Anope::string name
 

Detailed Description

Definition at line 28 of file m_xmlrpc.cpp.

Constructor & Destructor Documentation

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

Definition at line 33 of file m_xmlrpc.cpp.

Member Function Documentation

static bool MyXMLRPCServiceInterface::GetData ( Anope::string content,
Anope::string tag,
Anope::string data 
)
inlinestaticprivate
bool MyXMLRPCServiceInterface::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 HTTPPage.

Definition at line 107 of file m_xmlrpc.cpp.

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

void MyXMLRPCServiceInterface::Register ( XMLRPCEvent event)
inlinevirtual

Implements XMLRPCServiceInterface.

Definition at line 35 of file m_xmlrpc.cpp.

void MyXMLRPCServiceInterface::Reply ( XMLRPCRequest request)
inlinevirtual
Anope::string MyXMLRPCServiceInterface::Sanitize ( const Anope::string string)
inlinevirtual
void MyXMLRPCServiceInterface::Unregister ( XMLRPCEvent event)
inlinevirtual

Implements XMLRPCServiceInterface.

Definition at line 40 of file m_xmlrpc.cpp.

Field Documentation

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

Definition at line 30 of file m_xmlrpc.cpp.


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