Seamly2D
Code documentation
vabstractpropertyfactory.h
Go to the documentation of this file.
1 /************************************************************************
2  **
3  ** @file vabstractpropertyfactory.h
4  ** @author hedgeware <internal(at)hedgeware.net>
5  ** @date
6  **
7  ** @brief
8  ** @copyright
9  ** All rights reserved. This program and the accompanying materials
10  ** are made available under the terms of the GNU Lesser General Public License
11  ** (LGPL) version 2.1 which accompanies this distribution, and is available at
12  ** http://www.gnu.org/licenses/lgpl-2.1.html
13  **
14  ** This library is distributed in the hope that it will be useful,
15  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
16  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  ** Lesser General Public License for more details.
18  **
19  *************************************************************************/
20 
21 #ifndef VABSTRACTPROPERTYFACTORY_H
22 #define VABSTRACTPROPERTYFACTORY_H
23 
24 #include "../vmisc/diagnostic.h"
25 #include <QObject>
26 
27 namespace VPE
28 {
29 
30 class VProperty;
31 
32 QT_WARNING_PUSH
33 QT_WARNING_DISABLE_CLANG("-Wweak-vtables")
34 
36 {
37 public:
38  //! Empty virtual destructor
40 
41  //! Creates a new property of a certain type and assigns a name and description (otionally)
42  //! \param type The type of the property as string
43  //! \param name The property's name
44  //! \return Returns the created property or NULL if it couldn't be be created
45  virtual VProperty* createProperty(const QString& type, const QString &name) = 0;
46 };
47 
49 
50 }
51 
52 #endif // VABSTRACTPROPERTYFACTORY_H
virtual ~VAbstractPropertyFactory()
Empty virtual destructor.
virtual VProperty * createProperty(const QString &type, const QString &name)=0
Creates a new property of a certain type and assigns a name and description (otionally)