|
| FilePart (const wxFileName &fileName) |
|
int64_t | GetSize () const override |
|
size_t | GetOffset () const override |
|
size_t | Read (void *buffer, size_t maxBytes) override |
|
bool | Seek (int64_t offset, int origin=SEEK_SET) override |
|
virtual | ~Part ()=default |
|
void | SetHeader (const std::string &headerName, const std::string &headerValue) |
|
void | SetContentType (const std::string &mimeType) |
|
void | SetContentDisposition (const std::string &disposition) |
|
virtual int64_t | GetSize () const =0 |
|
virtual size_t | GetOffset () const =0 |
|
virtual size_t | Read (void *buffer, size_t maxBytes)=0 |
|
virtual bool | Seek (int64_t offset, int origin=SEEK_SET)=0 |
|
const HeadersList & | GetHeaders () const |
|
Definition at line 101 of file MultipartData.cpp.
◆ FilePart()
audacity::network_manager::anonymous_namespace{MultipartData.cpp}::FilePart::FilePart |
( |
const wxFileName & |
fileName | ) |
|
|
inlineexplicit |
Definition at line 104 of file MultipartData.cpp.
106 {
107 if (!fileName.FileExists())
108 {
110 XO(
"Failed to open the file for upload: %s")
111 .
Format(fileName.GetFullPath()));
112 }
113
114 if (!
mFile.Open(fileName.GetFullPath()))
115 {
118 XO(
"Failed to open the file for upload: %s")
119 .
Format(fileName.GetFullPath()));
120 }
121 }
@ BadUserAction
Indicates that the user performed an action that is not allowed.
A MessageBoxException that shows a given, unvarying string.
References BadUserAction, and XO().
◆ GetOffset()
size_t audacity::network_manager::anonymous_namespace{MultipartData.cpp}::FilePart::GetOffset |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetSize()
int64_t audacity::network_manager::anonymous_namespace{MultipartData.cpp}::FilePart::GetSize |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Read()
size_t audacity::network_manager::anonymous_namespace{MultipartData.cpp}::FilePart::Read |
( |
void * |
buffer, |
|
|
size_t |
maxBytes |
|
) |
| |
|
inlineoverridevirtual |
◆ Seek()
bool audacity::network_manager::anonymous_namespace{MultipartData.cpp}::FilePart::Seek |
( |
int64_t |
offset, |
|
|
int |
origin = SEEK_SET |
|
) |
| |
|
inlineoverridevirtual |
◆ mFile
wxFile audacity::network_manager::anonymous_namespace{MultipartData.cpp}::FilePart::mFile |
|
private |
◆ mFileName
wxFileName audacity::network_manager::anonymous_namespace{MultipartData.cpp}::FilePart::mFileName |
|
private |
The documentation for this class was generated from the following file: