From 0dea7c3dad15f397600458ae9a81af29e95752fa Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 30 Apr 2022 21:12:44 +0200 Subject: Make 'super' database, encapsulating both the krecipes one and the gourmet one. Add small vignettes to the recipe list images to indicate from which soucre each item is coming from. --- src/recipe.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/recipe.h') diff --git a/src/recipe.h b/src/recipe.h index f33c07c..631030f 100644 --- a/src/recipe.h +++ b/src/recipe.h @@ -28,9 +28,18 @@ #include #include +#include + +enum class DatabaseSource +{ + KRecipes, + Gourmet, + Qookie, +}; struct RecipeItem { + DatabaseSource db; int id; std::string title; std::string image; @@ -45,6 +54,7 @@ struct Ingredient struct Recipe { + DatabaseSource db; int id; std::string title; std::string description; -- cgit v1.2.3