added squeleton code for own directory update

This commit is contained in:
mr-alice 2016-07-21 00:16:12 -04:00
parent 3bf3d0c360
commit 3c976bb7ee
6 changed files with 248 additions and 54 deletions

View file

@ -3,6 +3,9 @@
// - local: directories are crawled n disk and files are hashed / requested from a cache
// - remote: directories are requested remotely to a providing client
//
class HashCache ;
class LocalDirectoryStorage ;
class DirectoryUpdater
{
public:
@ -18,8 +21,13 @@ class DirectoryUpdater
class LocalDirectoryUpdater: public DirectoryUpdater
{
public:
virtual void tick() ;
public:
LocalDirectoryUpdater(HashCache *hash_cache) ;
virtual void tick() ;
private:
HashCache *mHashCache ;
LocalDirectoryStorage *mSharedDirectories ;
};
class RemoteDirectoryUpdater: public DirectoryUpdater