summaryrefslogtreecommitdiff
path: root/got.h
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-04-02 16:06:35 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-04-02 16:06:35 +0200
commitc66b8ded10f0d5e872e507fdff3010f732aa5449 (patch)
tree53b728799b2d1c0ad0d7027f9b816faf12591e58 /got.h
parent624effabd4a3be9894ffca29b9bd43868d739f3c (diff)
Split main.cpp into separate files
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);
+}