-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask.h
More file actions
47 lines (39 loc) · 988 Bytes
/
task.h
File metadata and controls
47 lines (39 loc) · 988 Bytes
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef TASK_H
#define TASK_H
// Task structure
typedef struct {
int id;
char title[100];
char category[50];
char timestamp[30];
int is_done; // 0 = pending, 1 = done
char due_date[15];
} Task;
// Core Features
void addTask();
void viewTasks();
void deleteTask();
void editTask();
void searchTask();
void markDone();
void clearTasks();
void restoreBackup(); // Undo feature
void sortTasks(); // Sort tasks by status + timestamp
// Advanced Features
void addTaskCLI(const char *title); // For ./cli -a "task"
void searchTaskCLI(const char *kw); // For ./cli -s "word"
void exportToCSV(); // Export to export.csv
// Utility
void getCurrentTime(char *buffer);
void loadTasks();
void saveTasks();
void backupTasks();
// 🔐 Protected & Filters
void filterTasksCLI(const char *filter);
void showStats();
// 📅 Due & Clean-up
void autoDeleteOldTasks();
void getTodayDate(char *buffer);
// 📝 Notes Mode
void notesMode();
#endif