UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UnixFeedbackContext.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
8#include "CoreGlobals.h"
11#include "Misc/App.h"
14#include <syslog.h>
15
20{
22 FContextSupplier* Context;
23
24public:
25 // Variables.
27
28 // Constructor.
31 , Context( NULL )
32 , SlowTaskCount( 0 )
33 {}
34
35 void Serialize(const TCHAR* V, ELogVerbosity::Type Verbosity, const FName& Category) override;
36 void Serialize(const TCHAR* V, ELogVerbosity::Type Verbosity, const FName& Category, double Time) override;
37 void SerializeRecord(const UE::FLogRecord& Record) override;
38
40 bool YesNof(const FText& Question) override;
41
43 {
45 }
46
48 {
51 }
52
53 bool StatusUpdate(int32 Numerator, int32 Denominator, const FText& StatusText)
54 {
55 return true;
56 }
57
58 FContextSupplier* GetContext() const override
59 {
60 return Context;
61 }
62
64 {
65 Context = InSupplier;
66 }
67
68private:
69 void LogErrorToSysLog(const TCHAR* V, const FName& Category, double Time) const;
70 void LogErrorRecordToSysLog(const UE::FLogRecord& Record) const;
71};
#define NULL
Definition oodle2base.h:134
#define check(expr)
Definition AssertionMacros.h:314
bool GIsSlowTask
Definition CoreGlobals.cpp:225
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition CoreMisc.h:94
Definition FeedbackContext.h:30
Definition NameTypes.h:617
Definition Text.h:385
Definition UnixFeedbackContext.h:20
void EndSlowTask()
Definition UnixFeedbackContext.h:47
void SetContext(FContextSupplier *InSupplier) override
Definition UnixFeedbackContext.h:63
FUnixFeedbackContext()
Definition UnixFeedbackContext.h:29
void BeginSlowTask(const FText &Task, bool ShowProgressDialog, bool bShowCancelButton=false)
Definition UnixFeedbackContext.h:42
int32 SlowTaskCount
Definition UnixFeedbackContext.h:26
bool StatusUpdate(int32 Numerator, int32 Denominator, const FText &StatusText)
Definition UnixFeedbackContext.h:53
void SerializeRecord(const UE::FLogRecord &Record) override
Definition UnixFeedbackContext.cpp:23
FContextSupplier * GetContext() const override
Definition UnixFeedbackContext.h:58
bool YesNof(const FText &Question) override
Definition UnixFeedbackContext.cpp:36
Definition StructuredLog.h:182
Type
Definition LogVerbosity.h:17