struct EE::UI::Models::Model::Operation

#include <model.hpp>

struct Operation {
    // fields

    OperationType type { OperationType::Invalid };
    Direction direction { Direction::Row };
    ModelIndex sourceParent;
    int first { 0 };
    int last { 0 };
    ModelIndex targetParent;
    int target { 0 };

    // construction

    Operation(OperationType type);
    Operation(OperationType type, Direction direction, ModelIndex const& parent, int first, int last);

    Operation(
        OperationType type,
        Direction direction,
        ModelIndex const& sourceParent,
        int first,
        int last,
        ModelIndex const& targetParent,
        int target
    );
};