Git commit 6b70fafa67ccc29c507c055193dec1b9e9f724f4 by Jos=C3=A9 Manuel San= tamar=C3=ADa Lema. Committed on 10/07/2016 at 18:38. Pushed by joselema into branch 'master'. Add initial KreIngredient implementation. M +1 -0 src/CMakeLists.txt A +20 -0 src/dtos/kreingredient.cpp [License: GPL (v2+)] A +23 -0 src/dtos/kreingredient.h [License: GPL (v2+)] http://commits.kde.org/krecipes/6b70fafa67ccc29c507c055193dec1b9e9f724f4 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 694ccdf..63a8e2c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -23,6 +23,7 @@ add_definitions (-DQT3_SUPPORT_WARNINGS) = set(krecipesdtos_SRCS dtos/kreelement.cpp + dtos/kreingredient.cpp ) = ############# backends ############### diff --git a/src/dtos/kreingredient.cpp b/src/dtos/kreingredient.cpp new file mode 100644 index 0000000..9fc4912 --- /dev/null +++ b/src/dtos/kreingredient.cpp @@ -0,0 +1,20 @@ +/*************************************************************************= ** +* Copyright =C2=A9 2016 Jos=C3=A9 Manuel Santamar=C3=ADa Lema * +* = * +* This program 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 2 of the License, or = * +* (at your option) any later version. = * +**************************************************************************= **/ + +#include "kreingredient.h" + +KreIngredient::KreIngredient(): + KreElement() +{ +} + +KreIngredient::KreIngredient( const QVariant & id, const QString & name ): + KreElement( id, name ) +{ +} diff --git a/src/dtos/kreingredient.h b/src/dtos/kreingredient.h new file mode 100644 index 0000000..1548642 --- /dev/null +++ b/src/dtos/kreingredient.h @@ -0,0 +1,23 @@ +/*************************************************************************= ** +* Copyright =C2=A9 2016 Jos=C3=A9 Manuel Santamar=C3=ADa Lema * +* = * +* This program 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 2 of the License, or = * +* (at your option) any later version. = * +**************************************************************************= **/ + +#ifndef KREINGREDIENT_H +#define KREINGREDIENT_H + +#include "kreelement.h" + +class KreIngredient: public KreElement { + +public: + KreIngredient(); + KreIngredient( const QVariant & id, const QString & name ); + +}; + +#endif