mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-20 04:01:22 +02:00
35 lines
798 B
C++
35 lines
798 B
C++
//
|
|
// ScriptGatekeeper.h
|
|
// libraries/script-engine/src
|
|
//
|
|
// Created by Kalila L. on Mar 7 2021
|
|
// Copyright 2021 Vircadia contributors.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
/// @addtogroup ScriptEngine
|
|
/// @{
|
|
|
|
#ifndef vircadia_ScriptGatekeeper_h
|
|
#define vircadia_ScriptGatekeeper_h
|
|
|
|
#include <QtCore/QObject>
|
|
|
|
/// Manages script whitelisting in a domain
|
|
class ScriptGatekeeper : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
void initialize();
|
|
|
|
QString SCRIPT_WHITELIST_ENABLED_KEY{ "private/whitelistEnabled" };
|
|
QString SCRIPT_WHITELIST_ENTRIES_KEY{ "private/settingsSafeURLS" };
|
|
|
|
private:
|
|
bool _initialized { false };
|
|
};
|
|
|
|
#endif // vircadia_ScriptGatekeeper_h
|
|
|
|
/// @}
|