#include "model/recipe/recipe.h" Recipe::Recipe(){ //Set default values when none are specified. this->name = "Unnamed Recipe"; this->ingredients = vector(); this->instruction = Instruction(); this->image = QImage(); this->tags = vector(); this->createdDate = QDate.currentDate(); this->prepTime = QTime(1, 0); this->cookTime = QTime(0, 30); this->servings = 10; } Recipe::Recipe(string name, vector ingredients, Instruction instruction, QImage image, vector tags, QDate createdDate, QTime prepTime, QTime cookTime, float servings){ this->name = name; this->ingredients = ingredients; this->instruction = instruction; this->image = image; this->tags = tags; this->createdDate = createdDate; this->prepTime = prepTime; this->cookTime = cookTime; this->servings = servings; } Recipe::Recipe(string name, vector ingredients, Instruction instruction) { this->name = name; this->ingredients = ingredients; this->instruction = instruction; } string Recipe::getName(){ return this->name; } vector Recipe::getIngredients(){ return this->ingredients; } Instruction Recipe::getInstruction(){ return this->instruction; }