Add source code.
This commit is contained in:
1 parent
dab19ace02
commit
0b8a7b3cdc
31 files changed
+2809
No files matched your search
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
// User preferences stored outside the database, in
|
||||
// $XDG_CONFIG_HOME/task_tracker (or ~/.config/task_tracker, or %APPDATA%).
|
||||
class Config {
|
||||
public:
|
||||
Config();
|
||||
|
||||
void load();
|
||||
void save() const;
|
||||
|
||||
const std::string& editor() const; // empty = use the default
|
||||
void setEditor(const std::string& command);
|
||||
|
||||
std::string historyPath() const;
|
||||
|
||||
static std::string directory();
|
||||
|
||||
private:
|
||||
std::string directory_;
|
||||
std::string editor_;
|
||||
};
|
||||
Reference in new issue
Block a user