mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 08:37:19 +02:00
Remove domain management scripting interface
This commit is contained in:
parent
6bde4db0d7
commit
c0fa446b75
2 changed files with 0 additions and 68 deletions
|
@ -1,29 +0,0 @@
|
||||||
//
|
|
||||||
// DomainManagementScriptingInterface.cpp
|
|
||||||
// interface/src/scripting
|
|
||||||
//
|
|
||||||
// Created by Liv Erickson on 7/21/17.
|
|
||||||
// Copyright 2017 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
|
|
||||||
//
|
|
||||||
#include "DomainManagementScriptingInterface.h"
|
|
||||||
#include "Application.h"
|
|
||||||
#include "OffscreenUi.h"
|
|
||||||
|
|
||||||
DomainManagementScriptingInterface::DomainManagementScriptingInterface()
|
|
||||||
{
|
|
||||||
auto nodeList = DependencyManager::get<NodeList>();
|
|
||||||
connect(nodeList.data(), &NodeList::canReplaceContentChanged, this, &DomainManagementScriptingInterface::canReplaceDomainContentChanged);
|
|
||||||
}
|
|
||||||
|
|
||||||
DomainManagementScriptingInterface::~DomainManagementScriptingInterface() {
|
|
||||||
auto nodeList = DependencyManager::get<NodeList>();
|
|
||||||
disconnect(nodeList.data(), &NodeList::canReplaceContentChanged, this, &DomainManagementScriptingInterface::canReplaceDomainContentChanged);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool DomainManagementScriptingInterface::canReplaceDomainContent() {
|
|
||||||
auto nodeList = DependencyManager::get<NodeList>();
|
|
||||||
return nodeList->getThisNodeCanReplaceContent();
|
|
||||||
}
|
|
|
@ -1,39 +0,0 @@
|
||||||
//
|
|
||||||
// DomainManagementScriptingInterface.h
|
|
||||||
// interface/src/scripting
|
|
||||||
//
|
|
||||||
// Created by Liv Erickson on 7/21/17.
|
|
||||||
// Copyright 2017 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_DomainManagementScriptingInterface_h
|
|
||||||
#define hifi_DomainManagementScriptingInterface_h
|
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
#include <QScriptContext>
|
|
||||||
#include <QScriptEngine>
|
|
||||||
#include <QString>
|
|
||||||
#include <QStringList>
|
|
||||||
#include <DependencyManager.h>
|
|
||||||
#include <Octree.h>
|
|
||||||
|
|
||||||
#include "BaseScriptEngine.h"
|
|
||||||
|
|
||||||
|
|
||||||
class DomainManagementScriptingInterface : public QObject, public Dependency {
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
DomainManagementScriptingInterface();
|
|
||||||
~DomainManagementScriptingInterface();
|
|
||||||
|
|
||||||
|
|
||||||
public slots:
|
|
||||||
Q_INVOKABLE bool canReplaceDomainContent();
|
|
||||||
|
|
||||||
signals:
|
|
||||||
void canReplaceDomainContentChanged(bool canReplaceDomainContent);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif //hifi_DomainManagementScriptingInterface_h
|
|
Loading…
Reference in a new issue