diff options
author | Sandro S. Andrade <sandroandrade@kde.org> | 2013-03-08 17:20:31 -0300 |
---|---|---|
committer | Sandro S. Andrade <sandroandrade@kde.org> | 2013-03-08 21:21:35 +0100 |
commit | 56fcc7521b3087eb8867806fd7baf11676359ad5 (patch) | |
tree | 28af312c532ffb7eb639b0364dc14521b45f1f9f /src/mof/qmofprimitivetype.cpp | |
parent | fa4d83d5343f3b54b8acf0619a2852ffff0e688c (diff) |
Add major refactoring for namespace-free model implementation
Rationale:
- MOC needs a explicit namespace use in order to auto declare
meta objects
- However, syncqt does not generate iheaders if namespaces are
used
Change-Id: Ic66152b469b2610624025b9a76380360d581f857
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/mof/qmofprimitivetype.cpp')
-rw-r--r-- | src/mof/qmofprimitivetype.cpp | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/src/mof/qmofprimitivetype.cpp b/src/mof/qmofprimitivetype.cpp new file mode 100644 index 00000000..6e94c007 --- /dev/null +++ b/src/mof/qmofprimitivetype.cpp @@ -0,0 +1,89 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Sandro S. Andrade <sandroandrade@kde.org> +** Contact: http://www.qt-project.org/ +** +** This file is part of the QtMof module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** GNU Lesser General Public License Usage +** This file may be used under the terms of the GNU Lesser General Public +** License version 2.1 as published by the Free Software Foundation and +** appearing in the file LICENSE.LGPL included in the packaging of this +** file. Please review the following information to ensure the GNU Lesser +** General Public License version 2.1 requirements will be met: +** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU General +** Public License version 3.0 as published by the Free Software Foundation +** and appearing in the file LICENSE.GPL included in the packaging of this +** file. Please review the following information to ensure the GNU General +** Public License version 3.0 requirements will be met: +** http://www.gnu.org/copyleft/gpl.html. +** +** Other Usage +** Alternatively, this file may be used in accordance with the terms and +** conditions contained in a signed written agreement between you and Nokia. +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "qmofprimitivetype.h" +#include "qmofprimitivetype_p.h" + +#include <QtWrappedObjects/QtWrappedObjectsNamespace> + +QT_BEGIN_NAMESPACE + +QMofPrimitiveTypePrivate::QMofPrimitiveTypePrivate() +{ +} + +QMofPrimitiveTypePrivate::~QMofPrimitiveTypePrivate() +{ +} + +/*! + \class QMofPrimitiveType + + \inmodule QtMof + + \brief A primitive type defines a predefined data type, without any relevant substructure (i.e., it has no parts in the context of UML). A primitive datatype may have an algebra and operations defined outside of UML, for example, mathematically. + */ + +QMofPrimitiveType::QMofPrimitiveType(QWrappedObject *wrapper, QWrappedObject *parent) : + QMofDataType(*new QMofPrimitiveTypePrivate, wrapper, parent) +{ + setPropertyData(); +} + +QMofPrimitiveType::QMofPrimitiveType(QMofPrimitiveTypePrivate &dd, QWrappedObject *wrapper, QWrappedObject *parent) : + QMofDataType(dd, wrapper, parent) +{ + setPropertyData(); +} + +QMofPrimitiveType::~QMofPrimitiveType() +{ +} + +void QMofPrimitiveType::setPropertyData() +{ + QMofDataType::setPropertyData(); +} + +QT_END_NAMESPACE + +#include "moc_qmofprimitivetype.cpp" + |