Herunterladen als
root/example/models/artikel.h @ 6dc7d533
81c23b56 | Christian Ehringfeld | /*
|
|
Small test class
|
|||
Copyright (C) 2013 Christian Ehringfeld <c.ehringfeld@t-online.de>
|
|||
This file is part of OpenTeacherTool.
|
|||
OpenTeacherTool is free software: you can redistribute it and/or modify
|
|||
it under the terms of the GNU General Public License as published by
|
|||
the Free Software Foundation, either version 3 of the License, or
|
|||
(at your option) any later version.
|
|||
OpenTeacherTool 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 General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License
|
|||
along with OpenTeacherTool. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/
|
|||
#ifndef ARTIKEL_H
|
|||
#define ARTIKEL_H
|
|||
9d05e414 | Christian Ehringfeld | #include "entity.h"
|
|
81c23b56 | Christian Ehringfeld | #include <QHash>
|
|
#include <QVariant>
|
|||
9d05e414 | Christian Ehringfeld | class Artikel : public CuteEntityManager::Entity {
|
|
Q_OBJECT
|
|||
81c23b56 | Christian Ehringfeld | private:
|
|
double preis;
|
|||
QString name;
|
|||
public:
|
|||
~Artikel();
|
|||
9d05e414 | Christian Ehringfeld | // QHash<QString, QString> getProperties(DatabaseType type);
|
|
// PersistenceType getPersistenceType();
|
|||
// QHash<QString,Entity*>* getRelations();
|
|||
// QHash<QString, QVariant>* getAttributeValues();
|
|||
// void setAttributes(QHash<QString, QVariant> h);
|
|||
explicit Artikel(QObject *parent = 0);
|
|||
81c23b56 | Christian Ehringfeld | Artikel(double preis, QString name);
|
|
9d05e414 | Christian Ehringfeld | Q_INVOKABLE double getPreis() const;
|
|
Q_INVOKABLE void setPreis(double value);
|
|||
Q_INVOKABLE QString getName() const;
|
|||
Q_INVOKABLE void setName(const QString &value);
|
|||
81c23b56 | Christian Ehringfeld | };
|
|
#endif // ARTIKEL_H
|