mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-21 19:00:51 +02:00
27 lines
876 B
C++
27 lines
876 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
|
|
//
|
|
|
|
#include "UserActivityLoggerScriptingInterface.h"
|
|
#include "UserActivityLogger.h"
|
|
|
|
void UserActivityLoggerScriptingInterface::enabledEdit() {
|
|
logAction("enabled_edit");
|
|
}
|
|
|
|
void UserActivityLoggerScriptingInterface::openedMarketplace() {
|
|
logAction("opened_marketplace");
|
|
}
|
|
|
|
void UserActivityLoggerScriptingInterface::logAction(QString action, QJsonObject details) {
|
|
QMetaObject::invokeMethod(&UserActivityLogger::getInstance(), "logAction",
|
|
Q_ARG(QString, action),
|
|
Q_ARG(QJsonObject, details));
|
|
}
|