eba0437d68
Changed some std::string to AString git-svn-id: http://mc-server.googlecode.com/svn/trunk@780 0a769ca7-a7f5-676a-18bf-c427514a06d6
38 lines
744 B
C++
38 lines
744 B
C++
|
|
#pragma once
|
|
|
|
struct lua_State;
|
|
struct HTTPRequest;
|
|
//tolua_begin
|
|
class cWebPlugin
|
|
{
|
|
public:
|
|
cWebPlugin();
|
|
virtual ~cWebPlugin();
|
|
|
|
void SetName( std::string a_Name ) { m_Name = a_Name; }
|
|
AString GetName() { return m_Name; }
|
|
|
|
virtual AString HandleWebRequest( HTTPRequest* a_Request ) = 0;
|
|
|
|
static AString SafeString( const AString & a_String );
|
|
//tolua_end
|
|
|
|
struct sWebPluginTab
|
|
{
|
|
std::string Title;
|
|
std::string SafeTitle;
|
|
|
|
int UserData;
|
|
};
|
|
|
|
typedef std::list< sWebPluginTab* > TabList;
|
|
TabList & GetTabs() { return m_Tabs; }
|
|
|
|
std::list< std::pair<AString, AString> > GetTabNames();
|
|
std::pair< AString, AString > GetTabNameForRequest( HTTPRequest* a_Request );
|
|
|
|
private:
|
|
TabList m_Tabs;
|
|
AString m_Name;
|
|
}; //tolua_export
|