History

Make activity logging from scripts only available for certain events

Ryan Huffman committed 10 years ago

Commit c2ebcd11 parent bce05df4 files · +22 −8Browse files

Showing the changes to libraries/networking/src/UserActivityLoggerScriptingInterface.cpp (1 of 4 files). Show all

Unified · Split

libraries/networking/src/UserActivityLoggerScriptingInterface.cpp+10−2
@@ -12,8 +12,16 @@ · 11 unmodified lines
1212 #include "UserActivityLoggerScriptingInterface.h"
1313 #include "UserActivityLogger.h"
1414
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) {
1624 QMetaObject::invokeMethod(&UserActivityLogger::getInstance(), "logAction",
1725 Q_ARG(QString, action),
18− Q_ARG(QJsonObject, QJsonObject::fromVariantMap(details)));
26+ Q_ARG(QJsonObject, details));
1927 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t