2014-09-10 17:27:45 +02:00
|
|
|
/************************************************************************
|
|
|
|
**
|
|
|
|
** @file vabstractpropertyfactory.h
|
|
|
|
** @author hedgeware <internal(at)hedgeware.net>
|
|
|
|
** @date
|
|
|
|
**
|
|
|
|
** @brief
|
|
|
|
** @copyright
|
|
|
|
** All rights reserved. This program and the accompanying materials
|
|
|
|
** are made available under the terms of the GNU Lesser General Public License
|
|
|
|
** (LGPL) version 2.1 which accompanies this distribution, and is available at
|
|
|
|
** http://www.gnu.org/licenses/lgpl-2.1.html
|
|
|
|
**
|
|
|
|
** This library is distributed in the hope that it will be useful,
|
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
** Lesser General Public License for more details.
|
|
|
|
**
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
#ifndef VABSTRACTPROPERTYFACTORY_H
|
|
|
|
#define VABSTRACTPROPERTYFACTORY_H
|
|
|
|
|
|
|
|
#include "vpropertyexplorer_global.h"
|
2022-08-22 10:34:02 +02:00
|
|
|
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
|
2016-08-06 20:42:40 +02:00
|
|
|
#include "../vmisc/diagnostic.h"
|
2022-08-22 10:34:02 +02:00
|
|
|
#endif // QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
|
2014-09-10 17:27:45 +02:00
|
|
|
#include <QObject>
|
|
|
|
|
2014-09-10 19:57:08 +02:00
|
|
|
namespace VPE
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
|
|
|
|
class VProperty;
|
|
|
|
|
2016-08-06 20:42:40 +02:00
|
|
|
QT_WARNING_PUSH
|
|
|
|
QT_WARNING_DISABLE_CLANG("-Wweak-vtables")
|
2014-10-03 13:40:39 +02:00
|
|
|
|
2014-09-10 17:27:45 +02:00
|
|
|
class VPROPERTYEXPLORERSHARED_EXPORT VAbstractPropertyFactory
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
//! Empty virtual destructor
|
2015-07-03 15:36:54 +02:00
|
|
|
virtual ~VAbstractPropertyFactory() {}
|
2014-09-10 17:27:45 +02:00
|
|
|
|
|
|
|
//! 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;
|
|
|
|
};
|
|
|
|
|
2016-08-06 20:42:40 +02:00
|
|
|
QT_WARNING_POP
|
2014-10-03 13:40:39 +02:00
|
|
|
|
2014-09-10 17:27:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // VABSTRACTPROPERTYFACTORY_H
|