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  ~HttpConfig() override = default;
16 
17  QStringList GetBasePaths() override; // HttpServerExtension
18 
19  bool ProcessRequest(HTTPRequest *pRequest) override; // HttpServerExtension
20 
21  private:
22  static void PrintHeader(QBuffer &buffer, const QString &form,
23  const QString &group = "");
24  static void OpenForm(QBuffer &buffer, const QString &form,
25  const QString &group = "");
26  static void CloseForm(QBuffer &buffer,
27  const QString &group = "");
28  static void PrintFooter(QBuffer &buffer,
29  const QString &group = "");
30  static bool LoadSettings(MythSettingList&, const QString &hostname);
31  static void PrintSettings(QBuffer &buffer, const MythSettingList &settings);
32 
35 };
36 
37 #endif
static void PrintSettings(QBuffer &buffer, const MythSettingList &settings)
Definition: httpconfig.cpp:416
static void PrintHeader(QBuffer &buffer, const QString &form, const QString &group="")
Definition: httpconfig.cpp:358
MythSettingList m_generalSettings
Definition: httpconfig.h:34
MythSettingList m_databaseSettings
Definition: httpconfig.h:33
bool ProcessRequest(HTTPRequest *pRequest) override
Definition: httpconfig.cpp:30
static void CloseForm(QBuffer &buffer, const QString &group="")
Definition: httpconfig.cpp:394
string hostname
Definition: caa.py:17
static bool LoadSettings(MythSettingList &, const QString &hostname)
~HttpConfig() override=default
static void PrintFooter(QBuffer &buffer, const QString &group="")
Definition: httpconfig.cpp:405
QList< MythSettingBase * > MythSettingList
Definition: mythsettings.h:19
static void OpenForm(QBuffer &buffer, const QString &form, const QString &group="")
Definition: httpconfig.cpp:382
QStringList GetBasePaths() override
Definition: httpconfig.cpp:21