diff options
author | Zach Hilman <DarkLordZach@users.noreply.github.com> | 2019-06-05 15:57:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-05 15:57:48 -0400 |
commit | 799302bc9d6edade951cf7746314d96d440c823c (patch) | |
tree | 0fd074d6ab32ef2b2590bdd0c21302784976d653 /src/core/telemetry_session.h | |
parent | 81e09bb1213720c31b7881c9396385375dac5749 (diff) | |
parent | 8bbe930faccc43d85f7890c2b7869c2407a0eef5 (diff) |
Merge pull request #2526 from lioncash/global
core/telemetry_session: Remove usages of the global system accessor
Diffstat (limited to 'src/core/telemetry_session.h')
-rw-r--r-- | src/core/telemetry_session.h | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/src/core/telemetry_session.h b/src/core/telemetry_session.h index cae5a45a0..17ac22377 100644 --- a/src/core/telemetry_session.h +++ b/src/core/telemetry_session.h @@ -4,10 +4,13 @@ #pragma once -#include <memory> #include <string> #include "common/telemetry.h" +namespace Loader { +class AppLoader; +} + namespace Core { /** @@ -15,11 +18,33 @@ namespace Core { * session, logging any one-time fields. Interfaces with the telemetry backend used for submitting * data to the web service. Submits session data on close. */ -class TelemetrySession : NonCopyable { +class TelemetrySession { public: - TelemetrySession(); + explicit TelemetrySession(); ~TelemetrySession(); + TelemetrySession(const TelemetrySession&) = delete; + TelemetrySession& operator=(const TelemetrySession&) = delete; + + TelemetrySession(TelemetrySession&&) = delete; + TelemetrySession& operator=(TelemetrySession&&) = delete; + + /** + * Adds the initial telemetry info necessary when starting up a title. + * + * This includes information such as: + * - Telemetry ID + * - Initialization time + * - Title ID + * - Title name + * - Title file format + * - Miscellaneous settings values. + * + * @param app_loader The application loader to use to retrieve + * title-specific information. + */ + void AddInitialInfo(Loader::AppLoader& app_loader); + /** * Wrapper around the Telemetry::FieldCollection::AddField method. * @param type Type of the field to add. |