11#include <spdlog/spdlog.h>
16namespace Models::Operations {
43 explicit OperationProvider(QObject* parent =
nullptr){ spdlog::debug(
"OperationProvider: Constructed"); };
Pure interface for operation models.
Generic base class providing Qt signals/slots infrastructure for operation models.
void isActiveChanged()
Signal emitted when the operation's activity state changes. This signal is emitted by the operation m...
void operationApplied()
Signal emitted when an operation is applied successfully. Generic signal name, can be connected by UI...
virtual void onOperationCompleted()=0
Pure virtual slot to handle successful operation completion. Implementations in derived classes shoul...
virtual void onOperationFailed(const QString &error)=0
Pure virtual slot to handle operation failure. Implementations in derived classes should react to a f...
OperationProvider(QObject *parent=nullptr)
Constructs an OperationProvider.
virtual ~OperationProvider()=default
Virtual destructor.
void operationFailed(QString error)
Signal emitted when an operation fails. Generic signal name, can be connected by UI components or oth...