1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-17 17:26:48 +02:00
2021-05-26 12:46:45 +03:00

43 lines
801 B
C++

/*!********************************************************************
Audacity: A Digital Audio Editor
@file CurlStringList.h
@brief Declare a RAII wrapper for the curl_slist.
Dmitry Vedenko
**********************************************************************/
#pragma once
#include <string>
struct curl_slist;
namespace audacity
{
namespace network_manager
{
class CurlStringList final
{
public:
CurlStringList () = default;
CurlStringList (CurlStringList&& rhs) noexcept;
~CurlStringList () noexcept;
CurlStringList& operator = (CurlStringList&& rhs) noexcept;
void append (const std::string& string) noexcept;
void append (const char* string) noexcept;
curl_slist* getCurlList () const noexcept;
private:
curl_slist* mList { nullptr };
};
}
}