mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-03 03:06:29 +02:00
31 lines
845 B
C++
31 lines
845 B
C++
//
|
|
// UserActivityLoggerScriptingInterface.h
|
|
// libraries/networking/src
|
|
//
|
|
// Created by Ryan Huffman on 6/06/16.
|
|
// 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
|
|
//
|
|
|
|
#ifndef hifi_UserActivityLoggerScriptingInterface_h
|
|
#define hifi_UserActivityLoggerScriptingInterface_h
|
|
|
|
#include <QObject>
|
|
#include <QJsonObject>
|
|
|
|
#include <DependencyManager.h>
|
|
|
|
class UserActivityLoggerScriptingInterface : public QObject, public Dependency {
|
|
Q_OBJECT
|
|
public:
|
|
Q_INVOKABLE void enabledEdit();
|
|
Q_INVOKABLE void openedMarketplace();
|
|
Q_INVOKABLE void toggledAway(bool isAway);
|
|
|
|
private:
|
|
void logAction(QString action, QJsonObject details = {});
|
|
};
|
|
|
|
#endif // hifi_UserActivityLoggerScriptingInterface_h
|