Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
audacity::network_manager::MultipartData::Part Class Referenceabstract

#include <MultipartData.h>

Inheritance diagram for audacity::network_manager::MultipartData::Part:
[legend]
Collaboration diagram for audacity::network_manager::MultipartData::Part:
[legend]

Public Member Functions

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 HeadersListGetHeaders () const
 

Private Attributes

HeadersList mHeaders
 

Detailed Description

Definition at line 33 of file MultipartData.h.

Constructor & Destructor Documentation

◆ ~Part()

virtual audacity::network_manager::MultipartData::Part::~Part ( )
virtualdefault

Member Function Documentation

◆ GetHeaders()

const HeadersList & audacity::network_manager::MultipartData::Part::GetHeaders ( ) const

Definition at line 176 of file MultipartData.cpp.

177{
178 return mHeaders;
179}

◆ GetOffset()

virtual size_t audacity::network_manager::MultipartData::Part::GetOffset ( ) const
pure virtual

◆ GetSize()

virtual int64_t audacity::network_manager::MultipartData::Part::GetSize ( ) const
pure virtual

◆ Read()

virtual size_t audacity::network_manager::MultipartData::Part::Read ( void *  buffer,
size_t  maxBytes 
)
pure virtual

Implemented in audacity::network_manager::anonymous_namespace{MultipartData.cpp}::ByteBufferPart, and audacity::network_manager::anonymous_namespace{MultipartData.cpp}::FilePart.

Referenced by audacity::network_manager::anonymous_namespace{CurlResponse.cpp}::MimePartRead().

Here is the caller graph for this function:

◆ Seek()

virtual bool audacity::network_manager::MultipartData::Part::Seek ( int64_t  offset,
int  origin = SEEK_SET 
)
pure virtual

◆ SetContentDisposition()

void audacity::network_manager::MultipartData::Part::SetContentDisposition ( const std::string &  disposition)

Definition at line 171 of file MultipartData.cpp.

172{
174}
void SetHeader(const std::string &headerName, const std::string &headerValue)

References audacity::network_manager::common_headers::ContentDisposition.

◆ SetContentType()

void audacity::network_manager::MultipartData::Part::SetContentType ( const std::string &  mimeType)

◆ SetHeader()

void audacity::network_manager::MultipartData::Part::SetHeader ( const std::string &  headerName,
const std::string &  headerValue 
)

Definition at line 160 of file MultipartData.cpp.

162{
163 mHeaders.setHeader(headerName, headerValue);
164}
void setHeader(const Header &header)
Definition: HeadersList.cpp:94

References mHeaders, and audacity::network_manager::HeadersList::setHeader().

Here is the call graph for this function:

Member Data Documentation

◆ mHeaders

HeadersList audacity::network_manager::MultipartData::Part::mHeaders
private

Definition at line 50 of file MultipartData.h.

Referenced by SetHeader().


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