/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/keyboardmanager/KeyboardManagerEngineLibrary/trace.h
42 строки
2 KB
Stefan Markovic
[General]Add an option for telemetry opt-in and visualization(#34078)
24 окт 2024, 23:04
Не верифицирован
24 окт 2024, 23:04
133aa85
Код
Авторство
О чём код?
#pragma once #include "State.h" #include <common/Telemetry/TraceBase.h> class Trace : public telemetry::TraceBase { public: // Log if a key to key remap has been invoked today. static void DailyKeyToKeyRemapInvoked() noexcept; // Log if a key to shortcut remap has been invoked today. static void DailyKeyToShortcutRemapInvoked() noexcept; // Log if a shortcut to key remap has been invoked today. static void DailyShortcutToKeyRemapInvoked() noexcept; // Log if a shortcut to shortcut remap has been invoked today. static void DailyShortcutToShortcutRemapInvoked() noexcept; // Log if an app specific shortcut to key remap has been invoked today. static void DailyAppSpecificShortcutToKeyRemapInvoked() noexcept; // Log if an app specific shortcut to shortcut remap has been invoked today. static void DailyAppSpecificShortcutToShortcutRemapInvoked() noexcept; // Log if a key remap has been invoked (not being used currently, due to being garrulous) static void KeyRemapInvoked(bool isKeyToKey) noexcept; // Log if a shortcut remap has been invoked (not being used currently, due to being garrulous) static void ShortcutRemapInvoked(bool isShortcutToShortcut, bool isAppSpecific) noexcept; // Log the current remappings of key and shortcuts when keyboard manager engine loads the settings. static void SendKeyAndShortcutRemapLoadedConfiguration(State& remappings) noexcept; // Log an error while trying to send remappings telemetry. static void ErrorSendingKeyAndShortcutRemapLoadedConfiguration() noexcept; // Log if an error occurs in KBM static void Error(const DWORD errorCode, std::wstring errorMessage, std::wstring methodName) noexcept; };