History

Add UserActivityLogger scripting interface

Ryan Huffman committed 10 years ago

Commit 8b3b62a1 parent ed882323 files · +48 −0Browse files

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

Unified · Split

libraries/networking/src/UserActivityLoggerScriptingInterface.cpp+19−0
@@ -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+}

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