diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2018-08-27 04:37:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-27 04:37:17 +0200 |
| commit | 246b1f44598349e60ef040839ecdbd95f1de1d5f (patch) | |
| tree | 60557346f78ade02536eb2b5eafd5ffeb6214547 /Source/Core/Common/AndroidAnalytics.h | |
| parent | b571d0c537625f3b34a4f2b98919a0fdd56d1c6f (diff) | |
| parent | a26cf8febcaf8d8f8d44a44ae834614bf89de2a8 (diff) | |
Merge pull request #7350 from zackhow/android-analytics
Android: Add usage statistics to android
Diffstat (limited to 'Source/Core/Common/AndroidAnalytics.h')
| -rw-r--r-- | Source/Core/Common/AndroidAnalytics.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Source/Core/Common/AndroidAnalytics.h b/Source/Core/Common/AndroidAnalytics.h new file mode 100644 index 0000000000..b96d67cb19 --- /dev/null +++ b/Source/Core/Common/AndroidAnalytics.h @@ -0,0 +1,26 @@ +// Copyright 2018 Dolphin Emulator Project +// Licensed under GPLv2+ +// Refer to the license.txt file included. +#pragma once + +#include <functional> +#include <string> + +#include "Common/Analytics.h" + +namespace Common +{ +void AndroidSetReportHandler(std::function<void(std::string, std::string)> function); + +class AndroidAnalyticsBackend : public AnalyticsReportingBackend +{ +public: + explicit AndroidAnalyticsBackend(const std::string endpoint); + + ~AndroidAnalyticsBackend() override; + void Send(std::string report) override; + +private: + std::string m_endpoint; +}; +} // namespace Common |
