Herunterladen als
root/samples/simple/artikel.cpp @ 9e62667d
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/>.
|
|||
*/
|
|||
#include "artikel.h"
|
|||
9d05e414 | Christian Ehringfeld | double Artikel::getPreis() const {
|
|
return preis;
|
|||
81c23b56 | Christian Ehringfeld | }
|
|
9d05e414 | Christian Ehringfeld | void Artikel::setPreis(double value) {
|
|
preis = value;
|
|||
81c23b56 | Christian Ehringfeld | }
|
|
9d05e414 | Christian Ehringfeld | QString Artikel::getName() const {
|
|
return name;
|
|||
81c23b56 | Christian Ehringfeld | }
|
|
9d05e414 | Christian Ehringfeld | void Artikel::setName(const QString &value) {
|
|
name = value;
|
|||
81c23b56 | Christian Ehringfeld | }
|
|
Artikel::~Artikel() {
|
|||
}
|
|||
6d91d381 | Christian Ehringfeld | Artikel::Artikel() : Entity() {
|
|
this->preis = 0.0;
|
|||
this->name = "";
|
|||
ba6f6521 | Christian Ehringfeld | }
|
|
6d91d381 | Christian Ehringfeld | Artikel::Artikel(double preis, QString name) : Entity() {
|
|
9d05e414 | Christian Ehringfeld | this->preis = preis;
|
|
this->name = name;
|
|||
81c23b56 | Christian Ehringfeld | }
|