Calculate program file directories:

* Determine location of database files in Config
* Inject database directory or file path in PeerFinder and Validators
* PeerFinder and Validators will share the same sqlite file
This commit is contained in:
Nik Bougalis
2014-02-28 09:19:37 -08:00
committed by Vinnie Falco
parent e055dc1513
commit 28c7827f14
9 changed files with 84 additions and 32 deletions

View File

@@ -36,9 +36,13 @@ protected:
public:
/** Create a new Manager object.
@param parent The parent Stoppable.
@param pathToDbFileOrDirectory The directory where our database is stored
@param journal Where to send log output.
*/
static Manager* New (Stoppable& stoppableParent, Journal journal);
static Manager* New (
Stoppable& stoppableParent,
File const& pathToDbFileOrDirectory,
Journal journal);
/** Destroy the object.
Any pending source fetch operations are aborted. This will block