giga::core::Sha1Calculator Class Referencefinal
Inheritance diagram for giga::core::Sha1Calculator:
Public Member Functions | |
Sha1Calculator (const boost::filesystem::path &filename, pplx::cancellation_token_source cts=pplx::cancellation_token_source{}) | |
Sha1Calculator (Sha1Calculator &&)=delete | |
Sha1Calculator & | operator= (const Sha1Calculator &)=delete |
Sha1Calculator (const Sha1Calculator &)=delete | |
const pplx::task< std::string > & | task () const |
Gets the task managing the sha1 calculation process. Make sure you have started the sha1 calculation before calling this method. More... | |
FileTransferer::Progress | progress () const override |
Gets the progress of the sha1 calculation. | |
const boost::filesystem::path & | filename () const override |
Public Member Functions inherited from giga::core::FileTransferer | |
FileTransferer (pplx::cancellation_token_source cts) | |
FileTransferer (FileTransferer &&other) | |
FileTransferer (const FileTransferer &)=delete | |
FileTransferer & | operator= (const FileTransferer &)=delete |
FileTransferer & | operator= (FileTransferer &&)=delete |
void | start () |
Start a transfer. | |
void | pause () |
Pause the current transfer (see resume() ) | |
void | resume () |
Resume the current transfer (see pause() ) | |
void | cancel () |
Cancel a started upload. The task managing the transfer will most probably throw an exception. | |
void | setError (const std::string &error) |
State | state () const |
void | limitRate (uint64_t rate) |
Limit the rate of the transfer. More... | |
Protected Member Functions | |
void | doStart () override |
Additional Inherited Members | |
Public Types inherited from giga::core::FileTransferer | |
enum | State { pending, started, paused, canceled, error } |
Protected Attributes inherited from giga::core::FileTransferer | |
State | _state |
std::unique_ptr < details::CurlProgress > | _progress |
std::mutex | _mut |
pplx::cancellation_token_source | _cts |
utility::string_t | _error |
Member Function Documentation
const pplx::task< std::string > & giga::core::Sha1Calculator::task | ( | ) | const |
Gets the task managing the sha1 calculation process. Make sure you have started the sha1 calculation before calling this method.
The documentation for this class was generated from the following files:
- /home/thomas/code/GiGaSdk/src/giga/core/Sha1Calculator.h
- /home/thomas/code/GiGaSdk/src/giga/core/Sha1Calculator.cpp