MythTV  master
htmlserver.h
Go to the documentation of this file.
1 // Program Name: htmlserver.h
3 // Created : Mar. 9, 2011
4 //
5 // Purpose : Http server extension to serve up static html content
6 //
7 // Copyright (c) 2011 David Blain <dblain@mythtv.org>
8 //
9 // Licensed under the GPL v2 or later, see COPYING for details
10 //
12 
13 #ifndef __HTMLSERVER_H__
14 #define __HTMLSERVER_H__
15 
16 #include "httpserver.h"
17 #include "serverSideScripting.h"
18 
21 //
22 // HtmlExtension Class Definition
23 //
26 
28 {
29  private:
30 
32  QString m_IndexFilename;
33 
34  public:
35  HtmlServerExtension( const QString &sSharePath,
36  const QString &sApplicationPrefix);
37  virtual ~HtmlServerExtension( ) = default;
38 
39  // Special case, this extension is called if no other extension
40  // processes the request.
41 
42  QStringList GetBasePaths() override // HttpServerExtension
43  { return QStringList(); }
44 
45  bool ProcessRequest( HTTPRequest *pRequest ) override; // HttpServerExtension
46 
47  QScriptEngine* ScriptEngine()
48  {
49  return &(m_Scripting.m_engine);
50  }
51 
52 };
53 
54 #endif
QString m_IndexFilename
Definition: htmlserver.h:32
ServerSideScripting m_Scripting
Definition: htmlserver.h:31
virtual bool ProcessRequest(HTTPRequest *pRequest)=0
#define UPNP_PUBLIC
Definition: upnpexp.h:9
QScriptEngine * ScriptEngine()
Definition: htmlserver.h:47
QStringList GetBasePaths() override
Definition: htmlserver.h:42