24 lines
773 B
C++
24 lines
773 B
C++
#pragma once
|
|
|
|
#include "ShapeTypes.h"
|
|
#include <QtPlugin>
|
|
|
|
#define TKR_SHAPE_PROVIDER_IID "org.tikzrefinery.ShapeProvider/1.0"
|
|
|
|
namespace TikzRefinery {
|
|
|
|
// Strategy interface; native modules require the exact documented build contract.
|
|
class tkrShapeProvider
|
|
{
|
|
public:
|
|
virtual ~tkrShapeProvider() = default;
|
|
virtual QStringList availableOperations(const ShapeApi::ElementDescription &description) const = 0;
|
|
virtual ShapeApi::PresentationDescription describePresentation(
|
|
const ShapeApi::ElementDescription &description) const = 0;
|
|
virtual ShapeApi::PreparationResult prepareOperation(const ShapeApi::OperationRequest &request) const = 0;
|
|
};
|
|
|
|
} // namespace TikzRefinery
|
|
|
|
Q_DECLARE_INTERFACE(TikzRefinery::tkrShapeProvider, TKR_SHAPE_PROVIDER_IID)
|