2020-12-30 22:07:54 -06:00
|
|
|
/*
|
|
|
|
* Copyright 2020, Jaidyn Levesque <jadedctrl@teknik.io>
|
|
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
|
|
*/
|
2020-07-03 19:13:41 -05:00
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
2020-12-30 22:07:54 -06:00
|
|
|
|
2020-07-07 17:42:12 -05:00
|
|
|
#include <DateTime.h>
|
2020-07-04 04:44:54 -05:00
|
|
|
#include <String.h>
|
2020-07-03 19:13:41 -05:00
|
|
|
#include <StorageKit.h>
|
|
|
|
|
2020-12-30 22:07:54 -06:00
|
|
|
|
2020-07-03 19:13:41 -05:00
|
|
|
class Config {
|
|
|
|
public:
|
2020-12-30 22:07:54 -06:00
|
|
|
Config();
|
|
|
|
Config(Config*);
|
|
|
|
|
|
|
|
void Load();
|
|
|
|
void Save();
|
2020-08-14 12:34:09 -05:00
|
|
|
|
2020-07-03 19:13:41 -05:00
|
|
|
bool verbose;
|
|
|
|
bool daemon;
|
|
|
|
BString outDir;
|
2020-07-07 17:42:12 -05:00
|
|
|
|
2021-01-12 19:08:42 -06:00
|
|
|
int64 updateInterval;
|
2020-07-13 12:31:52 -05:00
|
|
|
BString configDir;
|
|
|
|
BString cacheDir;
|
2020-07-07 20:17:52 -05:00
|
|
|
bool will_save;
|
|
|
|
|
2020-07-13 12:31:52 -05:00
|
|
|
bool updateFeeds;
|
2020-07-03 19:13:41 -05:00
|
|
|
};
|
|
|
|
|
2020-12-30 22:07:54 -06:00
|
|
|
|
2020-07-03 19:13:41 -05:00
|
|
|
#endif
|
2020-12-30 22:07:54 -06:00
|
|
|
|