todo-cli
Loading...
Searching...
No Matches
view.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5
6#include "task.h"
7#include "types.h"
8#include "user_input.h"
9
10namespace todo {
11class View {
12public:
14 View() = default;
15
17 virtual ~View() = default;
18
21 virtual UserInput get_input(const std::string &msg) = 0;
22
26 virtual void display_list(
27 const std::vector<Task> &todo_list, u16 level = 0
28 ) = 0;
29
32 virtual void display_msg(const std::string &msg) = 0;
33};
34} // namespace todo
virtual ~View()=default
Destructor.
virtual UserInput get_input(const std::string &msg)=0
Gets input from the user.
virtual void display_msg(const std::string &msg)=0
Display message to screen.
View()=default
Default Constructor.
virtual void display_list(const std::vector< Task > &todo_list, u16 level=0)=0
Display task list to screen.
Definition actions.cpp:3
uint16_t u16
Definition types.h:14
Definition user_input.h:6