Showing the changes to libraries/networking/src/UserActivityLogger.cpp (1 of 3 files). Show all
Unified · Split
| @@ -146,3 +146,15 @@ void UserActivityLogger::loadedScript(QString scriptName) { · 145 unmodified lines | ||
| 146 | 146 | logAction(ACTION_NAME, actionDetails); |
| 147 | 147 | |
| 148 | 148 | } |
| 149 | + | |
| 150 | +void UserActivityLogger::wentTo(QString destinationType, QString destinationName) { | |
| 151 | + const QString ACTION_NAME = "went_to"; | |
| 152 | + QJsonObject actionDetails; | |
| 153 | + const QString DESTINATION_TYPE_KEY = "destination_type"; | |
| 154 | + const QString DESTINATION_NAME_KEY = "detination_name"; | |
| 155 | + | |
| 156 | + actionDetails.insert(DESTINATION_TYPE_KEY, destinationType); | |
| 157 | + actionDetails.insert(DESTINATION_NAME_KEY, destinationName); | |
| 158 | + | |
| 159 | + logAction(ACTION_NAME, actionDetails); | |
| 160 | +} | |