blob: 48e9cd3bb7817f2a3e78af520b46c6f1b5d85945 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#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
|