#pragma once #include #include #include #include namespace pomodoro { using pomotask = std::pair; std::set get_pomodoro_tasks() { std::set> ret; std::ifstream tasks(config::get_value("pomodoro.tasks")); int counter = 1; while(tasks.good()) { std::string str; getline (tasks, str); if(str.size()>1 && str[0] != '#') { ret.insert(std::make_pair(counter++, str)); } } return ret; } } #define pomodoro_actions_unwrap {\ std::make_pair('P',"Productive work"),\ std::make_pair('B',"Parallel work"),\ std::make_pair('C',"Non productive work"),\ std::make_pair('D',"Productive discution or chat"),\ std::make_pair('E',"Non productive chat"),\ std::make_pair('T',"Learning"),\ std::make_pair('S',"Improductive activity"),\ std::make_pair('Z',"Break")\ }