Projekt

Allgemein

Profil

Herunterladen als
Herunterladen (1,31 KB) Statistiken
| Zweig: | Revision:
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/>.
*/

c5d0ed54 Christian Ehringfeld
#ifndef ARTICLE_H
#define ARTICLE_H
#include "entity.h"
81c23b56 Christian Ehringfeld
c5d0ed54 Christian Ehringfeld
class Article : public CuteEntityManager::Entity {
9d05e414 Christian Ehringfeld
Q_OBJECT
c5d0ed54 Christian Ehringfeld
Q_PROPERTY(double price READ getPrice WRITE setPrice)
a47954c0 Christian Ehringfeld
Q_PROPERTY(QString name READ getName WRITE setName)
private:
c5d0ed54 Christian Ehringfeld
double price;
81c23b56 Christian Ehringfeld
QString name;

a47954c0 Christian Ehringfeld
public:
c5d0ed54 Christian Ehringfeld
virtual ~Article();
Q_INVOKABLE Article();
Article(double price, QString name);
a47954c0 Christian Ehringfeld
QString getName() const;
void setName(const QString &value);
c5d0ed54 Christian Ehringfeld
double getPrice() const;
void setPrice(double value);
81c23b56 Christian Ehringfeld
};
#endif // ARTIKEL_H