LeviLamina
Loading...
Searching...
No Matches
IOperation.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/script_core/runtime/scripting/Result_deprecated.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Editor { class ServiceProviderCollection; }
11// clang-format on
12
13namespace Editor::Transactions {
14
16public:
17 // IOperation inner types declare
18 // clang-format off
19 struct EventData;
20 struct ProcessResult;
21 // clang-format on
22
23 // IOperation inner types define
24 enum class ProcessingState : int {
25 NotRequired = 0,
26 NotStarted = 1,
27 InProgress = 2,
28 Completed = 3,
29 };
30
31 struct EventData {
32 public:
33 // member variables
34 // NOLINTBEGIN
37 // NOLINTEND
38
39 public:
40 // prevent constructor by default
41 EventData& operator=(EventData const&);
42 EventData(EventData const&);
43 EventData();
44 };
45
46 struct ProcessResult {
47 public:
48 // member variables
49 // NOLINTBEGIN
52 // NOLINTEND
53
54 public:
55 // prevent constructor by default
56 ProcessResult& operator=(ProcessResult const&);
57 ProcessResult(ProcessResult const&);
58 ProcessResult();
59 };
60
61public:
62 // virtual functions
63 // NOLINTBEGIN
64 virtual ~IOperation() = default;
65
66 virtual ::std::string_view getName() = 0;
67
68 virtual ::Editor::Transactions::IOperation::ProcessResult
69 _processUndo(::Editor::ServiceProviderCollection& services) = 0;
70
71 virtual ::Editor::Transactions::IOperation::ProcessResult
72 _processRedo(::Editor::ServiceProviderCollection& services) = 0;
73
74 virtual ::Editor::Transactions::IOperation::ProcessingState _getProcessingState() const;
75
76 virtual ::Scripting::Result_deprecated<void> _clearActiveProcess();
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCNAPI ::Editor::Transactions::IOperation::ProcessingState $_getProcessingState() const;
83
84 MCNAPI ::Scripting::Result_deprecated<void> $_clearActiveProcess();
85
86
87 // NOLINTEND
88};
89
90} // namespace Editor::Transactions
Definition ServiceProviderCollection.h:7
Definition IOperation.h:15
MCAPI ::Scripting::Result_deprecated< void > $_clearActiveProcess()
MCAPI::Editor::Transactions::IOperation::ProcessingState $_getProcessingState() const
Definition Alias.h:14