-
Notifications
You must be signed in to change notification settings - Fork 345
/
htmlserver.h
54 lines (42 loc) · 1.62 KB
/
htmlserver.h
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//////////////////////////////////////////////////////////////////////////////
// Program Name: htmlserver.h
// Created : Mar. 9, 2011
//
// Purpose : Http server extension to serve up static html content
//
// Copyright (c) 2011 David Blain <dblain@mythtv.org>
//
// Licensed under the GPL v2 or later, see COPYING for details
//
//////////////////////////////////////////////////////////////////////////////
#ifndef __HTMLSERVER_H__
#define __HTMLSERVER_H__
#include "httpserver.h"
#include "serverSideScripting.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
//
// HtmlExtension Class Definition
//
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
class UPNP_PUBLIC HtmlServerExtension : public HttpServerExtension
{
private:
QString m_sSharePath;
ServerSideScripting m_Scripting;
QString m_IndexFilename;
public:
HtmlServerExtension( const QString sSharePath,
const QString sApplicationPrefix);
virtual ~HtmlServerExtension( );
// Special case, this extension is called if no other extension
// processes the request.
virtual QStringList GetBasePaths() { return QStringList(); }
bool ProcessRequest( HTTPRequest *pRequest );
QScriptEngine* ScriptEngine()
{
return &(m_Scripting.m_engine);
}
};
#endif