Paperd.Ink Library 0.0.5
Library for interacting with Paperd.Ink devices.
Loading...
Searching...
No Matches
todoist_parser.cpp
Go to the documentation of this file.
1#include "todo_list.h"
2#include "todoist_parser.h"
3
5static TODOIST_STATE key_state;
6
10
15
17{
19 key_state = FOUND_TASK;
20}
21
23{
24 if (key_state == FOUND_TASK) {
25 // Limit to TODO_LIST_MAX_TODO_STR_LENGTH to display properly on screen
26 //DEBUG.printf("TASK: %s\r\n", value.c_str());
30 key_state = NOT_FOUND;
31 }
32}
33
37
41
45
49
char tasks[TODO_LIST_MAX_TASKS][TODO_LIST_MAX_TODO_STR_LENGTH+1]
Definition todo_list.h:14
virtual void whitespace(char c)
virtual void key(String key)
virtual void value(String value)
@ NOT_FOUND
@ FOUND_TASK
PaperdinkUITodoListTodoistClass Paperdink_TodoListTodoist
#define TODO_LIST_MAX_TODO_STR_LENGTH
Definition todo_list.h:9
#define TODO_LIST_MAX_TASKS
Definition todo_list.h:8
TODOIST_STATE
@ FOUND_TASK
@ NOT_FOUND