mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-20 17:09:20 +02:00
40 lines
865 B
C++
40 lines
865 B
C++
//
|
|
// UsersScriptingInterface.h
|
|
// libraries/script-engine/src
|
|
//
|
|
// Created by Stephen Birarda on 2016-07-11.
|
|
// Copyright 2016 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
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#ifndef hifi_UsersScriptingInterface_h
|
|
#define hifi_UsersScriptingInterface_h
|
|
|
|
#include <DependencyManager.h>
|
|
|
|
class UsersScriptingInterface : public QObject, public Dependency {
|
|
Q_OBJECT
|
|
SINGLETON_DEPENDENCY
|
|
|
|
Q_PROPERTY(bool canKick READ getCanKick)
|
|
|
|
public:
|
|
UsersScriptingInterface();
|
|
|
|
public slots:
|
|
void ignore(const QUuid& nodeID);
|
|
void kick(const QUuid& nodeID);
|
|
void mute(const QUuid& nodeID);
|
|
|
|
bool getCanKick();
|
|
|
|
signals:
|
|
void canKickChanged(bool canKick);
|
|
};
|
|
|
|
|
|
#endif // hifi_UsersScriptingInterface_h
|