mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 07:05:26 -04:00
added iterators for directory storage class
This commit is contained in:
parent
3e48b0fd95
commit
25c824fd5f
6 changed files with 320 additions and 38 deletions
|
@ -4,13 +4,13 @@
|
|||
// - remote: directories are requested remotely to a providing client
|
||||
//
|
||||
#include "file_sharing/hash_cache.h"
|
||||
|
||||
class LocalDirectoryStorage ;
|
||||
#include "file_sharing/directory_storage.h"
|
||||
|
||||
class DirectoryUpdater
|
||||
{
|
||||
public:
|
||||
DirectoryUpdater() ;
|
||||
DirectoryUpdater() {}
|
||||
virtual ~DirectoryUpdater(){}
|
||||
|
||||
// Does some updating job. Crawls the existing directories and checks wether it has been updated
|
||||
// recently enough. If not, calls the directry source.
|
||||
|
@ -24,6 +24,8 @@ class LocalDirectoryUpdater: public DirectoryUpdater, public HashCacheClient
|
|||
{
|
||||
public:
|
||||
LocalDirectoryUpdater(HashCache *hash_cache) ;
|
||||
virtual ~LocalDirectoryUpdater() {}
|
||||
|
||||
virtual void tick() ;
|
||||
|
||||
protected:
|
||||
|
@ -38,5 +40,8 @@ private:
|
|||
class RemoteDirectoryUpdater: public DirectoryUpdater
|
||||
{
|
||||
public:
|
||||
RemoteDirectoryUpdater() {}
|
||||
virtual ~RemoteDirectoryUpdater() {}
|
||||
|
||||
virtual void tick() ;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue