MCPcopy Create free account
hub / github.com/MultiMC/Launcher / sendScreenView

Method sendScreenView

libraries/ganalytics/src/ganalytics.cpp:132–143  ·  view source on GitHub ↗

* Sent screen view is called when the user changed the applications view. * These action of the user should be noticed and reported. Therefore * a QUrlQuery is build in this method. It holts all the parameter for * a http POST. The UrlQuery will be stored in a message Queue. */

Source from the content-addressed store, hash-verified

130 * a http POST. The UrlQuery will be stored in a message Queue.
131 */
132void GAnalytics::sendScreenView(const QString &screenName, const QVariantMap &customValues)
133{
134 d->logMessage(Info, QString("ScreenView: %1").arg(screenName));
135
136 QUrlQuery query = d->buildStandardPostQuery("screenview");
137 query.addQueryItem("cd", screenName);
138 query.addQueryItem("an", d->m_appName);
139 query.addQueryItem("av", d->m_appVersion);
140 appendCustomValues(query, customValues);
141
142 d->enqueQueryWithCurrentTime(query);
143}
144
145/**
146 * This method is called whenever a button was pressed in the application.

Callers 1

showMainWindowMethod · 0.80

Calls 5

QStringClass · 0.85
appendCustomValuesFunction · 0.85
logMessageMethod · 0.80

Tested by

no test coverage detected