mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-18 18:12:52 -05:00
added squeleton code for own directory update
This commit is contained in:
parent
3bf3d0c360
commit
3c976bb7ee
6 changed files with 248 additions and 54 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue