filesaver
filesaver::services::FileSizeService Class Reference

#include <FileSizeService.h>

Inheritance diagram for filesaver::services::FileSizeService:
filesaver::services::InMemoryFileEntryStore::Delegate

Public Member Functions

 INJECT (FileSizeService(StorageWorker *storageWorker, FileCategoryWorker *fileCategoryWorker, StorageService *storageService, InMemoryFileSizeService *inMemoryFileSizeService))
 
 ~FileSizeService ()
 
void onFileEntryBulk (std::vector< std::shared_ptr< FileEntry >> entries)
 
void onFileEntry (std::shared_ptr< FileEntry > fileEntry)
 
void onPathFinished (InMemoryFileEntryStore::Record &record) override
 
off_t getCurrentSizeAt (const std::string &filepath)
 
bool isPathFinished (const boost::filesystem::path &filepath)
 
bool isPathFinished (const std::string &filepath)
 
unsigned long getTotalFiles ()
 
unsigned long getTotalKnownFiles ()
 
- Public Member Functions inherited from filesaver::services::InMemoryFileEntryStore::Delegate
virtual ~Delegate ()
 

Detailed Description

Definition at line 25 of file FileSizeService.h.

Constructor & Destructor Documentation

◆ ~FileSizeService()

filesaver::services::FileSizeService::~FileSizeService ( )

Definition at line 25 of file FileSizeService.cpp.

Member Function Documentation

◆ getCurrentSizeAt()

off_t filesaver::services::FileSizeService::getCurrentSizeAt ( const std::string &  filepath)

Definition at line 48 of file FileSizeService.cpp.

◆ getTotalFiles()

unsigned long filesaver::services::FileSizeService::getTotalFiles ( )

Definition at line 93 of file FileSizeService.cpp.

◆ getTotalKnownFiles()

unsigned long filesaver::services::FileSizeService::getTotalKnownFiles ( )

Definition at line 98 of file FileSizeService.cpp.

◆ INJECT()

filesaver::services::FileSizeService::INJECT ( FileSizeService(StorageWorker *storageWorker, FileCategoryWorker *fileCategoryWorker, StorageService *storageService, InMemoryFileSizeService *inMemoryFileSizeService)  )

◆ isPathFinished() [1/2]

bool filesaver::services::FileSizeService::isPathFinished ( const boost::filesystem::path &  filepath)

Definition at line 67 of file FileSizeService.cpp.

◆ isPathFinished() [2/2]

bool filesaver::services::FileSizeService::isPathFinished ( const std::string &  filepath)

Definition at line 72 of file FileSizeService.cpp.

◆ onFileEntry()

void filesaver::services::FileSizeService::onFileEntry ( std::shared_ptr< FileEntry fileEntry)

Definition at line 41 of file FileSizeService.cpp.

◆ onFileEntryBulk()

void filesaver::services::FileSizeService::onFileEntryBulk ( std::vector< std::shared_ptr< FileEntry >>  entries)

Definition at line 30 of file FileSizeService.cpp.

◆ onPathFinished()

void filesaver::services::FileSizeService::onPathFinished ( InMemoryFileEntryStore::Record record)
overridevirtual

The documentation for this class was generated from the following files: