mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
27 lines
553 B
C++
27 lines
553 B
C++
#ifndef IBUFFERFACTORY_H
|
|
#define IBUFFERFACTORY_H
|
|
|
|
#include <QSharedPointer>
|
|
|
|
namespace vnotex
|
|
{
|
|
class Buffer;
|
|
struct BufferParameters;
|
|
|
|
// Abstract factory to create buffer.
|
|
class IBufferFactory
|
|
{
|
|
public:
|
|
virtual ~IBufferFactory()
|
|
{
|
|
}
|
|
|
|
virtual Buffer *createBuffer(const BufferParameters &p_parameters,
|
|
QObject *p_parent) = 0;
|
|
|
|
virtual bool isBufferCreatedByFactory(const Buffer *p_buffer) const = 0;
|
|
};
|
|
} // ns vnotex
|
|
|
|
#endif // IBUFFERFACTORY_H
|