|
TDLib
|
Inherits Object.
Represents a local file.
Public Member Functions | |
| localFile () | |
| localFile (string const &path_, bool can_be_downloaded_, bool can_be_deleted_, bool is_downloading_active_, bool is_downloading_completed_, int53 download_offset_, int53 downloaded_prefix_size_, int53 downloaded_size_) | |
| void | store (TlStorerToString &s, const char *field_name) const final |
| Public Member Functions inherited from TlObject | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject & | operator= (TlObject &&)=default |
| virtual void | store (TlStorerCalcLength &s) const |
| virtual void | store (TlStorerUnsafe &s) const |
| TlObject ()=default | |
| TlObject (const TlObject &)=delete | |
| TlObject (TlObject &&)=default | |
| virtual | ~TlObject ()=default |
Public Attributes | |
| bool | can_be_deleted_ |
| True, if the file can be deleted. | |
| bool | can_be_downloaded_ |
| True, if it is possible to download or generate the file. | |
| int53 | download_offset_ |
| Download will be started from this offset. downloaded_prefix_size is calculated from this offset. | |
| int53 | downloaded_prefix_size_ |
| If is_downloading_completed is false, then only some prefix of the file starting from download_offset is ready to be read. downloaded_prefix_size is the size of that prefix in bytes. | |
| int53 | downloaded_size_ |
| Total downloaded file size, in bytes. Can be used only for calculating download progress. The actual file size may be bigger, and some parts of it may contain garbage. | |
| bool | is_downloading_active_ |
| True, if the file is currently being downloaded (or a local copy is being generated by some other means). | |
| bool | is_downloading_completed_ |
| True, if the local copy is fully available. | |
| string | path_ |
| Local path to the locally available file part; may be empty. | |
Static Public Attributes | |
| static const std::int32_t | ID = -1562732153 |
| Identifier uniquely determining a type of the object. | |
| localFile | ( | ) |
Represents a local file.
| localFile | ( | string const & | path_, |
| bool | can_be_downloaded_, | ||
| bool | can_be_deleted_, | ||
| bool | is_downloading_active_, | ||
| bool | is_downloading_completed_, | ||
| int53 | download_offset_, | ||
| int53 | downloaded_prefix_size_, | ||
| int53 | downloaded_size_ ) |
Represents a local file.
| [in] | path_ | Local path to the locally available file part; may be empty. |
| [in] | can_be_downloaded_ | True, if it is possible to download or generate the file. |
| [in] | can_be_deleted_ | True, if the file can be deleted. |
| [in] | is_downloading_active_ | True, if the file is currently being downloaded (or a local copy is being generated by some other means). |
| [in] | is_downloading_completed_ | True, if the local copy is fully available. |
| [in] | download_offset_ | Download will be started from this offset. downloaded_prefix_size is calculated from this offset. |
| [in] | downloaded_prefix_size_ | If is_downloading_completed is false, then only some prefix of the file starting from download_offset is ready to be read. downloaded_prefix_size is the size of that prefix in bytes. |
| [in] | downloaded_size_ | Total downloaded file size, in bytes. Can be used only for calculating download progress. The actual file size may be bigger, and some parts of it may contain garbage. |
|
finalvirtual |