2024-05-09 10:32:03 -04:00
|
|
|
#pragma once
|
2024-10-24 22:04:32 +02:00
|
|
|
#include <common/Telemetry/TraceBase.h>
|
2024-05-09 10:32:03 -04:00
|
|
|
#include <interface/powertoy_module_interface.h>
|
2024-10-18 15:34:09 +02:00
|
|
|
#include <unordered_map>
|
2024-05-09 10:32:03 -04:00
|
|
|
|
2024-10-24 22:04:32 +02:00
|
|
|
class Trace : public telemetry::TraceBase
|
2024-05-09 10:32:03 -04:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
// Log if the user has AdvancedPaste enabled or disabled
|
|
|
|
|
static void AdvancedPaste_Enable(const bool enabled) noexcept;
|
|
|
|
|
|
|
|
|
|
// Log if the user has invoked AdvancedPaste
|
|
|
|
|
static void AdvancedPaste_Invoked(std::wstring mode) noexcept;
|
|
|
|
|
|
|
|
|
|
// Log if an error occurs in AdvancedPaste
|
|
|
|
|
static void Trace::AdvancedPaste_Error(const DWORD errorCode, std::wstring errorMessage, std::wstring methodName) noexcept;
|
|
|
|
|
|
|
|
|
|
// Event to send settings telemetry.
|
|
|
|
|
static void Trace::AdvancedPaste_SettingsTelemetry(const PowertoyModuleIface::Hotkey& pastePlainHotkey,
|
|
|
|
|
const PowertoyModuleIface::Hotkey& advancedPasteUIHotkey,
|
|
|
|
|
const PowertoyModuleIface::Hotkey& pasteMarkdownHotkey,
|
|
|
|
|
const PowertoyModuleIface::Hotkey& pasteJsonHotkey,
|
2024-10-18 15:34:09 +02:00
|
|
|
const bool preview_custom_format_output,
|
|
|
|
|
const std::unordered_map<std::wstring, PowertoyModuleIface::Hotkey>& additionalActionsHotkeys) noexcept;
|
2024-05-09 10:32:03 -04:00
|
|
|
};
|