From ecfe6ab65bd1fc2c7f5733fe6ef4e6ddaac44a26 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 23 Sep 2012 22:09:57 +0000 Subject: Source files cleanup: The rest of the files renamed. git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/WebPlugin.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 source/WebPlugin.h (limited to 'source/WebPlugin.h') diff --git a/source/WebPlugin.h b/source/WebPlugin.h new file mode 100644 index 000000000..35af88167 --- /dev/null +++ b/source/WebPlugin.h @@ -0,0 +1,47 @@ + +#pragma once + +struct lua_State; +struct HTTPRequest; + + + + + +// tolua_begin +class cWebPlugin +{ +public: + // tolua_end + cWebPlugin(); + virtual ~cWebPlugin(); + + virtual const AString & GetName(void) const = 0; + // tolua_begin + + 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 > GetTabNames(); + std::pair< AString, AString > GetTabNameForRequest( HTTPRequest* a_Request ); + +private: + TabList m_Tabs; +}; // tolua_export + + + + -- cgit v1.2.3