clean up
This commit is contained in:
parent
d2bfd0e11f
commit
98a31b9979
@ -117,6 +117,8 @@ private:
|
|||||||
void setServerUuid(const QUuid &uuid);
|
void setServerUuid(const QUuid &uuid);
|
||||||
void setWebServerPublicFolder(const QString & path);
|
void setWebServerPublicFolder(const QString & path);
|
||||||
|
|
||||||
|
QString defaultWebserverPublicFolderPath() const;
|
||||||
|
|
||||||
void storeServerConfig(const QString &group, const ServerConfiguration &config);
|
void storeServerConfig(const QString &group, const ServerConfiguration &config);
|
||||||
ServerConfiguration readServerConfig(const QString &group, const QString &id);
|
ServerConfiguration readServerConfig(const QString &group, const QString &id);
|
||||||
void deleteServerConfig(const QString &group, const QString &id);
|
void deleteServerConfig(const QString &group, const QString &id);
|
||||||
|
|||||||
@ -139,18 +139,6 @@ void WebServer::sendHttpReply(HttpReply *reply)
|
|||||||
socket->write(reply->data());
|
socket->write(reply->data());
|
||||||
}
|
}
|
||||||
|
|
||||||
QString WebServer::defaultPublicFolderPath() const
|
|
||||||
{
|
|
||||||
QString publicFolderPath;
|
|
||||||
if (!qgetenv("SNAP").isEmpty()) {
|
|
||||||
publicFolderPath = QString(qgetenv("SNAP")) + "/guh-webinterface";
|
|
||||||
} else {
|
|
||||||
publicFolderPath =
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
bool WebServer::verifyFile(QSslSocket *socket, const QString &fileName)
|
bool WebServer::verifyFile(QSslSocket *socket, const QString &fileName)
|
||||||
{
|
{
|
||||||
QFileInfo file(fileName);
|
QFileInfo file(fileName);
|
||||||
|
|||||||
Reference in New Issue
Block a user