31 #include "core/GpgConstants.h"
32 #include "core/function/SecureMemoryAllocator.h"
65 static auto GetDefaultChannel() ->
int;
72 [[nodiscard]] auto GetChannel() const ->
int;
79 void SetChannel(
int channel);
82 int channel_ = kGpgFrontendDefaultChannel;
86 template <typename Derived>
87 auto ConvertToChannelObjectPtr(
90 static_assert(std::is_base_of_v<ChannelObject, Derived>,
91 "Derived must be a subclass of ChannelObject");
94 return std::unique_ptr<ChannelObject, SecureObjectDeleter<ChannelObject>>(
object which in channel system is called "channel"
Definition: ChannelObject.h:39
ChannelObject() noexcept
Construct a new Default Channel Object object.
Definition: SecureMemoryAllocator.h:48