valentina/src/libs/vpropertyexplorer/vabstractpropertyfactory.h
dismine 3ccd408718 New library VPropertyExplorer.
--HG--
branch : feature
2014-08-26 18:06:14 +03:00

27 lines
741 B
C++

#ifndef VABSTRACTPROPERTYFACTORY_H
#define VABSTRACTPROPERTYFACTORY_H
#include "vpropertyexplorer_global.h"
#include <QObject>
namespace VPE {
class VProperty;
class VPROPERTYEXPLORERSHARED_EXPORT VAbstractPropertyFactory
{
public:
//! Empty virtual destructor
virtual ~VAbstractPropertyFactory() {}
//! Creates a new property of a certain type and assigns a name and description (otionally)
//! \param type The type of the property as string
//! \param name The property's name
//! \return Returns the created property or NULL if it couldn't be be created
virtual VProperty* createProperty(const QString& type, const QString &name) = 0;
};
}
#endif // VABSTRACTPROPERTYFACTORY_H