basic bits of new file list sharing system

This commit is contained in:
mr-alice 2016-04-14 18:25:12 -04:00
parent 0c474f9283
commit 89af650f74
5 changed files with 112 additions and 0 deletions

View file

@ -0,0 +1,25 @@
// This class crawls the given directry hierarchy and updates it. It does so by calling the
// shared file list source. This source may be of two types:
// - local: directories are crawled n disk and files are hashed / requested from a cache
// - remote: directories are requested remotely to a providing client
//
class DirectoryUpdater
{
public:
DirectoryUpdater() ;
// Does some updating job. Crawls the existing directories and checks wether it has been updated
// recently enough. If not, calls the directry source.
//
void tick() ;
//
};
class LocalDirectoryUpdater: public DirectoryUpdater
{
};
class RemoteDirectoryUpdater: public DirectoryUpdater
{
};