Showing the changes to libraries/networking/src/UserActivityLoggerScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -12,8 +12,16 @@ · 11 unmodified lines | |||
| 12 | #include "UserActivityLoggerScriptingInterface.h" | 12 | #include "UserActivityLoggerScriptingInterface.h" |
| 13 | #include "UserActivityLogger.h" | 13 | #include "UserActivityLogger.h" |
| 14 | 14 | ||
| 15 | void UserActivityLoggerScriptingInterface::logAction(QString action, QVariantMap details) const { | 15 | void UserActivityLoggerScriptingInterface::enabledEdit() { |
| 16 | logAction("enabled_edit"); | ||
| 17 | } | ||
| 18 | |||
| 19 | void UserActivityLoggerScriptingInterface::openedMarketplace() { | ||
| 20 | logAction("opened_marketplace"); | ||
| 21 | } | ||
| 22 | |||
| 23 | void UserActivityLoggerScriptingInterface::logAction(QString action, QJsonObject details) { | ||
| 16 | QMetaObject::invokeMethod(&UserActivityLogger::getInstance(), "logAction", | 24 | QMetaObject::invokeMethod(&UserActivityLogger::getInstance(), "logAction", |
| 17 | Q_ARG(QString, action), | 25 | Q_ARG(QString, action), |
| 18 | Q_ARG(QJsonObject, QJsonObject::fromVariantMap(details))); | 26 | Q_ARG(QJsonObject, details)); |
| 19 | } | 27 | } |