We have started our journey into application development with Qt by providing a clear map of what we want to achieve by means of scenarios, acceptance tests, and usecases. In turn, transforming scenarios into usecases has revealed the most important business object we need for our What's in my fridge? app: a list of grocery items. usecases have also outlined some of the characteristics of the grocery items business object; for example, it must be countable, and each list item should have a name that can be used to refer to, sort, add, and remove it from the list.
In this chapter, we will implement first the check available groceries usecase object, and then the grocery items business object (entity