zworld-em/Plugins/sentry-unreal/Source/Sentry/Private/Desktop/SentryEventDesktop.h

34 lines
754 B
C
Raw Permalink Normal View History

2025-05-11 22:07:21 +08:00
// Copyright (c) 2022 Sentry. All Rights Reserved.
#pragma once
#include "Convenience/SentryInclude.h"
#include "Interface/SentryEventInterface.h"
#if USE_SENTRY_NATIVE
class SentryEventDesktop : public ISentryEvent
{
public:
SentryEventDesktop();
SentryEventDesktop(sentry_value_t event, bool isCrash = false);
virtual ~SentryEventDesktop() override;
sentry_value_t GetNativeObject();
virtual void SetMessage(const FString& message) override;
virtual FString GetMessage() const override;
virtual void SetLevel(ESentryLevel level) override;
virtual ESentryLevel GetLevel() const override;
virtual bool IsCrash() const override;
virtual bool IsAnr() const override;
private:
sentry_value_t EventDesktop;
bool IsCrashEvent;
};
#endif