Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
audacity::network_manager::CurlStringList Class Referencefinal

#include <CurlStringList.h>

Public Member Functions

 CurlStringList ()=default
 
 CurlStringList (CurlStringList &&rhs) noexcept
 
 ~CurlStringList () noexcept
 
CurlStringListoperator= (CurlStringList &&rhs) noexcept
 
void append (const std::string &string) noexcept
 
void append (const char *string) noexcept
 
curl_slist * getCurlList () const noexcept
 

Private Attributes

curl_slist * mList { nullptr }
 

Detailed Description

Definition at line 22 of file CurlStringList.h.

Constructor & Destructor Documentation

◆ CurlStringList() [1/2]

audacity::network_manager::CurlStringList::CurlStringList ( )
default

◆ CurlStringList() [2/2]

audacity::network_manager::CurlStringList::CurlStringList ( CurlStringList &&  rhs)
noexcept

Definition at line 21 of file CurlStringList.cpp.

22 : mList (rhs.mList)
23{
24 rhs.mList = nullptr;
25}

◆ ~CurlStringList()

audacity::network_manager::CurlStringList::~CurlStringList ( )
noexcept

Definition at line 27 of file CurlStringList.cpp.

28{
29 curl_slist_free_all (mList);
30}

References mList.

Member Function Documentation

◆ append() [1/2]

void audacity::network_manager::CurlStringList::append ( const char *  string)
noexcept

Definition at line 43 of file CurlStringList.cpp.

44{
45 mList = curl_slist_append (mList, string);
46}

◆ append() [2/2]

void audacity::network_manager::CurlStringList::append ( const std::string &  string)
noexcept

Definition at line 38 of file CurlStringList.cpp.

39{
40 mList = curl_slist_append (mList, string.c_str ());
41}

◆ getCurlList()

curl_slist * audacity::network_manager::CurlStringList::getCurlList ( ) const
noexcept

Definition at line 48 of file CurlStringList.cpp.

49{
50 return mList;
51}

References mList.

◆ operator=()

CurlStringList & audacity::network_manager::CurlStringList::operator= ( CurlStringList &&  rhs)
noexcept

Definition at line 32 of file CurlStringList.cpp.

33{
34 std::swap (mList, rhs.mList);
35 return *this;
36}
void swap(std::unique_ptr< Alg_seq > &a, std::unique_ptr< Alg_seq > &b)
Definition: NoteTrack.cpp:634

References anonymous_namespace{NoteTrack.cpp}::swap().

Here is the call graph for this function:

Member Data Documentation

◆ mList

curl_slist* audacity::network_manager::CurlStringList::mList { nullptr }
private

Definition at line 38 of file CurlStringList.h.

Referenced by getCurlList(), and ~CurlStringList().


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