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 // HTTPCONFIG_H
HttpConfig::PrintSettings
static void PrintSettings(QBuffer &buffer, const MythSettingList &settings)
Definition: httpconfig.cpp:416
HTTPRequest
Definition: httprequest.h:108
HttpConfig::m_databaseSettings
MythSettingList m_databaseSettings
Definition: httpconfig.h:33
HttpConfig::m_generalSettings
MythSettingList m_generalSettings
Definition: httpconfig.h:34
HttpConfig::~HttpConfig
~HttpConfig() override=default
mythsettings.h
HttpConfig::HttpConfig
HttpConfig()
Definition: httpconfig.cpp:17
HttpConfig::PrintHeader
static void PrintHeader(QBuffer &buffer, const QString &form, const QString &group="")
Definition: httpconfig.cpp:358
HttpConfig::PrintFooter
static void PrintFooter(QBuffer &buffer, const QString &group="")
Definition: httpconfig.cpp:405
HttpConfig::CloseForm
static void CloseForm(QBuffer &buffer, const QString &group="")
Definition: httpconfig.cpp:394
HttpConfig::ProcessRequest
bool ProcessRequest(HTTPRequest *pRequest) override
Definition: httpconfig.cpp:30
MythSettingList
QList< MythSettingBase * > MythSettingList
Definition: mythsettings.h:19
HttpConfig::LoadSettings
static bool LoadSettings(MythSettingList &, const QString &hostname)
httpserver.h
musicbrainzngs.caa.hostname
string hostname
Definition: caa.py:17
HttpConfig::GetBasePaths
QStringList GetBasePaths() override
Definition: httpconfig.cpp:21
HttpServerExtension
Definition: httpserver.h:72
HttpConfig
Definition: httpconfig.h:12
HttpConfig::OpenForm
static void OpenForm(QBuffer &buffer, const QString &form, const QString &group="")
Definition: httpconfig.cpp:382