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  ~HtmlServerExtension( ) override = 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 // HTMLSERVER_H
QString m_indexFilename
Definition: htmlserver.h:32
virtual bool ProcessRequest(HTTPRequest *pRequest)=0
#define UPNP_PUBLIC
Definition: upnpexp.h:9
QScriptEngine * ScriptEngine()
Definition: htmlserver.h:47
ServerSideScripting m_scripting
Definition: htmlserver.h:31
QStringList GetBasePaths() override
Definition: htmlserver.h:42