void UnregisterProcessor(Integration::Processor& processor, bool postProcessor = false);
/**
+ * @brief Register a processor implementing the Integration::Processor interface with dali-core.
+ * @param[in] processor the Processor to register
+ * @param[in] postProcessor set this processor required to be called after size negotiation. Default is false.
+ * @note registered processor will be unregistered automatically after process.
+ */
+ void RegisterProcessorOnce(Integration::Processor& processor, bool postProcessor = false);
+
+ /**
+ * @brief Unregister a previously registered once processor from dali-core.
+ * @param[in] processor the Processor to unregister
+ * @param[in] postProcessor True if the processor to be unregister is for post processor.
+ */
+ void UnregisterProcessorOnce(Integration::Processor& processor, bool postProcessor = false);
+
+ /**
* @brief Get the list of windows created.
* @return The list of windows
*/
GetCore().UnregisterProcessor(processor, postProcessor);
}
+void Adaptor::RegisterProcessorOnce(Integration::Processor& processor, bool postProcessor)
+{
+ GetCore().RegisterProcessorOnce(processor, postProcessor);
+}
+
+void Adaptor::UnregisterProcessorOnce(Integration::Processor& processor, bool postProcessor)
+{
+ GetCore().UnregisterProcessorOnce(processor, postProcessor);
+}
+
bool Adaptor::IsMultipleWindowSupported() const
{
return mConfigurationManager->IsMultipleWindowSupported();
#define DALI_INTERNAL_ADAPTOR_IMPL_H
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
void UnregisterProcessor(Integration::Processor& processor, bool postProcessor);
/**
+ * @copydoc Dali::Adaptor::RegisterProcessorOnce
+ */
+ void RegisterProcessorOnce(Integration::Processor& processor, bool postProcessor);
+
+ /**
+ * @coydoc Dali::Adaptor::UnregisterProcessorOnce
+ */
+ void UnregisterProcessorOnce(Integration::Processor& processor, bool postProcessor);
+
+ /**
* Check MultipleWindow is supported
*/
bool IsMultipleWindowSupported() const;
mImpl->UnregisterProcessor(processor, postProcessor);
}
+void Adaptor::RegisterProcessorOnce(Integration::Processor& processor, bool postProcessor)
+{
+ mImpl->RegisterProcessorOnce(processor, postProcessor);
+}
+
+void Adaptor::UnregisterProcessorOnce(Integration::Processor& processor, bool postProcessor)
+{
+ mImpl->UnregisterProcessorOnce(processor, postProcessor);
+}
+
Dali::WindowContainer Adaptor::GetWindows() const
{
return mImpl->GetWindows();