diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-04-02 16:06:35 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-04-02 16:06:35 +0200 |
commit | c66b8ded10f0d5e872e507fdff3010f732aa5449 (patch) | |
tree | 53b728799b2d1c0ad0d7027f9b816faf12591e58 /got.h | |
parent | 624effabd4a3be9894ffca29b9bd43868d739f3c (diff) |
Split main.cpp into separate files
Diffstat (limited to 'got.h')
-rw-r--r-- | got.h | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -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); +} |