mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 15:15:15 -04:00
basic bits of new file list sharing system
This commit is contained in:
parent
0c474f9283
commit
89af650f74
5 changed files with 112 additions and 0 deletions
25
libretroshare/src/file_sharing/directory_updater.h
Normal file
25
libretroshare/src/file_sharing/directory_updater.h
Normal 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
|
||||
{
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue