MythTV  master
httpconfig.h
Go to the documentation of this file.
1 // -*- Mode: c++ -*-
2 
3 #ifndef _HTTPCONFIG_H_
4 #define _HTTPCONFIG_H_
5 
6 #include "httpserver.h"
7 #include "mythsettings.h"
8 
9 class QTextStream;
10 
12 {
13  public:
14  HttpConfig();
15  virtual ~HttpConfig() = default;
16 
17  QStringList GetBasePaths() override; // HttpServerExtension
18 
19  bool ProcessRequest(HTTPRequest *pRequest) override; // HttpServerExtension
20 
21  private:
22  static void PrintHeader(QBuffer&, const QString &form,
23  const QString &group = "");
24  static void OpenForm(QBuffer&, const QString &form,
25  const QString &group = "");
26  static void CloseForm(QBuffer&,
27  const QString &group = "");
28  static void PrintFooter(QBuffer&,
29  const QString &group = "");
30  static bool LoadSettings(MythSettingList&, const QString &hostname);
31  static void PrintSettings(QBuffer&, const MythSettingList&);
32 
35 };
36 
37 #endif
static void CloseForm(QBuffer &, const QString &group="")
Definition: httpconfig.cpp:402
static void PrintHeader(QBuffer &, const QString &form, const QString &group="")
Definition: httpconfig.cpp:366
MythSettingList m_general_settings
Definition: httpconfig.h:34
bool ProcessRequest(HTTPRequest *pRequest) override
Definition: httpconfig.cpp:30
string hostname
Definition: caa.py:17
QList< MythSettingBase * > MythSettingList
Definition: mythsettings.h:16
MythSettingList m_database_settings
Definition: httpconfig.h:33
static void PrintFooter(QBuffer &, const QString &group="")
Definition: httpconfig.cpp:413
static bool LoadSettings(MythSettingList &, const QString &hostname)
static void PrintSettings(QBuffer &, const MythSettingList &)
Definition: httpconfig.cpp:424
static void OpenForm(QBuffer &, const QString &form, const QString &group="")
Definition: httpconfig.cpp:390
virtual ~HttpConfig()=default
QStringList GetBasePaths() override
Definition: httpconfig.cpp:21