summaryrefslogtreecommitdiff
path: root/got.h
blob: bc2128c1f67fe3e25ad2c29f9e19a39423d042a9 (plain)
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
#pragma once

#include <vector>
#include <string>
#include <optional>


namespace got {
	// The path to the database
	std::string getDBpath();

	// Returns {sheet, note}
	std::optional<std::pair<std::string, std::string>> getRunning();

	// Returns names of sheets occurring in the database
	std::vector<std::string> getSheets();

	// Change the description of the currently running task to the given string
	void editRunning(const std::string &descr);

	// Check out of any current task
	void checkOut();

	// Check into the given sheet
	void checkIn(const std::string &sheet);
}