summaryrefslogtreecommitdiff
path: root/got.h
diff options
context:
space:
mode:
Diffstat (limited to 'got.h')
-rw-r--r--got.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/got.h b/got.h
new file mode 100644
index 0000000..bc2128c
--- /dev/null
+++ b/got.h
@@ -0,0 +1,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);
+}