mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-15 06:27:27 +02:00
33 lines
No EOL
989 B
C++
33 lines
No EOL
989 B
C++
//
|
|
// DomainServerSettingsManager.h
|
|
// domain-server/src
|
|
//
|
|
// Created by Stephen Birarda on 2014-06-24.
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_DomainServerSettingsManager_h
|
|
#define hifi_DomainServerSettingsManager_h
|
|
|
|
#include <QtCore/QJsonDocument>
|
|
|
|
#include <HTTPManager.h>
|
|
|
|
class DomainServerSettingsManager : public QObject, HTTPRequestHandler {
|
|
Q_OBJECT
|
|
public:
|
|
DomainServerSettingsManager();
|
|
bool handleHTTPRequest(HTTPConnection* connection, const QUrl& url);
|
|
private:
|
|
void recurseJSONObjectAndOverwriteSettings(const QJsonObject& postedObject, QVariantMap& settingsVariant,
|
|
QJsonObject descriptionObject);
|
|
void persistToFile();
|
|
|
|
QJsonObject _descriptionObject;
|
|
QVariantMap _settingsMap;
|
|
};
|
|
|
|
#endif // hifi_DomainServerSettingsManager_h
|