From c66b8ded10f0d5e872e507fdff3010f732aa5449 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Thu, 2 Apr 2020 16:06:35 +0200 Subject: Split main.cpp into separate files --- got.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 got.h (limited to 'got.h') 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 +#include +#include + + +namespace got { + // The path to the database + std::string getDBpath(); + + // Returns {sheet, note} + std::optional> getRunning(); + + // Returns names of sheets occurring in the database + std::vector 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); +} -- cgit v1.2.3-70-g09d2