Overte C++ Documentation
ScriptGatekeeper.h
1 //
2 // ScriptGatekeeper.h
3 // libraries/script-engine/src
4 //
5 // Created by Kalila L. on Mar 7 2021
6 // Copyright 2021 Vircadia contributors.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
14 
15 #ifndef overte_ScriptGatekeeper_h
16 #define overte_ScriptGatekeeper_h
17 
18 #include <QtCore/QObject>
19 
21 class ScriptGatekeeper : public QObject {
22  Q_OBJECT
23 public:
24  void initialize();
25 
26  QString SCRIPT_WHITELIST_ENABLED_KEY{ "private/whitelistEnabled" };
27  QString SCRIPT_WHITELIST_ENTRIES_KEY{ "private/settingsSafeURLS" };
28 
29 private:
30  bool _initialized { false };
31 };
32 
33 #endif // overte_ScriptGatekeeper_h
34 
Manages script whitelisting in a domain.
Definition: ScriptGatekeeper.h:21