diff options
| author | 2019-06-05 15:57:48 -0400 | |
|---|---|---|
| committer | 2019-06-05 15:57:48 -0400 | |
| commit | 799302bc9d6edade951cf7746314d96d440c823c (patch) | |
| tree | 0fd074d6ab32ef2b2590bdd0c21302784976d653 /src/core/telemetry_session.h | |
| parent | Merge pull request #2545 from lioncash/timing (diff) | |
| parent | core/core: Remove unnecessary includes (diff) | |
| download | yuzu-799302bc9d6edade951cf7746314d96d440c823c.tar.gz yuzu-799302bc9d6edade951cf7746314d96d440c823c.tar.xz yuzu-799302bc9d6edade951cf7746314d96d440c823c.zip | |
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 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <memory> | ||
| 8 | #include <string> | 7 | #include <string> |
| 9 | #include "common/telemetry.h" | 8 | #include "common/telemetry.h" |
| 10 | 9 | ||
| 10 | namespace Loader { | ||
| 11 | class AppLoader; | ||
| 12 | } | ||
| 13 | |||
| 11 | namespace Core { | 14 | namespace Core { |
| 12 | 15 | ||
| 13 | /** | 16 | /** |
| @@ -15,11 +18,33 @@ namespace Core { | |||
| 15 | * session, logging any one-time fields. Interfaces with the telemetry backend used for submitting | 18 | * session, logging any one-time fields. Interfaces with the telemetry backend used for submitting |
| 16 | * data to the web service. Submits session data on close. | 19 | * data to the web service. Submits session data on close. |
| 17 | */ | 20 | */ |
| 18 | class TelemetrySession : NonCopyable { | 21 | class TelemetrySession { |
| 19 | public: | 22 | public: |
| 20 | TelemetrySession(); | 23 | explicit TelemetrySession(); |
| 21 | ~TelemetrySession(); | 24 | ~TelemetrySession(); |
| 22 | 25 | ||
| 26 | TelemetrySession(const TelemetrySession&) = delete; | ||
| 27 | TelemetrySession& operator=(const TelemetrySession&) = delete; | ||
| 28 | |||
| 29 | TelemetrySession(TelemetrySession&&) = delete; | ||
| 30 | TelemetrySession& operator=(TelemetrySession&&) = delete; | ||
| 31 | |||
| 32 | /** | ||
| 33 | * Adds the initial telemetry info necessary when starting up a title. | ||
| 34 | * | ||
| 35 | * This includes information such as: | ||
| 36 | * - Telemetry ID | ||
| 37 | * - Initialization time | ||
| 38 | * - Title ID | ||
| 39 | * - Title name | ||
| 40 | * - Title file format | ||
| 41 | * - Miscellaneous settings values. | ||
| 42 | * | ||
| 43 | * @param app_loader The application loader to use to retrieve | ||
| 44 | * title-specific information. | ||
| 45 | */ | ||
| 46 | void AddInitialInfo(Loader::AppLoader& app_loader); | ||
| 47 | |||
| 23 | /** | 48 | /** |
| 24 | * Wrapper around the Telemetry::FieldCollection::AddField method. | 49 | * Wrapper around the Telemetry::FieldCollection::AddField method. |
| 25 | * @param type Type of the field to add. | 50 | * @param type Type of the field to add. |