19 namespace Operations {
20 struct OperationDescriptor;
22 namespace Serializer {
23 class FileSerializerManager;
57 explicit SerializerController(std::unique_ptr<CaptureMoment::Core::Serializer::FileSerializerManager> file_serializer_manager, QObject* parent =
nullptr);
86 void operationsLoaded(
const std::vector<CaptureMoment::Core::Operations::OperationDescriptor>& operations);
109 void saveOperations(
const QString& image_path,
const std::vector<CaptureMoment::Core::Operations::OperationDescriptor>& operations);
127 std::unique_ptr<CaptureMoment::Core::Serializer::FileSerializerManager> m_file_serializer_manager;
UI manager for handling file-based serialization and deserialization of image operations.
~SerializerController() override
Destructor.
void saveOperations(const QString &image_path, const std::vector< CaptureMoment::Core::Operations::OperationDescriptor > &operations)
Saves the provided list of operations to a file associated with the given image path.
SerializerController(std::unique_ptr< CaptureMoment::Core::Serializer::FileSerializerManager > file_serializer_manager, QObject *parent=nullptr)
Constructs a UISerializerManager.
void operationsSaved()
Signal emitted when operations are successfully saved to a file.
void operationsSaveFailed(const QString &error_msg)
Signal emitted when the operation to save operations fails.
SerializerController(SerializerController &&)=delete
void operationsLoadFailed(const QString &error_msg)
Signal emitted when the operation to load operations fails.
void operationsNotFoundOnLoad()
Signal emitted when no operations were found in the file during load.
SerializerController & operator=(SerializerController &&)=delete
SerializerController & operator=(const SerializerController &)=delete
void operationsLoaded(const std::vector< CaptureMoment::Core::Operations::OperationDescriptor > &operations)
Signal emitted when operations are successfully loaded from a file.
SerializerController(const SerializerController &)=delete
void loadOperations(const QString &image_path)
Loads a list of operations from a file associated with the given image path.
Declaration of FileSerializerManager class.
Manages the lifecycle of a single IWorkingImage instance.
Descriptor of an operation with its parameters and unique identifier.