forked from apermatigari/CS-100-Final-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
taskList.h
30 lines (27 loc) · 898 Bytes
/
taskList.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef TASK_LIST_H
#define TASK_LIST_H
#include "task.h"
#include "mergeSort.h"
#include "timeSort.h"
#include <string>
#include <vector>
using namespace std;
class taskList {
private:
int numOfTasks;
vector<Task> allTasksList;
vector<Task> timeFirst;
vector<Task> priorityFirst;
public:
taskList();
int createTask(string title, string descrip, string dueDate, int hour, char priority);
void merge(vector<Task>& vectorToBeSorted, int timeOrPrioritySort);
int editTaskInList(string title, int choice, string newTitle, string newD, string newDate, int newHour, char newP);
int removeTaskInList(string title);
bool duplicateTaskInListCheck(string title);
int getListSize();
vector<Task> getAllTasksList() const;
vector<Task> getTimeVector() const;
vector<Task> getPriorityVector() const;
};
#endif