Showing the changes to libraries/networking/src/UserActivityLoggerScriptingInterface.cpp (1 of 3 files). Show all
Unified · Split
| @@ -0,0 +1,19 @@ | |||
| 1 | // | ||
| 2 | // UserActivityLoggerScriptingInterface.h | ||
| 3 | // libraries/networking/src | ||
| 4 | // | ||
| 5 | // Created by Ryan Huffman on 6/06/16. | ||
| 6 | // Copyright 2016 High Fidelity, Inc. | ||
| 7 | // | ||
| 8 | // Distributed under the Apache License, Version 2.0. | ||
| 9 | // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | ||
| 10 | // | ||
| 11 | |||
| 12 | #include "UserActivityLoggerScriptingInterface.h" | ||
| 13 | #include "UserActivityLogger.h" | ||
| 14 | |||
| 15 | void UserActivityLoggerScriptingInterface::logAction(QString action, QVariantMap details) const { | ||
| 16 | QMetaObject::invokeMethod(&UserActivityLogger::getInstance(), "logAction", | ||
| 17 | Q_ARG(QString, action), | ||
| 18 | Q_ARG(QJsonObject, QJsonObject::fromVariantMap(details))); | ||
| 19 | } | ||