Pogger/src/Config.h

40 lines
548 B
C
Raw Normal View History

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>
#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-07-03 19:13:41 -05:00
bool verbose;
bool daemon;
BString outDir;
2020-07-07 20:17:52 -05:00
BList targetFeeds; // strings of files or urls
2020-07-03 19:13:41 -05:00
2020-07-07 17:42:12 -05:00
BDateTime minDate;
BDateTime maxDate;
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