From 8b65d0eb2815576780c57df428c1faf23fe75068 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 1 May 2022 17:31:28 +0200 Subject: Add ingredient group support for both krecipes and gourmet databases and show them in the viewer. --- src/recipe.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/recipe.h') diff --git a/src/recipe.h b/src/recipe.h index 631030f..0082d58 100644 --- a/src/recipe.h +++ b/src/recipe.h @@ -52,6 +52,12 @@ struct Ingredient std::string item; }; +struct IngredientGroup +{ + std::string title; + std::vector ingredients; +}; + struct Recipe { DatabaseSource db; @@ -60,7 +66,7 @@ struct Recipe std::string description; std::string image; std::string instructions; - std::vector ingredients; + std::vector ingredient_groups; std::string source; std::string cuisine; -- cgit v1.2.3