mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 10:55:41 +02:00
36 lines
1.2 KiB
C++
36 lines
1.2 KiB
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 openedTablet();
|
|
Q_INVOKABLE void closedTablet();
|
|
Q_INVOKABLE void openedMarketplace();
|
|
Q_INVOKABLE void toggledAway(bool isAway);
|
|
Q_INVOKABLE void tutorialProgress(QString stepName, int stepNumber, float secondsToComplete,
|
|
float tutorialElapsedTime, QString tutorialRunID = "", int tutorialVersion = 0, QString controllerType = "");
|
|
Q_INVOKABLE void palAction(QString action, QString target);
|
|
Q_INVOKABLE void palOpened(float secondsOpen);
|
|
private:
|
|
void logAction(QString action, QJsonObject details = {});
|
|
};
|
|
|
|
#endif // hifi_UserActivityLoggerScriptingInterface_h
|