tt/src/project.h

29 lines
545 B
C
Raw Normal View History

#ifndef PROJECT_H
#define PROJECT_H
#include <string>
#include <vector>
#include "task.h"
class Project{
public:
Project(std::string name);
std::string name;
int num_tasks;
std::vector<Task> tasks;
void add_task(Task task);
void remove_task(int id);
int active_task;
};
2021-12-08 21:02:32 +01:00
class ProjectList{
public:
int num_projects;
std::vector<Project> projects;
void add_project(Project proj);
void remove_project(int id);
int active_project;
};
#endif