2021-08-23

#
# Previous commits:
gpg: Signatur vom 2020-11-27T15:05:17 CET
gpg:                mittels DSA-Schlüssel 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
gpg: Korrekte Signatur von "tastytea <tastytea@tastytea.de>" [ultimativ]
gpg:                     alias "tastytea <gentoo@tastytea.de>" [ultimativ]
This commit is contained in:
tastytea 2021-08-23 23:48:11 +02:00
parent 1a6dd5fae7
commit 1b67fa0dc7
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
152 changed files with 2783 additions and 1432 deletions

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Class List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -70,22 +70,20 @@ $(function() {
<div class="textblock">Here are the classes, structs, unions and interfaces with brief descriptions:</div><div class="directory">
<div class="levels">[detail level <span onclick="javascript:toggleLevel(1);">1</span><span onclick="javascript:toggleLevel(2);">2</span><span onclick="javascript:toggleLevel(3);">3</span>]</div><table class="directory">
<tr id="row_0_" class="even"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_0_" class="arrow" onclick="toggleFolder('0_')">&#9660;</span><span class="icona"><span class="icon">N</span></span><a class="el" href="namespacemastodonpp.html" target="_self">mastodonpp</a></td><td class="desc">C++ wrapper for the Mastodon API </td></tr>
<tr id="row_0_0_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structmastodonpp_1_1answer__type.html" target="_self">answer_type</a></td><td class="desc">Return type for Requests </td></tr>
<tr id="row_0_1_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1API.html" target="_self">API</a></td><td class="desc">Holds API endpoints </td></tr>
<tr id="row_0_0_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1API.html" target="_self">API</a></td><td class="desc">Holds API endpoints </td></tr>
<tr id="row_0_1_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structmastodonpp_1_1event__type.html" target="_self">event_type</a></td><td class="desc">A stream event </td></tr>
<tr id="row_0_2_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1Connection.html" target="_self">Connection</a></td><td class="desc">Represents a connection to an instance. Used for requests </td></tr>
<tr id="row_0_3_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1CURLException.html" target="_self">CURLException</a></td><td class="desc">Exception for libcurl errors </td></tr>
<tr id="row_0_4_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1CURLWrapper.html" target="_self">CURLWrapper</a></td><td class="desc">Handles the details of network connections </td></tr>
<tr id="row_0_5_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structmastodonpp_1_1event__type.html" target="_self">event_type</a></td><td class="desc">A stream event </td></tr>
<tr id="row_0_6_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span id="arr_0_6_" class="arrow" onclick="toggleFolder('0_6_')">&#9660;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1Instance.html" target="_self">Instance</a></td><td class="desc">Holds the access data of an instance </td></tr>
<tr id="row_0_6_0_" class="even"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1Instance_1_1ObtainToken.html" target="_self">ObtainToken</a></td><td class="desc">Simplifies obtaining an OAuth 2.0 Bearer Access Token </td></tr>
<tr id="row_0_3_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1CURLWrapper.html" target="_self">CURLWrapper</a></td><td class="desc">Handles the details of network connections </td></tr>
<tr id="row_0_4_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1CURLException.html" target="_self">CURLException</a></td><td class="desc">Exception for libcurl errors </td></tr>
<tr id="row_0_5_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span id="arr_0_5_" class="arrow" onclick="toggleFolder('0_5_')">&#9660;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1Instance.html" target="_self">Instance</a></td><td class="desc">Holds the access data of an instance </td></tr>
<tr id="row_0_5_0_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1Instance_1_1ObtainToken.html" target="_self">ObtainToken</a></td><td class="desc">Simplifies obtaining an OAuth 2.0 Bearer Access Token </td></tr>
<tr id="row_0_6_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structmastodonpp_1_1answer__type.html" target="_self">answer_type</a></td><td class="desc">Return type for Requests </td></tr>
</table>
</div><!-- directory -->
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: include/api.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -359,23 +359,21 @@ $(function() {
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160; </div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160;} <span class="comment">// namespace mastodonpp</span></div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160; </div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160;<span class="preprocessor">#endif // MASTODONPP_API_HPP</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassmastodonpp_1_1API_html_a67ba7c7a8d94ec7905e45466255648ba"><div class="ttname"><a href="classmastodonpp_1_1API.html#a67ba7c7a8d94ec7905e45466255648ba">mastodonpp::API::v2</a></div><div class="ttdeci">v2</div><div class="ttdoc">An enumeration of all v2 API endpoints.</div><div class="ttdef"><b>Definition:</b> api.hpp:211</div></div>
<div class="ttc" id="aclassmastodonpp_1_1API_html_a36332bb17e8603f0ba40b63b0b604bcc"><div class="ttname"><a href="classmastodonpp_1_1API.html#a36332bb17e8603f0ba40b63b0b604bcc">mastodonpp::API::oauth</a></div><div class="ttdeci">oauth</div><div class="ttdoc">An enumeration of all oauth API endpoints.</div><div class="ttdef"><b>Definition:</b> api.hpp:223</div></div>
<div class="ttc" id="aclassmastodonpp_1_1API_html_aa51c43b5c7cc2afd32520d08d51bcfc3"><div class="ttname"><a href="classmastodonpp_1_1API.html#aa51c43b5c7cc2afd32520d08d51bcfc3">mastodonpp::API::to_string_view</a></div><div class="ttdeci">string_view to_string_view() const</div><div class="ttdoc">Convert endpoint_type to std::string_view.</div><div class="ttdef"><b>Definition:</b> api.hpp:342</div></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:24</div></div>
<div class="ttc" id="aclassmastodonpp_1_1API_html"><div class="ttname"><a href="classmastodonpp_1_1API.html">mastodonpp::API</a></div><div class="ttdoc">Holds API endpoints.</div><div class="ttdef"><b>Definition:</b> api.hpp:40</div></div>
<div class="ttc" id="aclassmastodonpp_1_1API_html_a146a96ee58a8829042f406b9d42cf37e"><div class="ttname"><a href="classmastodonpp_1_1API.html#a146a96ee58a8829042f406b9d42cf37e">mastodonpp::API::pleroma</a></div><div class="ttdeci">pleroma</div><div class="ttdoc">An enumeration of all pleroma API endpoints.</div><div class="ttdef"><b>Definition:</b> api.hpp:252</div></div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// MASTODONPP_API_HPP</span></div>
<div class="ttc" id="aclassmastodonpp_1_1API_html"><div class="ttname"><a href="classmastodonpp_1_1API.html">mastodonpp::API</a></div><div class="ttdoc">Holds API endpoints.</div><div class="ttdef"><b>Definition:</b> api.hpp:41</div></div>
<div class="ttc" id="aclassmastodonpp_1_1API_html_a146a96ee58a8829042f406b9d42cf37e"><div class="ttname"><a href="classmastodonpp_1_1API.html#a146a96ee58a8829042f406b9d42cf37e">mastodonpp::API::pleroma</a></div><div class="ttdeci">pleroma</div><div class="ttdoc">An enumeration of all pleroma API endpoints.</div><div class="ttdef"><b>Definition:</b> api.hpp:253</div></div>
<div class="ttc" id="aclassmastodonpp_1_1API_html_a36332bb17e8603f0ba40b63b0b604bcc"><div class="ttname"><a href="classmastodonpp_1_1API.html#a36332bb17e8603f0ba40b63b0b604bcc">mastodonpp::API::oauth</a></div><div class="ttdeci">oauth</div><div class="ttdoc">An enumeration of all oauth API endpoints.</div><div class="ttdef"><b>Definition:</b> api.hpp:224</div></div>
<div class="ttc" id="aclassmastodonpp_1_1API_html_a67ba7c7a8d94ec7905e45466255648ba"><div class="ttname"><a href="classmastodonpp_1_1API.html#a67ba7c7a8d94ec7905e45466255648ba">mastodonpp::API::v2</a></div><div class="ttdeci">v2</div><div class="ttdoc">An enumeration of all v2 API endpoints.</div><div class="ttdef"><b>Definition:</b> api.hpp:212</div></div>
<div class="ttc" id="aclassmastodonpp_1_1API_html_a7f74ce81c1f0cbc0ed6ad66b2bd24318"><div class="ttname"><a href="classmastodonpp_1_1API.html#a7f74ce81c1f0cbc0ed6ad66b2bd24318">mastodonpp::API::endpoint_type</a></div><div class="ttdeci">variant&lt; v1, v2, oauth, other, pleroma &gt; endpoint_type</div><div class="ttdoc">Type for endpoints. Can be API::v1, API::v2, API::oauth, API::other or API::pleroma.</div><div class="ttdef"><b>Definition:</b> api.hpp:325</div></div>
<div class="ttc" id="aclassmastodonpp_1_1API_html_aee8f590426914a36f948dafa78e330f2"><div class="ttname"><a href="classmastodonpp_1_1API.html#aee8f590426914a36f948dafa78e330f2">mastodonpp::API::v1</a></div><div class="ttdeci">v1</div><div class="ttdoc">An enumeration of all v1 API endpoints.</div><div class="ttdef"><b>Definition:</b> api.hpp:50</div></div>
<div class="ttc" id="aclassmastodonpp_1_1API_html_abd51b671f4bd4f6021d8044e281d4c76"><div class="ttname"><a href="classmastodonpp_1_1API.html#abd51b671f4bd4f6021d8044e281d4c76">mastodonpp::API::other</a></div><div class="ttdeci">other</div><div class="ttdoc">An enumeration of all other API endpoints.</div><div class="ttdef"><b>Definition:</b> api.hpp:239</div></div>
<div class="ttc" id="aclassmastodonpp_1_1API_html_aa51c43b5c7cc2afd32520d08d51bcfc3"><div class="ttname"><a href="classmastodonpp_1_1API.html#aa51c43b5c7cc2afd32520d08d51bcfc3">mastodonpp::API::to_string_view</a></div><div class="ttdeci">string_view to_string_view() const</div><div class="ttdoc">Convert endpoint_type to std::string_view.</div><div class="ttdef"><b>Definition:</b> api.hpp:342</div></div>
<div class="ttc" id="aclassmastodonpp_1_1API_html_abd51b671f4bd4f6021d8044e281d4c76"><div class="ttname"><a href="classmastodonpp_1_1API.html#abd51b671f4bd4f6021d8044e281d4c76">mastodonpp::API::other</a></div><div class="ttdeci">other</div><div class="ttdoc">An enumeration of all other API endpoints.</div><div class="ttdef"><b>Definition:</b> api.hpp:240</div></div>
<div class="ttc" id="aclassmastodonpp_1_1API_html_aee8f590426914a36f948dafa78e330f2"><div class="ttname"><a href="classmastodonpp_1_1API.html#aee8f590426914a36f948dafa78e330f2">mastodonpp::API::v1</a></div><div class="ttdeci">v1</div><div class="ttdoc">An enumeration of all v1 API endpoints.</div><div class="ttdef"><b>Definition:</b> api.hpp:51</div></div>
<div class="ttc" id="aclassmastodonpp_1_1API_html_af9fc7a7d152a851122f8acc3224d4047"><div class="ttname"><a href="classmastodonpp_1_1API.html#af9fc7a7d152a851122f8acc3224d4047">mastodonpp::API::API</a></div><div class="ttdeci">API(const endpoint_type &amp;endpoint)</div><div class="ttdoc">Constructs an API object. You should never need this.</div><div class="ttdef"><b>Definition:</b> api.cpp:22</div></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Class Index</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -67,41 +67,28 @@ $(function() {
<div class="title">Class Index</div> </div>
</div><!--header-->
<div class="contents">
<div class="qindex"><a class="qindex" href="#letter_a">a</a>&#160;|&#160;<a class="qindex" href="#letter_c">c</a>&#160;|&#160;<a class="qindex" href="#letter_e">e</a>&#160;|&#160;<a class="qindex" href="#letter_i">i</a>&#160;|&#160;<a class="qindex" href="#letter_o">o</a></div>
<table class="classindex">
<tr><td rowspan="2" valign="bottom"><a name="letter_a"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;a&#160;&#160;</div></td></tr></table>
</td>
<td rowspan="2" valign="bottom"><a name="letter_c"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;c&#160;&#160;</div></td></tr></table>
</td>
<td valign="top"><a class="el" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)&#160;&#160;&#160;</td>
<td rowspan="2" valign="bottom"><a name="letter_i"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;i&#160;&#160;</div></td></tr></table>
</td>
<td></td></tr>
<tr><td rowspan="2" valign="bottom"><a name="letter_e"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;e&#160;&#160;</div></td></tr></table>
</td>
<td></td></tr>
<tr><td valign="top"><a class="el" href="structmastodonpp_1_1answer__type.html">answer_type</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)&#160;&#160;&#160;</td>
<td valign="top"><a class="el" href="classmastodonpp_1_1Connection.html">Connection</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)&#160;&#160;&#160;</td>
<td valign="top"><a class="el" href="classmastodonpp_1_1Instance.html">Instance</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)&#160;&#160;&#160;</td>
<td></td></tr>
<tr><td valign="top"><a class="el" href="classmastodonpp_1_1API.html">API</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)&#160;&#160;&#160;</td>
<td valign="top"><a class="el" href="classmastodonpp_1_1CURLException.html">CURLException</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)&#160;&#160;&#160;</td>
<td valign="top"><a class="el" href="structmastodonpp_1_1event__type.html">event_type</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)&#160;&#160;&#160;</td>
<td rowspan="2" valign="bottom"><a name="letter_o"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;o&#160;&#160;</div></td></tr></table>
</td>
<td></td></tr>
<tr><td></td><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td><td valign="top"><a class="el" href="classmastodonpp_1_1Instance_1_1ObtainToken.html">Instance::ObtainToken</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)&#160;&#160;&#160;</td>
<td></td></tr>
<tr><td></td><td></td><td></td><td></td><td></td></tr>
</table>
<div class="qindex"><a class="qindex" href="#letter_a">a</a>&#160;|&#160;<a class="qindex" href="#letter_c">c</a>&#160;|&#160;<a class="qindex" href="#letter_e">e</a>&#160;|&#160;<a class="qindex" href="#letter_i">i</a>&#160;|&#160;<a class="qindex" href="#letter_o">o</a></div>
<div class="qindex"><a class="qindex" href="#letter_A">A</a>&#160;|&#160;<a class="qindex" href="#letter_C">C</a>&#160;|&#160;<a class="qindex" href="#letter_E">E</a>&#160;|&#160;<a class="qindex" href="#letter_I">I</a>&#160;|&#160;<a class="qindex" href="#letter_O">O</a></div>
<div class="classindex">
<dl class="classindex even">
<dt class="alphachar"><a name="letter_A">A</a></dt>
<dd><a class="el" href="structmastodonpp_1_1answer__type.html">answer_type</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)</dd><dd><a class="el" href="classmastodonpp_1_1API.html">API</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)</dd></dl>
<dl class="classindex odd">
<dt class="alphachar"><a name="letter_C">C</a></dt>
<dd><a class="el" href="classmastodonpp_1_1Connection.html">Connection</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)</dd><dd><a class="el" href="classmastodonpp_1_1CURLException.html">CURLException</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)</dd><dd><a class="el" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)</dd></dl>
<dl class="classindex even">
<dt class="alphachar"><a name="letter_E">E</a></dt>
<dd><a class="el" href="structmastodonpp_1_1event__type.html">event_type</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)</dd></dl>
<dl class="classindex odd">
<dt class="alphachar"><a name="letter_I">I</a></dt>
<dd><a class="el" href="classmastodonpp_1_1Instance.html">Instance</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)</dd></dl>
<dl class="classindex even">
<dt class="alphachar"><a name="letter_O">O</a></dt>
<dd><a class="el" href="classmastodonpp_1_1Instance_1_1ObtainToken.html">Instance::ObtainToken</a> (<a class="el" href="namespacemastodonpp.html">mastodonpp</a>)</dd></dl>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -85,9 +85,7 @@ $(function() {
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: mastodonpp::API Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -83,246 +83,246 @@ $(function() {
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aee8f590426914a36f948dafa78e330f2"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1API.html#aee8f590426914a36f948dafa78e330f2">v1</a> { <br />
&#160;&#160;<b>apps</b>,
<b>apps_verify_credentials</b>,
<b>accounts</b>,
<b>accounts_verify_credentials</b>,
<br />
&#160;&#160;<b>accounts_update_credentials</b>,
<b>accounts_id</b>,
<b>accounts_id_statuses</b>,
<b>accounts_id_followers</b>,
<br />
&#160;&#160;<b>accounts_id_following</b>,
<b>accounts_id_lists</b>,
<b>accounts_id_identity_proofs</b>,
<b>accounts_id_follow</b>,
<br />
&#160;&#160;<b>accounts_id_unfollow</b>,
<b>accounts_id_block</b>,
<b>accounts_id_unblock</b>,
<b>accounts_id_mute</b>,
<br />
&#160;&#160;<b>accounts_id_unmute</b>,
<b>accounts_id_pin</b>,
<b>accounts_id_unpin</b>,
<b>accounts_relationships</b>,
<br />
&#160;&#160;<b>accounts_search</b>,
<b>bookmarks</b>,
<b>favourites</b>,
<b>mutes</b>,
<br />
&#160;&#160;<b>blocks</b>,
<b>domain_blocks</b>,
<b>filters</b>,
<b>filters_id</b>,
<br />
&#160;&#160;<b>reports</b>,
<b>follow_requests</b>,
<b>follow_requests_id_authorize</b>,
<b>follow_requests_id_reject</b>,
<br />
&#160;&#160;<b>endorsements</b>,
<b>featured_tags</b>,
<b>featured_tags_id</b>,
<b>featured_tags_suggestions</b>,
<br />
&#160;&#160;<b>preferences</b>,
<b>suggestions</b>,
<b>suggestions_account_id</b>,
<b>statuses</b>,
<br />
&#160;&#160;<b>statuses_id</b>,
<b>statuses_id_context</b>,
<b>statuses_id_reblogged_by</b>,
<b>statuses_id_favourited_by</b>,
<br />
&#160;&#160;<b>statuses_id_favourite</b>,
<b>statuses_id_unfavourite</b>,
<b>statuses_id_reblog</b>,
<b>statuses_id_unreblog</b>,
<br />
&#160;&#160;<b>statuses_id_bookmark</b>,
<b>statuses_id_unbookmark</b>,
<b>statuses_id_mute</b>,
<b>statuses_id_unmute</b>,
<br />
&#160;&#160;<b>statuses_id_pin</b>,
<b>statuses_id_unpin</b>,
<b>media</b>,
<b>media_id</b>,
<br />
&#160;&#160;<b>polls_id</b>,
<b>polls_id_votes</b>,
<b>scheduled_statuses</b>,
<b>scheduled_statuses_id</b>,
<br />
&#160;&#160;<b>timelines_public</b>,
<b>timelines_tag_hashtag</b>,
<b>timelines_home</b>,
<b>timelines_list_list_id</b>,
<br />
&#160;&#160;<b>conversations</b>,
<b>conversations_id</b>,
<b>conversations_id_read</b>,
<b>lists</b>,
<br />
&#160;&#160;<b>lists_id</b>,
<b>lists_id_accounts</b>,
<b>markers</b>,
<b>streaming_health</b>,
<br />
&#160;&#160;<b>streaming_user</b>,
<b>streaming_public</b>,
<b>streaming_public_local</b>,
<b>streaming_hashtag</b>,
<br />
&#160;&#160;<b>streaming_hashtag_local</b>,
<b>streaming_list</b>,
<b>streaming_direct</b>,
<b>notifications</b>,
<br />
&#160;&#160;<b>notifications_id</b>,
<b>notifications_clear</b>,
<b>notifications_id_dismiss</b>,
<b>push_subscription</b>,
<br />
&#160;&#160;<b>instance</b>,
<b>instance_peers</b>,
<b>instance_activity</b>,
<b>trends</b>,
<br />
&#160;&#160;<b>directory</b>,
<b>custom_emojis</b>,
<b>admin_accounts</b>,
<b>admin_accounts_id</b>,
<br />
&#160;&#160;<b>admin_accounts_account_id_action</b>,
<b>admin_accounts_id_approve</b>,
<b>admin_accounts_id_reject</b>,
<b>admin_accounts_id_enable</b>,
<br />
&#160;&#160;<b>admin_accounts_id_unsilence</b>,
<b>admin_accounts_id_unsuspend</b>,
<b>admin_reports</b>,
<b>admin_reports_id</b>,
<br />
&#160;&#160;<b>admin_reports_id_assign_to_self</b>,
<b>admin_reports_id_unassign</b>,
<b>admin_reports_id_resolve</b>,
<b>admin_reports_id_reopen</b>,
<br />
&#160;&#160;<b>pleroma_notifications_read</b>,
<b>pleroma_accounts_id_subscribe</b>,
<b>pleroma_accounts_id_unsubscribe</b>,
<b>pleroma_accounts_id_favourites</b>,
<br />
&#160;&#160;<b>pleroma_accounts_update_avatar</b>,
<b>pleroma_accounts_update_banner</b>,
<b>pleroma_accounts_update_background</b>,
<b>pleroma_accounts_confirmation_resend</b>,
<br />
&#160;&#160;<b>pleroma_mascot</b>,
<b>pleroma_conversations_id_statuses</b>,
<b>pleroma_conversations_id</b>,
<b>pleroma_conversations_id_read</b>,
<br />
&#160;&#160;<b>pleroma_accounts_id_scrobbles</b>,
<b>pleroma_scrobble</b>,
<b>pleroma_statuses_id_reactions_emoji</b>,
<b>pleroma_statuses_id_reactions</b>
<tr class="memitem:aee8f590426914a36f948dafa78e330f2"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1API.html#aee8f590426914a36f948dafa78e330f2">v1</a> { <br />
&#160;&#160;<b>apps</b>
, <b>apps_verify_credentials</b>
, <b>accounts</b>
, <b>accounts_verify_credentials</b>
, <br />
&#160;&#160;<b>accounts_update_credentials</b>
, <b>accounts_id</b>
, <b>accounts_id_statuses</b>
, <b>accounts_id_followers</b>
, <br />
&#160;&#160;<b>accounts_id_following</b>
, <b>accounts_id_lists</b>
, <b>accounts_id_identity_proofs</b>
, <b>accounts_id_follow</b>
, <br />
&#160;&#160;<b>accounts_id_unfollow</b>
, <b>accounts_id_block</b>
, <b>accounts_id_unblock</b>
, <b>accounts_id_mute</b>
, <br />
&#160;&#160;<b>accounts_id_unmute</b>
, <b>accounts_id_pin</b>
, <b>accounts_id_unpin</b>
, <b>accounts_relationships</b>
, <br />
&#160;&#160;<b>accounts_search</b>
, <b>bookmarks</b>
, <b>favourites</b>
, <b>mutes</b>
, <br />
&#160;&#160;<b>blocks</b>
, <b>domain_blocks</b>
, <b>filters</b>
, <b>filters_id</b>
, <br />
&#160;&#160;<b>reports</b>
, <b>follow_requests</b>
, <b>follow_requests_id_authorize</b>
, <b>follow_requests_id_reject</b>
, <br />
&#160;&#160;<b>endorsements</b>
, <b>featured_tags</b>
, <b>featured_tags_id</b>
, <b>featured_tags_suggestions</b>
, <br />
&#160;&#160;<b>preferences</b>
, <b>suggestions</b>
, <b>suggestions_account_id</b>
, <b>statuses</b>
, <br />
&#160;&#160;<b>statuses_id</b>
, <b>statuses_id_context</b>
, <b>statuses_id_reblogged_by</b>
, <b>statuses_id_favourited_by</b>
, <br />
&#160;&#160;<b>statuses_id_favourite</b>
, <b>statuses_id_unfavourite</b>
, <b>statuses_id_reblog</b>
, <b>statuses_id_unreblog</b>
, <br />
&#160;&#160;<b>statuses_id_bookmark</b>
, <b>statuses_id_unbookmark</b>
, <b>statuses_id_mute</b>
, <b>statuses_id_unmute</b>
, <br />
&#160;&#160;<b>statuses_id_pin</b>
, <b>statuses_id_unpin</b>
, <b>media</b>
, <b>media_id</b>
, <br />
&#160;&#160;<b>polls_id</b>
, <b>polls_id_votes</b>
, <b>scheduled_statuses</b>
, <b>scheduled_statuses_id</b>
, <br />
&#160;&#160;<b>timelines_public</b>
, <b>timelines_tag_hashtag</b>
, <b>timelines_home</b>
, <b>timelines_list_list_id</b>
, <br />
&#160;&#160;<b>conversations</b>
, <b>conversations_id</b>
, <b>conversations_id_read</b>
, <b>lists</b>
, <br />
&#160;&#160;<b>lists_id</b>
, <b>lists_id_accounts</b>
, <b>markers</b>
, <b>streaming_health</b>
, <br />
&#160;&#160;<b>streaming_user</b>
, <b>streaming_public</b>
, <b>streaming_public_local</b>
, <b>streaming_hashtag</b>
, <br />
&#160;&#160;<b>streaming_hashtag_local</b>
, <b>streaming_list</b>
, <b>streaming_direct</b>
, <b>notifications</b>
, <br />
&#160;&#160;<b>notifications_id</b>
, <b>notifications_clear</b>
, <b>notifications_id_dismiss</b>
, <b>push_subscription</b>
, <br />
&#160;&#160;<b>instance</b>
, <b>instance_peers</b>
, <b>instance_activity</b>
, <b>trends</b>
, <br />
&#160;&#160;<b>directory</b>
, <b>custom_emojis</b>
, <b>admin_accounts</b>
, <b>admin_accounts_id</b>
, <br />
&#160;&#160;<b>admin_accounts_account_id_action</b>
, <b>admin_accounts_id_approve</b>
, <b>admin_accounts_id_reject</b>
, <b>admin_accounts_id_enable</b>
, <br />
&#160;&#160;<b>admin_accounts_id_unsilence</b>
, <b>admin_accounts_id_unsuspend</b>
, <b>admin_reports</b>
, <b>admin_reports_id</b>
, <br />
&#160;&#160;<b>admin_reports_id_assign_to_self</b>
, <b>admin_reports_id_unassign</b>
, <b>admin_reports_id_resolve</b>
, <b>admin_reports_id_reopen</b>
, <br />
&#160;&#160;<b>pleroma_notifications_read</b>
, <b>pleroma_accounts_id_subscribe</b>
, <b>pleroma_accounts_id_unsubscribe</b>
, <b>pleroma_accounts_id_favourites</b>
, <br />
&#160;&#160;<b>pleroma_accounts_update_avatar</b>
, <b>pleroma_accounts_update_banner</b>
, <b>pleroma_accounts_update_background</b>
, <b>pleroma_accounts_confirmation_resend</b>
, <br />
&#160;&#160;<b>pleroma_mascot</b>
, <b>pleroma_conversations_id_statuses</b>
, <b>pleroma_conversations_id</b>
, <b>pleroma_conversations_id_read</b>
, <br />
&#160;&#160;<b>pleroma_accounts_id_scrobbles</b>
, <b>pleroma_scrobble</b>
, <b>pleroma_statuses_id_reactions_emoji</b>
, <b>pleroma_statuses_id_reactions</b>
<br />
}</td></tr>
<tr class="memdesc:aee8f590426914a36f948dafa78e330f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">An enumeration of all v1 API endpoints. <a href="classmastodonpp_1_1API.html#aee8f590426914a36f948dafa78e330f2">More...</a><br /></td></tr>
<tr class="separator:aee8f590426914a36f948dafa78e330f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67ba7c7a8d94ec7905e45466255648ba"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1API.html#a67ba7c7a8d94ec7905e45466255648ba">v2</a> { <b>search</b>
<tr class="memitem:a67ba7c7a8d94ec7905e45466255648ba"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1API.html#a67ba7c7a8d94ec7905e45466255648ba">v2</a> { <b>search</b>
}</td></tr>
<tr class="memdesc:a67ba7c7a8d94ec7905e45466255648ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">An enumeration of all v2 API endpoints. <a href="classmastodonpp_1_1API.html#a67ba7c7a8d94ec7905e45466255648ba">More...</a><br /></td></tr>
<tr class="separator:a67ba7c7a8d94ec7905e45466255648ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36332bb17e8603f0ba40b63b0b604bcc"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1API.html#a36332bb17e8603f0ba40b63b0b604bcc">oauth</a> { <b>authorize</b>,
<b>token</b>,
<b>revoke</b>
<tr class="memitem:a36332bb17e8603f0ba40b63b0b604bcc"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1API.html#a36332bb17e8603f0ba40b63b0b604bcc">oauth</a> { <b>authorize</b>
, <b>token</b>
, <b>revoke</b>
}</td></tr>
<tr class="memdesc:a36332bb17e8603f0ba40b63b0b604bcc"><td class="mdescLeft">&#160;</td><td class="mdescRight">An enumeration of all oauth API endpoints. <a href="classmastodonpp_1_1API.html#a36332bb17e8603f0ba40b63b0b604bcc">More...</a><br /></td></tr>
<tr class="separator:a36332bb17e8603f0ba40b63b0b604bcc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd51b671f4bd4f6021d8044e281d4c76"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1API.html#abd51b671f4bd4f6021d8044e281d4c76">other</a> { <b>proofs</b>,
<b>oembed</b>
<tr class="memitem:abd51b671f4bd4f6021d8044e281d4c76"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1API.html#abd51b671f4bd4f6021d8044e281d4c76">other</a> { <b>proofs</b>
, <b>oembed</b>
}</td></tr>
<tr class="memdesc:abd51b671f4bd4f6021d8044e281d4c76"><td class="mdescLeft">&#160;</td><td class="mdescRight">An enumeration of all other API endpoints. <a href="classmastodonpp_1_1API.html#abd51b671f4bd4f6021d8044e281d4c76">More...</a><br /></td></tr>
<tr class="separator:abd51b671f4bd4f6021d8044e281d4c76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a146a96ee58a8829042f406b9d42cf37e"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1API.html#a146a96ee58a8829042f406b9d42cf37e">pleroma</a> { <br />
&#160;&#160;<b>admin_users</b>,
<b>admin_users_follow</b>,
<b>admin_users_unfollow</b>,
<b>admin_users_nickname_toggle_activation</b>,
<br />
&#160;&#160;<b>admin_users_tag</b>,
<b>admin_users_nickname_permission_group</b>,
<b>admin_users_nickname_permission_group_permission_group</b>,
<b>admin_users_permission_group_permission_group</b>,
<br />
&#160;&#160;<b>admin_users_activate</b>,
<b>admin_users_deactivate</b>,
<b>admin_users_nickname_or_id</b>,
<b>admin_users_nickname_or_id_statuses</b>,
<br />
&#160;&#160;<b>admin_instances_instance_statuses</b>,
<b>admin_statuses</b>,
<b>admin_relay</b>,
<b>admin_users_invite_token</b>,
<br />
&#160;&#160;<b>admin_users_invites</b>,
<b>admin_users_revoke_invite</b>,
<b>admin_users_email_invite</b>,
<b>admin_users_nickname_password_reset</b>,
<br />
&#160;&#160;<b>admin_users_nickname_update_credentials</b>,
<b>admin_users_force_password_reset</b>,
<b>admin_reports</b>,
<b>admin_grouped_reports</b>,
<br />
&#160;&#160;<b>admin_reports_id</b>,
<b>admin_reports_id_notes</b>,
<b>admin_reports_report_id_notes_id</b>,
<b>admin_statuses_id</b>,
<br />
&#160;&#160;<b>admin_restart</b>,
<b>admin_config</b>,
<b>admin_config_descriptions</b>,
<b>admin_moderation_log</b>,
<br />
&#160;&#160;<b>admin_reload_emoji</b>,
<b>admin_users_confirm_email</b>,
<b>admin_users_resend_confirm_email</b>,
<b>admin_stats</b>,
<br />
&#160;&#160;<b>admin_users_nickname</b>,
<b>admin_users_nickname_activation_status</b>,
<b>admin_reports_id_respond</b>,
<b>admin_config_migrate_to_db</b>,
<br />
&#160;&#160;<b>admin_config_migrate_from_db</b>,
<b>emoji</b>,
<b>follow_import</b>,
<b>captcha</b>,
<br />
&#160;&#160;<b>delete_account</b>,
<b>disable_account</b>,
<b>notification_settings</b>,
<b>healthcheck</b>,
<br />
&#160;&#160;<b>change_email</b>,
<b>emoji_packs</b>,
<b>emoji_packs_name</b>,
<b>emoji_packs_name_update_file</b>,
<br />
&#160;&#160;<b>emoji_packs_name_update_metadata</b>,
<b>emoji_packs_download_from</b>,
<b>emoji_packs_list_from</b>,
<b>emoji_packs_name_download_shared</b>,
<br />
<tr class="memitem:a146a96ee58a8829042f406b9d42cf37e"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1API.html#a146a96ee58a8829042f406b9d42cf37e">pleroma</a> { <br />
&#160;&#160;<b>admin_users</b>
, <b>admin_users_follow</b>
, <b>admin_users_unfollow</b>
, <b>admin_users_nickname_toggle_activation</b>
, <br />
&#160;&#160;<b>admin_users_tag</b>
, <b>admin_users_nickname_permission_group</b>
, <b>admin_users_nickname_permission_group_permission_group</b>
, <b>admin_users_permission_group_permission_group</b>
, <br />
&#160;&#160;<b>admin_users_activate</b>
, <b>admin_users_deactivate</b>
, <b>admin_users_nickname_or_id</b>
, <b>admin_users_nickname_or_id_statuses</b>
, <br />
&#160;&#160;<b>admin_instances_instance_statuses</b>
, <b>admin_statuses</b>
, <b>admin_relay</b>
, <b>admin_users_invite_token</b>
, <br />
&#160;&#160;<b>admin_users_invites</b>
, <b>admin_users_revoke_invite</b>
, <b>admin_users_email_invite</b>
, <b>admin_users_nickname_password_reset</b>
, <br />
&#160;&#160;<b>admin_users_nickname_update_credentials</b>
, <b>admin_users_force_password_reset</b>
, <b>admin_reports</b>
, <b>admin_grouped_reports</b>
, <br />
&#160;&#160;<b>admin_reports_id</b>
, <b>admin_reports_id_notes</b>
, <b>admin_reports_report_id_notes_id</b>
, <b>admin_statuses_id</b>
, <br />
&#160;&#160;<b>admin_restart</b>
, <b>admin_config</b>
, <b>admin_config_descriptions</b>
, <b>admin_moderation_log</b>
, <br />
&#160;&#160;<b>admin_reload_emoji</b>
, <b>admin_users_confirm_email</b>
, <b>admin_users_resend_confirm_email</b>
, <b>admin_stats</b>
, <br />
&#160;&#160;<b>admin_users_nickname</b>
, <b>admin_users_nickname_activation_status</b>
, <b>admin_reports_id_respond</b>
, <b>admin_config_migrate_to_db</b>
, <br />
&#160;&#160;<b>admin_config_migrate_from_db</b>
, <b>emoji</b>
, <b>follow_import</b>
, <b>captcha</b>
, <br />
&#160;&#160;<b>delete_account</b>
, <b>disable_account</b>
, <b>notification_settings</b>
, <b>healthcheck</b>
, <br />
&#160;&#160;<b>change_email</b>
, <b>emoji_packs</b>
, <b>emoji_packs_name</b>
, <b>emoji_packs_name_update_file</b>
, <br />
&#160;&#160;<b>emoji_packs_name_update_metadata</b>
, <b>emoji_packs_download_from</b>
, <b>emoji_packs_list_from</b>
, <b>emoji_packs_name_download_shared</b>
, <br />
&#160;&#160;<b>account_register</b>
<br />
}</td></tr>
@ -796,9 +796,7 @@ Public Member Functions</h2></td></tr>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -82,9 +82,7 @@ $(function() {
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: mastodonpp::CURLException Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -83,19 +83,19 @@ $(function() {
<div class="dynheader">
Inheritance diagram for mastodonpp::CURLException:</div>
<div class="dyncontent">
<div class="center"><img src="classmastodonpp_1_1CURLException__inherit__graph.png" border="0" usemap="#mastodonpp_1_1CURLException_inherit__map" alt="Inheritance graph"/></div>
<map name="mastodonpp_1_1CURLException_inherit__map" id="mastodonpp_1_1CURLException_inherit__map">
<div class="center"><img src="classmastodonpp_1_1CURLException__inherit__graph.png" border="0" usemap="#amastodonpp_1_1CURLException_inherit__map" alt="Inheritance graph"/></div>
<map name="amastodonpp_1_1CURLException_inherit__map" id="amastodonpp_1_1CURLException_inherit__map">
<area shape="rect" title="Exception for libcurl errors." alt="" coords="5,80,201,107"/>
<area shape="rect" title="STL class." alt="" coords="51,5,155,32"/>
<area shape="rect" title=" " alt="" coords="51,5,155,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for mastodonpp::CURLException:</div>
<div class="dyncontent">
<div class="center"><img src="classmastodonpp_1_1CURLException__coll__graph.png" border="0" usemap="#mastodonpp_1_1CURLException_coll__map" alt="Collaboration graph"/></div>
<map name="mastodonpp_1_1CURLException_coll__map" id="mastodonpp_1_1CURLException_coll__map">
<div class="center"><img src="classmastodonpp_1_1CURLException__coll__graph.png" border="0" usemap="#amastodonpp_1_1CURLException_coll__map" alt="Collaboration graph"/></div>
<map name="amastodonpp_1_1CURLException_coll__map" id="amastodonpp_1_1CURLException_coll__map">
<area shape="rect" title="Exception for libcurl errors." alt="" coords="5,80,201,107"/>
<area shape="rect" title="STL class." alt="" coords="51,5,155,32"/>
<area shape="rect" title=" " alt="" coords="51,5,155,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
@ -163,6 +163,7 @@ Public Attributes</h2></td></tr>
<div class="fragment"><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; : <a class="code" href="classmastodonpp_1_1CURLException.html#a91eedb1a1d70015afdb4645d87d10e72">error_code</a>{error}</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; , _message{move(message)}</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;{}</div>
<div class="ttc" id="aclassmastodonpp_1_1CURLException_html_a91eedb1a1d70015afdb4645d87d10e72"><div class="ttname"><a href="classmastodonpp_1_1CURLException.html#a91eedb1a1d70015afdb4645d87d10e72">mastodonpp::CURLException::error_code</a></div><div class="ttdeci">const CURLcode error_code</div><div class="ttdoc">The error code returned by libcurl.</div><div class="ttdef"><b>Definition:</b> exceptions.hpp:73</div></div>
</div><!-- fragment -->
</div>
</div>
@ -313,12 +314,9 @@ Public Attributes</h2></td></tr>
<li>src/exceptions.cpp</li>
</ul>
</div><!-- contents -->
<div class="ttc" id="aclassmastodonpp_1_1CURLException_html_a91eedb1a1d70015afdb4645d87d10e72"><div class="ttname"><a href="classmastodonpp_1_1CURLException.html#a91eedb1a1d70015afdb4645d87d10e72">mastodonpp::CURLException::error_code</a></div><div class="ttdeci">const CURLcode error_code</div><div class="ttdoc">The error code returned by libcurl.</div><div class="ttdef"><b>Definition:</b> exceptions.hpp:73</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -1,4 +1,4 @@
<map id="mastodonpp::CURLException" name="mastodonpp::CURLException">
<area shape="rect" id="node1" title="Exception for libcurl errors." alt="" coords="5,80,201,107"/>
<area shape="rect" id="node2" title="STL class." alt="" coords="51,5,155,32"/>
<area shape="rect" id="node2" title=" " alt="" coords="51,5,155,32"/>
</map>

View File

@ -1 +1 @@
25e8154595e8766a560eb0097f22d57e
48f58419457baf79d17e561a02011ab2

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -1,4 +1,4 @@
<map id="mastodonpp::CURLException" name="mastodonpp::CURLException">
<area shape="rect" id="node1" title="Exception for libcurl errors." alt="" coords="5,80,201,107"/>
<area shape="rect" id="node2" title="STL class." alt="" coords="51,5,155,32"/>
<area shape="rect" id="node2" title=" " alt="" coords="51,5,155,32"/>
</map>

View File

@ -1 +1 @@
25e8154595e8766a560eb0097f22d57e
48f58419457baf79d17e561a02011ab2

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -95,9 +95,7 @@ $(function() {
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: mastodonpp::CURLWrapper Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -84,8 +84,8 @@ $(function() {
<div class="dynheader">
Inheritance diagram for mastodonpp::CURLWrapper:</div>
<div class="dyncontent">
<div class="center"><img src="classmastodonpp_1_1CURLWrapper__inherit__graph.png" border="0" usemap="#mastodonpp_1_1CURLWrapper_inherit__map" alt="Inheritance graph"/></div>
<map name="mastodonpp_1_1CURLWrapper_inherit__map" id="mastodonpp_1_1CURLWrapper_inherit__map">
<div class="center"><img src="classmastodonpp_1_1CURLWrapper__inherit__graph.png" border="0" usemap="#amastodonpp_1_1CURLWrapper_inherit__map" alt="Inheritance graph"/></div>
<map name="amastodonpp_1_1CURLWrapper_inherit__map" id="amastodonpp_1_1CURLWrapper_inherit__map">
<area shape="rect" title="Handles the details of network connections." alt="" coords="178,5,365,32"/>
<area shape="rect" href="classmastodonpp_1_1Connection.html" title="Represents a connection to an instance. Used for requests." alt="" coords="5,87,172,114"/>
<area shape="rect" href="classmastodonpp_1_1Instance.html" title="Holds the access data of an instance." alt="" coords="196,87,347,114"/>
@ -95,10 +95,10 @@ Inheritance diagram for mastodonpp::CURLWrapper:</div>
<div class="dynheader">
Collaboration diagram for mastodonpp::CURLWrapper:</div>
<div class="dyncontent">
<div class="center"><img src="classmastodonpp_1_1CURLWrapper__coll__graph.png" border="0" usemap="#mastodonpp_1_1CURLWrapper_coll__map" alt="Collaboration graph"/></div>
<map name="mastodonpp_1_1CURLWrapper_coll__map" id="mastodonpp_1_1CURLWrapper_coll__map">
<area shape="rect" title="Handles the details of network connections." alt="" coords="5,95,192,121"/>
<area shape="rect" title="STL class." alt="" coords="57,5,141,32"/>
<div class="center"><img src="classmastodonpp_1_1CURLWrapper__coll__graph.png" border="0" usemap="#amastodonpp_1_1CURLWrapper_coll__map" alt="Collaboration graph"/></div>
<map name="amastodonpp_1_1CURLWrapper_coll__map" id="amastodonpp_1_1CURLWrapper_coll__map">
<area shape="rect" title="Handles the details of network connections." alt="" coords="5,95,191,121"/>
<area shape="rect" title=" " alt="" coords="56,5,140,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
@ -690,7 +690,7 @@ Protected Attributes</h2></td></tr>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; _curl_buffer_error};</div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; }</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; </div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160;<span class="preprocessor">#if (LIBCURL_VERSION_NUM &lt; 0x073d00) // libcurl &lt; 7.61.0.</span></div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160;<span class="preprocessor">#if (LIBCURL_VERSION_NUM &lt; 0x073d00) </span><span class="comment">// libcurl &lt; 7.61.0.</span></div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160;<span class="preprocessor"># define CURLAUTH_BEARER CURLAUTH_ANY</span></div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; </div>
@ -897,6 +897,10 @@ Protected Attributes</h2></td></tr>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html#ae3b1445f9b94b1f7677d3cac6d538612">set_useragent</a>(useragent);</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; }</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160;}</div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a1564a42794ef7a9d170b725063ef504d"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a1564a42794ef7a9d170b725063ef504d">mastodonpp::CURLWrapper::set_proxy</a></div><div class="ttdeci">virtual void set_proxy(string_view proxy)</div><div class="ttdoc">Set the proxy to use.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:229</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a94aba6daedea376ccc20e5c983bd3358"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a94aba6daedea376ccc20e5c983bd3358">mastodonpp::CURLWrapper::set_access_token</a></div><div class="ttdeci">void set_access_token(string_view access_token)</div><div class="ttdoc">Set OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:240</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_ae3b1445f9b94b1f7677d3cac6d538612"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#ae3b1445f9b94b1f7677d3cac6d538612">mastodonpp::CURLWrapper::set_useragent</a></div><div class="ttdeci">virtual void set_useragent(string_view useragent)</div><div class="ttdoc">Sets the User-Agent.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:276</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_af3f2bd4dea7c289d590fe19889360444"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#af3f2bd4dea7c289d590fe19889360444">mastodonpp::CURLWrapper::set_cainfo</a></div><div class="ttdeci">virtual void set_cainfo(string_view path)</div><div class="ttdoc">Set path to Certificate Authority (CA) bundle.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:266</div></div>
</div><!-- fragment -->
</div>
</div>
@ -976,15 +980,9 @@ Protected Attributes</h2></td></tr>
<li>src/curl_wrapper.cpp</li>
</ul>
</div><!-- contents -->
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a1564a42794ef7a9d170b725063ef504d"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a1564a42794ef7a9d170b725063ef504d">mastodonpp::CURLWrapper::set_proxy</a></div><div class="ttdeci">virtual void set_proxy(string_view proxy)</div><div class="ttdoc">Set the proxy to use.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:229</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_af3f2bd4dea7c289d590fe19889360444"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#af3f2bd4dea7c289d590fe19889360444">mastodonpp::CURLWrapper::set_cainfo</a></div><div class="ttdeci">virtual void set_cainfo(string_view path)</div><div class="ttdoc">Set path to Certificate Authority (CA) bundle.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:266</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_ae3b1445f9b94b1f7677d3cac6d538612"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#ae3b1445f9b94b1f7677d3cac6d538612">mastodonpp::CURLWrapper::set_useragent</a></div><div class="ttdeci">virtual void set_useragent(string_view useragent)</div><div class="ttdoc">Sets the User-Agent.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:276</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a94aba6daedea376ccc20e5c983bd3358"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a94aba6daedea376ccc20e5c983bd3358">mastodonpp::CURLWrapper::set_access_token</a></div><div class="ttdeci">void set_access_token(string_view access_token)</div><div class="ttdoc">Set OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:240</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -1,4 +1,4 @@
<map id="mastodonpp::CURLWrapper" name="mastodonpp::CURLWrapper">
<area shape="rect" id="node1" title="Handles the details of network connections." alt="" coords="5,95,192,121"/>
<area shape="rect" id="node2" title="STL class." alt="" coords="57,5,141,32"/>
<area shape="rect" id="node1" title="Handles the details of network connections." alt="" coords="5,95,191,121"/>
<area shape="rect" id="node2" title=" " alt="" coords="56,5,140,32"/>
</map>

View File

@ -1 +1 @@
74da8499ad512429f659687634c6bdba
d679e886765e375ea66b1de60e891a4b

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -113,9 +113,7 @@ $(function() {
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: mastodonpp::Connection Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -82,8 +82,8 @@ $(function() {
<div class="dynheader">
Inheritance diagram for mastodonpp::Connection:</div>
<div class="dyncontent">
<div class="center"><img src="classmastodonpp_1_1Connection__inherit__graph.png" border="0" usemap="#mastodonpp_1_1Connection_inherit__map" alt="Inheritance graph"/></div>
<map name="mastodonpp_1_1Connection_inherit__map" id="mastodonpp_1_1Connection_inherit__map">
<div class="center"><img src="classmastodonpp_1_1Connection__inherit__graph.png" border="0" usemap="#amastodonpp_1_1Connection_inherit__map" alt="Inheritance graph"/></div>
<map name="amastodonpp_1_1Connection_inherit__map" id="amastodonpp_1_1Connection_inherit__map">
<area shape="rect" title="Represents a connection to an instance. Used for requests." alt="" coords="15,80,182,107"/>
<area shape="rect" href="classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,5,192,32"/>
</map>
@ -91,11 +91,11 @@ Inheritance diagram for mastodonpp::Connection:</div>
<div class="dynheader">
Collaboration diagram for mastodonpp::Connection:</div>
<div class="dyncontent">
<div class="center"><img src="classmastodonpp_1_1Connection__coll__graph.png" border="0" usemap="#mastodonpp_1_1Connection_coll__map" alt="Collaboration graph"/></div>
<map name="mastodonpp_1_1Connection_coll__map" id="mastodonpp_1_1Connection_coll__map">
<area shape="rect" title="Represents a connection to an instance. Used for requests." alt="" coords="15,171,182,197"/>
<area shape="rect" href="classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,95,192,121"/>
<area shape="rect" title="STL class." alt="" coords="57,5,141,32"/>
<div class="center"><img src="classmastodonpp_1_1Connection__coll__graph.png" border="0" usemap="#amastodonpp_1_1Connection_coll__map" alt="Collaboration graph"/></div>
<map name="amastodonpp_1_1Connection_coll__map" id="amastodonpp_1_1Connection_coll__map">
<area shape="rect" title="Represents a connection to an instance. Used for requests." alt="" coords="15,171,181,197"/>
<area shape="rect" href="classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,95,191,121"/>
<area shape="rect" title=" " alt="" coords="56,5,140,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
@ -261,6 +261,7 @@ Additional Inherited Members</h2></td></tr>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; {</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; _instance.<a class="code" href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac">copy_connection_properties</a>(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; }</div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a921c4b83815c0d98dea983a9409c00ac"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac">mastodonpp::Instance::copy_connection_properties</a></div><div class="ttdeci">void copy_connection_properties(CURLWrapper &amp;curlwrapper) const</div><div class="ttdoc">Set the properties of the connection of the calling class up.</div><div class="ttdef"><b>Definition:</b> instance.hpp:90</div></div>
</div><!-- fragment -->
</div>
</div>
@ -378,6 +379,7 @@ Additional Inherited Members</h2></td></tr>
<div class="fragment"><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; {</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html#a892a4fc3d048798fa8e2584545b91861">CURLWrapper::cancel_stream</a>();</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; }</div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a892a4fc3d048798fa8e2584545b91861"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a892a4fc3d048798fa8e2584545b91861">mastodonpp::CURLWrapper::cancel_stream</a></div><div class="ttdeci">void cancel_stream()</div><div class="ttdoc">Cancel the stream.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:209</div></div>
</div><!-- fragment -->
</div>
</div>
@ -416,6 +418,7 @@ Additional Inherited Members</h2></td></tr>
<div class="fragment"><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; {</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classmastodonpp_1_1Connection.html#a095f752558410fab3dee6782e03a0fdb">del</a>(endpoint, {});</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; }</div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a095f752558410fab3dee6782e03a0fdb"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a095f752558410fab3dee6782e03a0fdb">mastodonpp::Connection::del</a></div><div class="ttdeci">answer_type del(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP DELETE call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:62</div></div>
</div><!-- fragment -->
</div>
</div>
@ -458,6 +461,7 @@ Additional Inherited Members</h2></td></tr>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classmastodonpp_1_1CURLWrapper.html#adc8808c3fad5397176f6755b09ee0be6">make_request</a>(http_method::DELETE, endpoint_to_uri(endpoint),</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; parameters);</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;}</div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_adc8808c3fad5397176f6755b09ee0be6"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#adc8808c3fad5397176f6755b09ee0be6">mastodonpp::CURLWrapper::make_request</a></div><div class="ttdeci">answer_type make_request(const http_method &amp;method, string uri, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP request.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:80</div></div>
</div><!-- fragment -->
</div>
</div>
@ -497,6 +501,7 @@ Additional Inherited Members</h2></td></tr>
<div class="fragment"><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; {</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classmastodonpp_1_1Connection.html#ade24a99769313ee15c406d97e9543cba">get</a>(endpoint, {});</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; }</div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ade24a99769313ee15c406d97e9543cba"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ade24a99769313ee15c406d97e9543cba">mastodonpp::Connection::get</a></div><div class="ttdeci">answer_type get(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP GET call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:34</div></div>
</div><!-- fragment -->
</div>
</div>
@ -593,6 +598,8 @@ Additional Inherited Members</h2></td></tr>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html#af7e18dc7c3bdc1c58bc93a46bf00866a">_buffer_mutex</a>.unlock();</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keywordflow">return</span> events;</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;}</div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a04b3919cfb38716c5a032337e442db95"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a04b3919cfb38716c5a032337e442db95">mastodonpp::CURLWrapper::get_buffer</a></div><div class="ttdeci">string &amp; get_buffer()</div><div class="ttdoc">Returns a reference to the buffer libcurl writes into.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:195</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_af7e18dc7c3bdc1c58bc93a46bf00866a"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#af7e18dc7c3bdc1c58bc93a46bf00866a">mastodonpp::CURLWrapper::_buffer_mutex</a></div><div class="ttdeci">mutex _buffer_mutex</div><div class="ttdoc">Mutex for get_buffer a.k.a. _curl_buffer_body.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:175</div></div>
</div><!-- fragment -->
</div>
</div>
@ -717,6 +724,7 @@ Additional Inherited Members</h2></td></tr>
<div class="fragment"><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; {</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classmastodonpp_1_1Connection.html#a10f838c74d2ccc83f64f29e2aad2f157">patch</a>(endpoint, {});</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; }</div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a10f838c74d2ccc83f64f29e2aad2f157"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a10f838c74d2ccc83f64f29e2aad2f157">mastodonpp::Connection::patch</a></div><div class="ttdeci">answer_type patch(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP PATCH call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:48</div></div>
</div><!-- fragment -->
</div>
</div>
@ -797,6 +805,7 @@ Additional Inherited Members</h2></td></tr>
<div class="fragment"><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; {</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classmastodonpp_1_1Connection.html#ad7cebeeef7c285ff4666dc6850f20164">post</a>(endpoint, {});</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; }</div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ad7cebeeef7c285ff4666dc6850f20164"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ad7cebeeef7c285ff4666dc6850f20164">mastodonpp::Connection::post</a></div><div class="ttdeci">answer_type post(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP POST call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:41</div></div>
</div><!-- fragment -->
</div>
</div>
@ -884,6 +893,7 @@ Additional Inherited Members</h2></td></tr>
<div class="fragment"><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; {</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classmastodonpp_1_1Connection.html#ac5afc2e5d419c8bee3a8994ce0a940aa">put</a>(endpoint, {});</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; }</div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ac5afc2e5d419c8bee3a8994ce0a940aa"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ac5afc2e5d419c8bee3a8994ce0a940aa">mastodonpp::Connection::put</a></div><div class="ttdeci">answer_type put(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP PUT call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:55</div></div>
</div><!-- fragment -->
</div>
</div>
@ -934,21 +944,9 @@ Additional Inherited Members</h2></td></tr>
<li>src/connection.cpp</li>
</ul>
</div><!-- contents -->
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ade24a99769313ee15c406d97e9543cba"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ade24a99769313ee15c406d97e9543cba">mastodonpp::Connection::get</a></div><div class="ttdeci">answer_type get(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP GET call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:34</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_af7e18dc7c3bdc1c58bc93a46bf00866a"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#af7e18dc7c3bdc1c58bc93a46bf00866a">mastodonpp::CURLWrapper::_buffer_mutex</a></div><div class="ttdeci">mutex _buffer_mutex</div><div class="ttdoc">Mutex for get_buffer a.k.a. _curl_buffer_body.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:175</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a921c4b83815c0d98dea983a9409c00ac"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac">mastodonpp::Instance::copy_connection_properties</a></div><div class="ttdeci">void copy_connection_properties(CURLWrapper &amp;curlwrapper) const</div><div class="ttdoc">Set the properties of the connection of the calling class up.</div><div class="ttdef"><b>Definition:</b> instance.hpp:90</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ac5afc2e5d419c8bee3a8994ce0a940aa"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ac5afc2e5d419c8bee3a8994ce0a940aa">mastodonpp::Connection::put</a></div><div class="ttdeci">answer_type put(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP PUT call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:55</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a04b3919cfb38716c5a032337e442db95"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a04b3919cfb38716c5a032337e442db95">mastodonpp::CURLWrapper::get_buffer</a></div><div class="ttdeci">string &amp; get_buffer()</div><div class="ttdoc">Returns a reference to the buffer libcurl writes into.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:195</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a095f752558410fab3dee6782e03a0fdb"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a095f752558410fab3dee6782e03a0fdb">mastodonpp::Connection::del</a></div><div class="ttdeci">answer_type del(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP DELETE call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:62</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a10f838c74d2ccc83f64f29e2aad2f157"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a10f838c74d2ccc83f64f29e2aad2f157">mastodonpp::Connection::patch</a></div><div class="ttdeci">answer_type patch(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP PATCH call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:48</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ad7cebeeef7c285ff4666dc6850f20164"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ad7cebeeef7c285ff4666dc6850f20164">mastodonpp::Connection::post</a></div><div class="ttdeci">answer_type post(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP POST call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:41</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_adc8808c3fad5397176f6755b09ee0be6"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#adc8808c3fad5397176f6755b09ee0be6">mastodonpp::CURLWrapper::make_request</a></div><div class="ttdeci">answer_type make_request(const http_method &amp;method, string uri, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP request.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:80</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a892a4fc3d048798fa8e2584545b91861"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a892a4fc3d048798fa8e2584545b91861">mastodonpp::CURLWrapper::cancel_stream</a></div><div class="ttdeci">void cancel_stream()</div><div class="ttdoc">Cancel the stream.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:209</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -1,5 +1,5 @@
<map id="mastodonpp::Connection" name="mastodonpp::Connection">
<area shape="rect" id="node1" title="Represents a connection to an instance. Used for requests." alt="" coords="15,171,182,197"/>
<area shape="rect" id="node2" href="$classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,95,192,121"/>
<area shape="rect" id="node3" title="STL class." alt="" coords="57,5,141,32"/>
<area shape="rect" id="node1" title="Represents a connection to an instance. Used for requests." alt="" coords="15,171,181,197"/>
<area shape="rect" id="node2" href="$classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,95,191,121"/>
<area shape="rect" id="node3" title=" " alt="" coords="56,5,140,32"/>
</map>

View File

@ -1 +1 @@
3413bde6f691b0d72a0bb8cd434f4b20
84b275bd8fad382f79b305e8ea98e48f

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -108,9 +108,7 @@ $(function() {
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: mastodonpp::Instance Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -83,8 +83,8 @@ $(function() {
<div class="dynheader">
Inheritance diagram for mastodonpp::Instance:</div>
<div class="dyncontent">
<div class="center"><img src="classmastodonpp_1_1Instance__inherit__graph.png" border="0" usemap="#mastodonpp_1_1Instance_inherit__map" alt="Inheritance graph"/></div>
<map name="mastodonpp_1_1Instance_inherit__map" id="mastodonpp_1_1Instance_inherit__map">
<div class="center"><img src="classmastodonpp_1_1Instance__inherit__graph.png" border="0" usemap="#amastodonpp_1_1Instance_inherit__map" alt="Inheritance graph"/></div>
<map name="amastodonpp_1_1Instance_inherit__map" id="amastodonpp_1_1Instance_inherit__map">
<area shape="rect" title="Holds the access data of an instance." alt="" coords="23,80,174,107"/>
<area shape="rect" href="classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,5,192,32"/>
</map>
@ -92,11 +92,11 @@ Inheritance diagram for mastodonpp::Instance:</div>
<div class="dynheader">
Collaboration diagram for mastodonpp::Instance:</div>
<div class="dyncontent">
<div class="center"><img src="classmastodonpp_1_1Instance__coll__graph.png" border="0" usemap="#mastodonpp_1_1Instance_coll__map" alt="Collaboration graph"/></div>
<map name="mastodonpp_1_1Instance_coll__map" id="mastodonpp_1_1Instance_coll__map">
<area shape="rect" title="Holds the access data of an instance." alt="" coords="23,171,174,197"/>
<area shape="rect" href="classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,95,192,121"/>
<area shape="rect" title="STL class." alt="" coords="57,5,141,32"/>
<div class="center"><img src="classmastodonpp_1_1Instance__coll__graph.png" border="0" usemap="#amastodonpp_1_1Instance_coll__map" alt="Collaboration graph"/></div>
<map name="amastodonpp_1_1Instance_coll__map" id="amastodonpp_1_1Instance_coll__map">
<area shape="rect" title="Holds the access data of an instance." alt="" coords="23,171,173,197"/>
<area shape="rect" href="classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,95,191,121"/>
<area shape="rect" title=" " alt="" coords="56,5,140,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
@ -641,6 +641,7 @@ Additional Inherited Members</h2></td></tr>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; _access_token = access_token;</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html#a94aba6daedea376ccc20e5c983bd3358">CURLWrapper::set_access_token</a>(access_token);</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; }</div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a94aba6daedea376ccc20e5c983bd3358"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a94aba6daedea376ccc20e5c983bd3358">mastodonpp::CURLWrapper::set_access_token</a></div><div class="ttdeci">void set_access_token(string_view access_token)</div><div class="ttdoc">Set OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:240</div></div>
</div><!-- fragment -->
</div>
</div>
@ -677,6 +678,7 @@ Additional Inherited Members</h2></td></tr>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; _cainfo = path;</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html#af3f2bd4dea7c289d590fe19889360444">CURLWrapper::set_cainfo</a>(path);</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; }</div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_af3f2bd4dea7c289d590fe19889360444"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#af3f2bd4dea7c289d590fe19889360444">mastodonpp::CURLWrapper::set_cainfo</a></div><div class="ttdeci">virtual void set_cainfo(string_view path)</div><div class="ttdoc">Set path to Certificate Authority (CA) bundle.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:266</div></div>
</div><!-- fragment -->
</div>
</div>
@ -720,6 +722,7 @@ Additional Inherited Members</h2></td></tr>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; _proxy = proxy;</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html#a1564a42794ef7a9d170b725063ef504d">CURLWrapper::set_proxy</a>(proxy);</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; }</div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a1564a42794ef7a9d170b725063ef504d"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a1564a42794ef7a9d170b725063ef504d">mastodonpp::CURLWrapper::set_proxy</a></div><div class="ttdeci">virtual void set_proxy(string_view proxy)</div><div class="ttdoc">Set the proxy to use.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:229</div></div>
</div><!-- fragment -->
</div>
</div>
@ -756,6 +759,7 @@ Additional Inherited Members</h2></td></tr>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; _useragent = useragent;</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html#ae3b1445f9b94b1f7677d3cac6d538612">CURLWrapper::set_useragent</a>(useragent);</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; }</div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_ae3b1445f9b94b1f7677d3cac6d538612"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#ae3b1445f9b94b1f7677d3cac6d538612">mastodonpp::CURLWrapper::set_useragent</a></div><div class="ttdeci">virtual void set_useragent(string_view useragent)</div><div class="ttdoc">Sets the User-Agent.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:276</div></div>
</div><!-- fragment -->
</div>
</div>
@ -763,15 +767,9 @@ Additional Inherited Members</h2></td></tr>
<li>include/<a class="el" href="instance_8hpp_source.html">instance.hpp</a></li>
</ul>
</div><!-- contents -->
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a1564a42794ef7a9d170b725063ef504d"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a1564a42794ef7a9d170b725063ef504d">mastodonpp::CURLWrapper::set_proxy</a></div><div class="ttdeci">virtual void set_proxy(string_view proxy)</div><div class="ttdoc">Set the proxy to use.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:229</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_af3f2bd4dea7c289d590fe19889360444"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#af3f2bd4dea7c289d590fe19889360444">mastodonpp::CURLWrapper::set_cainfo</a></div><div class="ttdeci">virtual void set_cainfo(string_view path)</div><div class="ttdoc">Set path to Certificate Authority (CA) bundle.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:266</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_ae3b1445f9b94b1f7677d3cac6d538612"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#ae3b1445f9b94b1f7677d3cac6d538612">mastodonpp::CURLWrapper::set_useragent</a></div><div class="ttdeci">virtual void set_useragent(string_view useragent)</div><div class="ttdoc">Sets the User-Agent.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:276</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a94aba6daedea376ccc20e5c983bd3358"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a94aba6daedea376ccc20e5c983bd3358">mastodonpp::CURLWrapper::set_access_token</a></div><div class="ttdeci">void set_access_token(string_view access_token)</div><div class="ttdoc">Set OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:240</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -98,9 +98,7 @@ $(function() {
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: mastodonpp::Instance::ObtainToken Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -82,8 +82,8 @@ $(function() {
<div class="dynheader">
Inheritance diagram for mastodonpp::Instance::ObtainToken:</div>
<div class="dyncontent">
<div class="center"><img src="classmastodonpp_1_1Instance_1_1ObtainToken__inherit__graph.png" border="0" usemap="#mastodonpp_1_1Instance_1_1ObtainToken_inherit__map" alt="Inheritance graph"/></div>
<map name="mastodonpp_1_1Instance_1_1ObtainToken_inherit__map" id="mastodonpp_1_1Instance_1_1ObtainToken_inherit__map">
<div class="center"><img src="classmastodonpp_1_1Instance_1_1ObtainToken__inherit__graph.png" border="0" usemap="#amastodonpp_1_1Instance_1_1ObtainToken_inherit__map" alt="Inheritance graph"/></div>
<map name="amastodonpp_1_1Instance_1_1ObtainToken_inherit__map" id="amastodonpp_1_1Instance_1_1ObtainToken_inherit__map">
<area shape="rect" title="Simplifies obtaining an OAuth 2.0 Bearer Access Token." alt="" coords="23,80,174,121"/>
<area shape="rect" href="classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,5,192,32"/>
</map>
@ -91,11 +91,11 @@ Inheritance diagram for mastodonpp::Instance::ObtainToken:</div>
<div class="dynheader">
Collaboration diagram for mastodonpp::Instance::ObtainToken:</div>
<div class="dyncontent">
<div class="center"><img src="classmastodonpp_1_1Instance_1_1ObtainToken__coll__graph.png" border="0" usemap="#mastodonpp_1_1Instance_1_1ObtainToken_coll__map" alt="Collaboration graph"/></div>
<map name="mastodonpp_1_1Instance_1_1ObtainToken_coll__map" id="mastodonpp_1_1Instance_1_1ObtainToken_coll__map">
<area shape="rect" title="Simplifies obtaining an OAuth 2.0 Bearer Access Token." alt="" coords="23,171,174,212"/>
<area shape="rect" href="classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,95,192,121"/>
<area shape="rect" title="STL class." alt="" coords="57,5,141,32"/>
<div class="center"><img src="classmastodonpp_1_1Instance_1_1ObtainToken__coll__graph.png" border="0" usemap="#amastodonpp_1_1Instance_1_1ObtainToken_coll__map" alt="Collaboration graph"/></div>
<map name="amastodonpp_1_1Instance_1_1ObtainToken_coll__map" id="amastodonpp_1_1Instance_1_1ObtainToken_coll__map">
<area shape="rect" title="Simplifies obtaining an OAuth 2.0 Bearer Access Token." alt="" coords="23,171,173,212"/>
<area shape="rect" href="classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,95,191,121"/>
<area shape="rect" title=" " alt="" coords="56,5,140,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
@ -193,6 +193,8 @@ Additional Inherited Members</h2></td></tr>
<div class="line"> std::cout &lt;&lt; <span class="stringliteral">&quot;Success!\n&quot;</span>;</div>
<div class="line"> }</div>
<div class="line">}</div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html">mastodonpp::Instance::ObtainToken</a></div><div class="ttdoc">Simplifies obtaining an OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> instance.hpp:249</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html"><div class="ttname"><a href="classmastodonpp_1_1Instance.html">mastodonpp::Instance</a></div><div class="ttdoc">Holds the access data of an instance.</div><div class="ttdef"><b>Definition:</b> instance.hpp:49</div></div>
</div><!-- fragment --><dl class="section since"><dt>Since</dt><dd>0.3.0 </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aa834d9be223856e5711b0e14d9b92eed"></a>
@ -226,6 +228,7 @@ Additional Inherited Members</h2></td></tr>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; {</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; _instance.<a class="code" href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac">copy_connection_properties</a>(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; }</div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a921c4b83815c0d98dea983a9409c00ac"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac">mastodonpp::Instance::copy_connection_properties</a></div><div class="ttdeci">void copy_connection_properties(CURLWrapper &amp;curlwrapper) const</div><div class="ttdoc">Set the properties of the connection of the calling class up.</div><div class="ttdef"><b>Definition:</b> instance.hpp:90</div></div>
</div><!-- fragment -->
</div>
</div>
@ -312,14 +315,9 @@ Additional Inherited Members</h2></td></tr>
<li>include/<a class="el" href="instance_8hpp_source.html">instance.hpp</a></li>
</ul>
</div><!-- contents -->
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html">mastodonpp::Instance::ObtainToken</a></div><div class="ttdoc">Simplifies obtaining an OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> instance.hpp:248</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a921c4b83815c0d98dea983a9409c00ac"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac">mastodonpp::Instance::copy_connection_properties</a></div><div class="ttdeci">void copy_connection_properties(CURLWrapper &amp;curlwrapper) const</div><div class="ttdoc">Set the properties of the connection of the calling class up.</div><div class="ttdef"><b>Definition:</b> instance.hpp:90</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html"><div class="ttname"><a href="classmastodonpp_1_1Instance.html">mastodonpp::Instance</a></div><div class="ttdoc">Holds the access data of an instance.</div><div class="ttdef"><b>Definition:</b> instance.hpp:48</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -1,5 +1,5 @@
<map id="mastodonpp::Instance::ObtainToken" name="mastodonpp::Instance::ObtainToken">
<area shape="rect" id="node1" title="Simplifies obtaining an OAuth 2.0 Bearer Access Token." alt="" coords="23,171,174,212"/>
<area shape="rect" id="node2" href="$classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,95,192,121"/>
<area shape="rect" id="node3" title="STL class." alt="" coords="57,5,141,32"/>
<area shape="rect" id="node1" title="Simplifies obtaining an OAuth 2.0 Bearer Access Token." alt="" coords="23,171,173,212"/>
<area shape="rect" id="node2" href="$classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,95,191,121"/>
<area shape="rect" id="node3" title=" " alt="" coords="56,5,140,32"/>
</map>

View File

@ -1 +1 @@
696cf3156559ddcbf9d5c4069eb5d1f3
dda5415c4036a2d04dbbe2b8fe2eef3e

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

@ -1,5 +1,5 @@
<map id="mastodonpp::Instance" name="mastodonpp::Instance">
<area shape="rect" id="node1" title="Holds the access data of an instance." alt="" coords="23,171,174,197"/>
<area shape="rect" id="node2" href="$classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,95,192,121"/>
<area shape="rect" id="node3" title="STL class." alt="" coords="57,5,141,32"/>
<area shape="rect" id="node1" title="Holds the access data of an instance." alt="" coords="23,171,173,197"/>
<area shape="rect" id="node2" href="$classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,95,191,121"/>
<area shape="rect" id="node3" title=" " alt="" coords="56,5,140,32"/>
</map>

View File

@ -1 +1 @@
99560aa00861efc418109099442105cc
7cce97d6ee5f0591bb64e3cb7f1e5f8a

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: include/connection.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -122,22 +122,22 @@ $(function() {
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Connection.html#ae6fc153679431f14ee98778bbc477cda"> 88</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="classmastodonpp_1_1Connection.html#ae6fc153679431f14ee98778bbc477cda">Connection</a>(<span class="keyword">const</span> <a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &amp;instance)</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; : _instance{instance}</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; , _baseuri{instance.<a class="code" href="classmastodonpp_1_1Instance.html#a859540ec79ea97c0f76185d9036127bb">get_baseuri</a>()}</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; , _baseuri{instance.get_baseuri()}</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; {</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; _instance.<a class="code" href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac">copy_connection_properties</a>(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; }</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <a class="code" href="classmastodonpp_1_1Connection.html#ae6fc153679431f14ee98778bbc477cda">Connection</a>(<span class="keyword">const</span> <a class="code" href="classmastodonpp_1_1Connection.html#ae6fc153679431f14ee98778bbc477cda">Connection</a> &amp;other) = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Connection.html#aa1273c61748ddf364c1cdc28ac9b0a6f"> 100</a></span>&#160; <a class="code" href="classmastodonpp_1_1Connection.html#aa1273c61748ddf364c1cdc28ac9b0a6f">Connection</a>(<span class="keyword">const</span> <a class="code" href="classmastodonpp_1_1Connection.html">Connection</a> &amp;other) = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <a class="code" href="classmastodonpp_1_1Connection.html#ae6fc153679431f14ee98778bbc477cda">Connection</a>(<a class="code" href="classmastodonpp_1_1Connection.html#ae6fc153679431f14ee98778bbc477cda">Connection</a> &amp;&amp;other) noexcept = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Connection.html#af0d81640b36cdf6eee8897e1d9b31d52"> 103</a></span>&#160; <a class="code" href="classmastodonpp_1_1Connection.html#af0d81640b36cdf6eee8897e1d9b31d52">Connection</a>(<a class="code" href="classmastodonpp_1_1Connection.html">Connection</a> &amp;&amp;other) noexcept = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <a class="code" href="classmastodonpp_1_1Connection.html#a3697f021a84f5cbdd62c9a6fba5eab6a">~Connection</a>() noexcept override = default;</div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Connection.html#a3697f021a84f5cbdd62c9a6fba5eab6a"> 106</a></span>&#160; <a class="code" href="classmastodonpp_1_1Connection.html#a3697f021a84f5cbdd62c9a6fba5eab6a">~Connection</a>() noexcept override = default;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <a class="code" href="classmastodonpp_1_1Connection.html#ae6fc153679431f14ee98778bbc477cda">Connection</a> &amp;operator=(const <a class="code" href="classmastodonpp_1_1Connection.html#ae6fc153679431f14ee98778bbc477cda">Connection</a> &amp;other) = delete;</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Connection.html#a9a3dc7a5015b05ffd5c8dc9be7bc2b5d"> 109</a></span>&#160; <a class="code" href="classmastodonpp_1_1Connection.html">Connection</a> &amp;operator=(const <a class="code" href="classmastodonpp_1_1Connection.html">Connection</a> &amp;other) = delete;</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <a class="code" href="classmastodonpp_1_1Connection.html#ae6fc153679431f14ee98778bbc477cda">Connection</a> &amp;operator=(<a class="code" href="classmastodonpp_1_1Connection.html#ae6fc153679431f14ee98778bbc477cda">Connection</a> &amp;&amp;other) noexcept = delete;</div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Connection.html#abcb013020202d0e37eaa2bd0c64f9558"> 112</a></span>&#160; <a class="code" href="classmastodonpp_1_1Connection.html">Connection</a> &amp;operator=(<a class="code" href="classmastodonpp_1_1Connection.html">Connection</a> &amp;&amp;other) noexcept = delete;</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; [[nodiscard]] answer_type <a class="code" href="classmastodonpp_1_1Connection.html#ade24a99769313ee15c406d97e9543cba">get</a>(const <a class="code" href="namespacemastodonpp.html#ad5d7bf6713e986f130ec200963e0f208">endpoint_variant</a> &amp;endpoint,</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; [[nodiscard]] <a class="code" href="structmastodonpp_1_1answer__type.html">answer_type</a> <a class="code" href="classmastodonpp_1_1Connection.html#ade24a99769313ee15c406d97e9543cba">get</a>(const <a class="code" href="namespacemastodonpp.html#ad5d7bf6713e986f130ec200963e0f208">endpoint_variant</a> &amp;endpoint,</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; const <a class="code" href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">parametermap</a> &amp;parameters);</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Connection.html#a60034eabe75bd3afade110a171c66d05"> 147</a></span>&#160; [[nodiscard]] inline <a class="code" href="structmastodonpp_1_1answer__type.html">answer_type</a> <a class="code" href="classmastodonpp_1_1Connection.html#ade24a99769313ee15c406d97e9543cba">get</a>(const <a class="code" href="namespacemastodonpp.html#ad5d7bf6713e986f130ec200963e0f208">endpoint_variant</a> &amp;endpoint)</div>
@ -196,40 +196,39 @@ $(function() {
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160; </div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160;} <span class="comment">// namespace mastodonpp</span></div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160; </div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160;<span class="preprocessor">#endif // MASTODONPP_CONNECTION_HPP</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ade24a99769313ee15c406d97e9543cba"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ade24a99769313ee15c406d97e9543cba">mastodonpp::Connection::get</a></div><div class="ttdeci">answer_type get(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP GET call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:34</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a921c4b83815c0d98dea983a9409c00ac"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac">mastodonpp::Instance::copy_connection_properties</a></div><div class="ttdeci">void copy_connection_properties(CURLWrapper &amp;curlwrapper) const</div><div class="ttdoc">Set the properties of the connection of the calling class up.</div><div class="ttdef"><b>Definition:</b> instance.hpp:90</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ae6fc153679431f14ee98778bbc477cda"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ae6fc153679431f14ee98778bbc477cda">mastodonpp::Connection::Connection</a></div><div class="ttdeci">Connection(const Instance &amp;instance)</div><div class="ttdoc">Construct a new Connection object.</div><div class="ttdef"><b>Definition:</b> connection.hpp:88</div></div>
<div class="ttc" id="astructmastodonpp_1_1event__type_html_a193361ac6ffafb474bbc493273a028ce"><div class="ttname"><a href="structmastodonpp_1_1event__type.html#a193361ac6ffafb474bbc493273a028ce">mastodonpp::event_type::type</a></div><div class="ttdeci">string type</div><div class="ttdoc">The type of the event.</div><div class="ttdef"><b>Definition:</b> connection.hpp:62</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_af27eb5d94f5a0e39a703988fdcc54173"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#af27eb5d94f5a0e39a703988fdcc54173">mastodonpp::Connection::post</a></div><div class="ttdeci">answer_type post(const endpoint_variant &amp;endpoint)</div><div class="ttdoc">Make a HTTP POST call.</div><div class="ttdef"><b>Definition:</b> connection.hpp:182</div></div>
<div class="ttc" id="anamespacemastodonpp_html_af8b3b89118adeccc71c54dfd36c987f6"><div class="ttname"><a href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">mastodonpp::parametermap</a></div><div class="ttdeci">map&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parametermap</div><div class="ttdoc">std::map of parameters for API calls.</div><div class="ttdef"><b>Definition:</b> types.hpp:64</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ad05ff1b33460bfedf0b46f4e5e755399"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ad05ff1b33460bfedf0b46f4e5e755399">mastodonpp::Connection::put</a></div><div class="ttdeci">answer_type put(const endpoint_variant &amp;endpoint)</div><div class="ttdoc">Make a HTTP PUT call.</div><div class="ttdef"><b>Definition:</b> connection.hpp:230</div></div>
<div class="ttc" id="astructmastodonpp_1_1event__type_html_af72ad0a57a762c57f0d4e5d650c5d65c"><div class="ttname"><a href="structmastodonpp_1_1event__type.html#af72ad0a57a762c57f0d4e5d650c5d65c">mastodonpp::event_type::data</a></div><div class="ttdeci">string data</div><div class="ttdoc">The payload.</div><div class="ttdef"><b>Definition:</b> connection.hpp:65</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a859540ec79ea97c0f76185d9036127bb"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a859540ec79ea97c0f76185d9036127bb">mastodonpp::Instance::get_baseuri</a></div><div class="ttdeci">string_view get_baseuri() const noexcept</div><div class="ttdoc">Returns the base URI.</div><div class="ttdef"><b>Definition:</b> instance.hpp:113</div></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:24</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a3f1e0440b68a44cf678bfdbe33295197"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a3f1e0440b68a44cf678bfdbe33295197">mastodonpp::Connection::patch</a></div><div class="ttdeci">answer_type patch(const endpoint_variant &amp;endpoint)</div><div class="ttdoc">Make a HTTP PATCH call.</div><div class="ttdef"><b>Definition:</b> connection.hpp:206</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ac5afc2e5d419c8bee3a8994ce0a940aa"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ac5afc2e5d419c8bee3a8994ce0a940aa">mastodonpp::Connection::put</a></div><div class="ttdeci">answer_type put(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP PUT call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:55</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a7e4a50fb73aa50b027d9a0822cfde318"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a7e4a50fb73aa50b027d9a0822cfde318">mastodonpp::Connection::get_new_events</a></div><div class="ttdeci">vector&lt; event_type &gt; get_new_events()</div><div class="ttdoc">Get new stream events.</div><div class="ttdef"><b>Definition:</b> connection.cpp:79</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a3697f021a84f5cbdd62c9a6fba5eab6a"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a3697f021a84f5cbdd62c9a6fba5eab6a">mastodonpp::Connection::~Connection</a></div><div class="ttdeci">~Connection() noexcept override=default</div><div class="ttdoc">Destructor.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a2e89f60fdf4096ff8c8251e61ab59d13"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a2e89f60fdf4096ff8c8251e61ab59d13">mastodonpp::Connection::del</a></div><div class="ttdeci">answer_type del(const endpoint_variant &amp;endpoint)</div><div class="ttdoc">Make a HTTP DELETE call.</div><div class="ttdef"><b>Definition:</b> connection.hpp:254</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a8cf6ab350bb359650925d1c582fe9f60"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a8cf6ab350bb359650925d1c582fe9f60">mastodonpp::Connection::cancel_stream</a></div><div class="ttdeci">void cancel_stream()</div><div class="ttdoc">Cancel the stream.</div><div class="ttdef"><b>Definition:</b> connection.hpp:280</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a095f752558410fab3dee6782e03a0fdb"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a095f752558410fab3dee6782e03a0fdb">mastodonpp::Connection::del</a></div><div class="ttdeci">answer_type del(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP DELETE call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:62</div></div>
<div class="ttc" id="astructmastodonpp_1_1event__type_html"><div class="ttname"><a href="structmastodonpp_1_1event__type.html">mastodonpp::event_type</a></div><div class="ttdoc">A stream event.</div><div class="ttdef"><b>Definition:</b> connection.hpp:52</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html">mastodonpp::answer_type</a></div><div class="ttdoc">Return type for Requests.</div><div class="ttdef"><b>Definition:</b> types.hpp:79</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a10f838c74d2ccc83f64f29e2aad2f157"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a10f838c74d2ccc83f64f29e2aad2f157">mastodonpp::Connection::patch</a></div><div class="ttdeci">answer_type patch(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP PATCH call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:48</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html"><div class="ttname"><a href="classmastodonpp_1_1Instance.html">mastodonpp::Instance</a></div><div class="ttdoc">Holds the access data of an instance.</div><div class="ttdef"><b>Definition:</b> instance.hpp:48</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ad7cebeeef7c285ff4666dc6850f20164"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ad7cebeeef7c285ff4666dc6850f20164">mastodonpp::Connection::post</a></div><div class="ttdeci">answer_type post(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP POST call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:41</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html"><div class="ttname"><a href="classmastodonpp_1_1Connection.html">mastodonpp::Connection</a></div><div class="ttdoc">Represents a connection to an instance. Used for requests.</div><div class="ttdef"><b>Definition:</b> connection.hpp:78</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html">mastodonpp::CURLWrapper</a></div><div class="ttdoc">Handles the details of network connections.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:57</div></div>
<div class="ttc" id="anamespacemastodonpp_html_ad5d7bf6713e986f130ec200963e0f208"><div class="ttname"><a href="namespacemastodonpp.html#ad5d7bf6713e986f130ec200963e0f208">mastodonpp::endpoint_variant</a></div><div class="ttdeci">variant&lt; API::endpoint_type, string_view &gt; endpoint_variant</div><div class="ttdoc">An endpoint. Either API::endpoint_type or std::string_view.</div><div class="ttdef"><b>Definition:</b> connection.hpp:43</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a06f537c75c7fe9a7510e11af1008e028"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a06f537c75c7fe9a7510e11af1008e028">mastodonpp::Connection::get_new_stream_contents</a></div><div class="ttdeci">string get_new_stream_contents()</div><div class="ttdoc">Copy new stream contents and delete the “original”.</div><div class="ttdef"><b>Definition:</b> connection.cpp:69</div></div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// MASTODONPP_CONNECTION_HPP</span></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html">mastodonpp::CURLWrapper</a></div><div class="ttdoc">Handles the details of network connections.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:58</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a892a4fc3d048798fa8e2584545b91861"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a892a4fc3d048798fa8e2584545b91861">mastodonpp::CURLWrapper::cancel_stream</a></div><div class="ttdeci">void cancel_stream()</div><div class="ttdoc">Cancel the stream.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:209</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html"><div class="ttname"><a href="classmastodonpp_1_1Connection.html">mastodonpp::Connection</a></div><div class="ttdoc">Represents a connection to an instance. Used for requests.</div><div class="ttdef"><b>Definition:</b> connection.hpp:79</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a06f537c75c7fe9a7510e11af1008e028"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a06f537c75c7fe9a7510e11af1008e028">mastodonpp::Connection::get_new_stream_contents</a></div><div class="ttdeci">string get_new_stream_contents()</div><div class="ttdoc">Copy new stream contents and delete the “original”.</div><div class="ttdef"><b>Definition:</b> connection.cpp:69</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a095f752558410fab3dee6782e03a0fdb"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a095f752558410fab3dee6782e03a0fdb">mastodonpp::Connection::del</a></div><div class="ttdeci">answer_type del(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP DELETE call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:62</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a10f838c74d2ccc83f64f29e2aad2f157"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a10f838c74d2ccc83f64f29e2aad2f157">mastodonpp::Connection::patch</a></div><div class="ttdeci">answer_type patch(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP PATCH call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:48</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a2e89f60fdf4096ff8c8251e61ab59d13"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a2e89f60fdf4096ff8c8251e61ab59d13">mastodonpp::Connection::del</a></div><div class="ttdeci">answer_type del(const endpoint_variant &amp;endpoint)</div><div class="ttdoc">Make a HTTP DELETE call.</div><div class="ttdef"><b>Definition:</b> connection.hpp:254</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a3697f021a84f5cbdd62c9a6fba5eab6a"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a3697f021a84f5cbdd62c9a6fba5eab6a">mastodonpp::Connection::~Connection</a></div><div class="ttdeci">~Connection() noexcept override=default</div><div class="ttdoc">Destructor.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a3f1e0440b68a44cf678bfdbe33295197"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a3f1e0440b68a44cf678bfdbe33295197">mastodonpp::Connection::patch</a></div><div class="ttdeci">answer_type patch(const endpoint_variant &amp;endpoint)</div><div class="ttdoc">Make a HTTP PATCH call.</div><div class="ttdef"><b>Definition:</b> connection.hpp:206</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a7e4a50fb73aa50b027d9a0822cfde318"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a7e4a50fb73aa50b027d9a0822cfde318">mastodonpp::Connection::get_new_events</a></div><div class="ttdeci">vector&lt; event_type &gt; get_new_events()</div><div class="ttdoc">Get new stream events.</div><div class="ttdef"><b>Definition:</b> connection.cpp:79</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_a8cf6ab350bb359650925d1c582fe9f60"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#a8cf6ab350bb359650925d1c582fe9f60">mastodonpp::Connection::cancel_stream</a></div><div class="ttdeci">void cancel_stream()</div><div class="ttdoc">Cancel the stream.</div><div class="ttdef"><b>Definition:</b> connection.hpp:280</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_aa1273c61748ddf364c1cdc28ac9b0a6f"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#aa1273c61748ddf364c1cdc28ac9b0a6f">mastodonpp::Connection::Connection</a></div><div class="ttdeci">Connection(const Connection &amp;other)=default</div><div class="ttdoc">Copy constructor. A new CURLWrapper is constructed.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ac5afc2e5d419c8bee3a8994ce0a940aa"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ac5afc2e5d419c8bee3a8994ce0a940aa">mastodonpp::Connection::put</a></div><div class="ttdeci">answer_type put(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP PUT call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:55</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ad05ff1b33460bfedf0b46f4e5e755399"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ad05ff1b33460bfedf0b46f4e5e755399">mastodonpp::Connection::put</a></div><div class="ttdeci">answer_type put(const endpoint_variant &amp;endpoint)</div><div class="ttdoc">Make a HTTP PUT call.</div><div class="ttdef"><b>Definition:</b> connection.hpp:230</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ad7cebeeef7c285ff4666dc6850f20164"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ad7cebeeef7c285ff4666dc6850f20164">mastodonpp::Connection::post</a></div><div class="ttdeci">answer_type post(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP POST call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:41</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ade24a99769313ee15c406d97e9543cba"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ade24a99769313ee15c406d97e9543cba">mastodonpp::Connection::get</a></div><div class="ttdeci">answer_type get(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP GET call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:34</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ae6fc153679431f14ee98778bbc477cda"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ae6fc153679431f14ee98778bbc477cda">mastodonpp::Connection::Connection</a></div><div class="ttdeci">Connection(const Instance &amp;instance)</div><div class="ttdoc">Construct a new Connection object.</div><div class="ttdef"><b>Definition:</b> connection.hpp:88</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_af0d81640b36cdf6eee8897e1d9b31d52"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#af0d81640b36cdf6eee8897e1d9b31d52">mastodonpp::Connection::Connection</a></div><div class="ttdeci">Connection(Connection &amp;&amp;other) noexcept=delete</div><div class="ttdoc">Move constructor.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_af27eb5d94f5a0e39a703988fdcc54173"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#af27eb5d94f5a0e39a703988fdcc54173">mastodonpp::Connection::post</a></div><div class="ttdeci">answer_type post(const endpoint_variant &amp;endpoint)</div><div class="ttdoc">Make a HTTP POST call.</div><div class="ttdef"><b>Definition:</b> connection.hpp:182</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html"><div class="ttname"><a href="classmastodonpp_1_1Instance.html">mastodonpp::Instance</a></div><div class="ttdoc">Holds the access data of an instance.</div><div class="ttdef"><b>Definition:</b> instance.hpp:49</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a921c4b83815c0d98dea983a9409c00ac"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac">mastodonpp::Instance::copy_connection_properties</a></div><div class="ttdeci">void copy_connection_properties(CURLWrapper &amp;curlwrapper) const</div><div class="ttdoc">Set the properties of the connection of the calling class up.</div><div class="ttdef"><b>Definition:</b> instance.hpp:90</div></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
<div class="ttc" id="anamespacemastodonpp_html_ad5d7bf6713e986f130ec200963e0f208"><div class="ttname"><a href="namespacemastodonpp.html#ad5d7bf6713e986f130ec200963e0f208">mastodonpp::endpoint_variant</a></div><div class="ttdeci">variant&lt; API::endpoint_type, string_view &gt; endpoint_variant</div><div class="ttdoc">An endpoint. Either API::endpoint_type or std::string_view.</div><div class="ttdef"><b>Definition:</b> connection.hpp:43</div></div>
<div class="ttc" id="anamespacemastodonpp_html_af8b3b89118adeccc71c54dfd36c987f6"><div class="ttname"><a href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">mastodonpp::parametermap</a></div><div class="ttdeci">map&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parametermap</div><div class="ttdoc">std::map of parameters for API calls.</div><div class="ttdef"><b>Definition:</b> types.hpp:64</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html">mastodonpp::answer_type</a></div><div class="ttdoc">Return type for Requests.</div><div class="ttdef"><b>Definition:</b> types.hpp:80</div></div>
<div class="ttc" id="astructmastodonpp_1_1event__type_html"><div class="ttname"><a href="structmastodonpp_1_1event__type.html">mastodonpp::event_type</a></div><div class="ttdoc">A stream event.</div><div class="ttdef"><b>Definition:</b> connection.hpp:53</div></div>
<div class="ttc" id="astructmastodonpp_1_1event__type_html_a193361ac6ffafb474bbc493273a028ce"><div class="ttname"><a href="structmastodonpp_1_1event__type.html#a193361ac6ffafb474bbc493273a028ce">mastodonpp::event_type::type</a></div><div class="ttdeci">string type</div><div class="ttdoc">The type of the event.</div><div class="ttdef"><b>Definition:</b> connection.hpp:62</div></div>
<div class="ttc" id="astructmastodonpp_1_1event__type_html_af72ad0a57a762c57f0d4e5d650c5d65c"><div class="ttname"><a href="structmastodonpp_1_1event__type.html#af72ad0a57a762c57f0d4e5d650c5d65c">mastodonpp::event_type::data</a></div><div class="ttdeci">string data</div><div class="ttdoc">The payload.</div><div class="ttdef"><b>Definition:</b> connection.hpp:65</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: include/curl_wrapper.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -120,15 +120,15 @@ $(function() {
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html#a736572303fbec7a307514e611e6a468c">CURLWrapper</a>(<span class="keyword">const</span> <a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a> &amp;);</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html#a736572303fbec7a307514e611e6a468c">CURLWrapper</a>(<a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a> &amp;&amp;other) noexcept = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1CURLWrapper.html#a4d79b9a4525ac4b4b8954ccc794af0f9"> 80</a></span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html#a4d79b9a4525ac4b4b8954ccc794af0f9">CURLWrapper</a>(<a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a> &amp;&amp;other) noexcept = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keyword">virtual</span> <a class="code" href="classmastodonpp_1_1CURLWrapper.html#a350f7061c9cb54cb5992ae983db3fc19">~CURLWrapper</a>() noexcept;</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a> &amp;<a class="code" href="classmastodonpp_1_1CURLWrapper.html#a5f29b7f4d0b58f70bc96f362cdaa4d0a">operator=</a>(<span class="keyword">const</span> <a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a> &amp;other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1CURLWrapper.html#a5f29b7f4d0b58f70bc96f362cdaa4d0a"> 94</a></span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a> &amp;operator=(const <a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a> &amp;other) = delete;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a> &amp;<a class="code" href="classmastodonpp_1_1CURLWrapper.html#a5f29b7f4d0b58f70bc96f362cdaa4d0a">operator=</a>(<a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a> &amp;&amp;other) noexcept = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1CURLWrapper.html#a506cb49c00a63ef4b9d51d0d52c203dc"> 97</a></span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a> &amp;operator=(<a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a> &amp;&amp;other) noexcept = delete;</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1CURLWrapper.html#a2b7aaf03245a0730eeb464802168aded"> 108</a></span>&#160; <span class="keyword">inline</span> CURL *<a class="code" href="classmastodonpp_1_1CURLWrapper.html#a2b7aaf03245a0730eeb464802168aded">get_curl_easy_handle</a>()</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1CURLWrapper.html#a2b7aaf03245a0730eeb464802168aded"> 108</a></span>&#160; inline CURL *<a class="code" href="classmastodonpp_1_1CURLWrapper.html#a2b7aaf03245a0730eeb464802168aded">get_curl_easy_handle</a>()</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; {</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keywordflow">return</span> _connection;</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; }</div>
@ -233,34 +233,32 @@ $(function() {
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160; </div>
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160;} <span class="comment">// namespace mastodonpp</span></div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160; </div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160;<span class="preprocessor">#endif // MASTODONPP_CURL_WRAPPER_HPP</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespacemastodonpp_html_a7d60fc71ad0fb1fbd467b37fe1f1f100"><div class="ttname"><a href="namespacemastodonpp.html#a7d60fc71ad0fb1fbd467b37fe1f1f100">mastodonpp::http_method</a></div><div class="ttdeci">http_method</div><div class="ttdoc">The HTTP method.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:39</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_af7e18dc7c3bdc1c58bc93a46bf00866a"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#af7e18dc7c3bdc1c58bc93a46bf00866a">mastodonpp::CURLWrapper::_buffer_mutex</a></div><div class="ttdeci">mutex _buffer_mutex</div><div class="ttdoc">Mutex for get_buffer a.k.a. _curl_buffer_body.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:175</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a736572303fbec7a307514e611e6a468c"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a736572303fbec7a307514e611e6a468c">mastodonpp::CURLWrapper::CURLWrapper</a></div><div class="ttdeci">CURLWrapper()</div><div class="ttdoc">Initializes curl and sets up connection.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:58</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a2b7aaf03245a0730eeb464802168aded"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a2b7aaf03245a0730eeb464802168aded">mastodonpp::CURLWrapper::get_curl_easy_handle</a></div><div class="ttdeci">CURL * get_curl_easy_handle()</div><div class="ttdoc">Returns pointer to the CURL easy handle.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:108</div></div>
<div class="ttc" id="anamespacemastodonpp_html_af8b3b89118adeccc71c54dfd36c987f6"><div class="ttname"><a href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">mastodonpp::parametermap</a></div><div class="ttdeci">map&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parametermap</div><div class="ttdoc">std::map of parameters for API calls.</div><div class="ttdef"><b>Definition:</b> types.hpp:64</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_aed6d09b5c32d71276a851ddf321b5891"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#aed6d09b5c32d71276a851ddf321b5891">mastodonpp::CURLWrapper::unescape_url</a></div><div class="ttdeci">string unescape_url(const string_view url) const</div><div class="ttdoc">URL decodes the given string.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:146</div></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:24</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a04b3919cfb38716c5a032337e442db95"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a04b3919cfb38716c5a032337e442db95">mastodonpp::CURLWrapper::get_buffer</a></div><div class="ttdeci">string &amp; get_buffer()</div><div class="ttdoc">Returns a reference to the buffer libcurl writes into.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:195</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a1564a42794ef7a9d170b725063ef504d"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a1564a42794ef7a9d170b725063ef504d">mastodonpp::CURLWrapper::set_proxy</a></div><div class="ttdeci">virtual void set_proxy(string_view proxy)</div><div class="ttdoc">Set the proxy to use.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:229</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html">mastodonpp::answer_type</a></div><div class="ttdoc">Return type for Requests.</div><div class="ttdef"><b>Definition:</b> types.hpp:79</div></div>
<div class="ttc" id="anamespacemastodonpp_html_a63b360bdefd56276e903619eb6a76049"><div class="ttname"><a href="namespacemastodonpp.html#a63b360bdefd56276e903619eb6a76049">mastodonpp::parameterpair</a></div><div class="ttdeci">pair&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parameterpair</div><div class="ttdoc">A single parameter of a parametermap.</div><div class="ttdef"><b>Definition:</b> types.hpp:72</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_af3f2bd4dea7c289d590fe19889360444"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#af3f2bd4dea7c289d590fe19889360444">mastodonpp::CURLWrapper::set_cainfo</a></div><div class="ttdeci">virtual void set_cainfo(string_view path)</div><div class="ttdoc">Set path to Certificate Authority (CA) bundle.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:266</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a5f29b7f4d0b58f70bc96f362cdaa4d0a"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a5f29b7f4d0b58f70bc96f362cdaa4d0a">mastodonpp::CURLWrapper::operator=</a></div><div class="ttdeci">CURLWrapper &amp; operator=(const CURLWrapper &amp;other)=delete</div><div class="ttdoc">Copy assignment operator.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_ae3b1445f9b94b1f7677d3cac6d538612"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#ae3b1445f9b94b1f7677d3cac6d538612">mastodonpp::CURLWrapper::set_useragent</a></div><div class="ttdeci">virtual void set_useragent(string_view useragent)</div><div class="ttdoc">Sets the User-Agent.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:276</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html">mastodonpp::CURLWrapper</a></div><div class="ttdoc">Handles the details of network connections.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:57</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_adc8808c3fad5397176f6755b09ee0be6"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#adc8808c3fad5397176f6755b09ee0be6">mastodonpp::CURLWrapper::make_request</a></div><div class="ttdeci">answer_type make_request(const http_method &amp;method, string uri, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP request.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:80</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a350f7061c9cb54cb5992ae983db3fc19"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a350f7061c9cb54cb5992ae983db3fc19">mastodonpp::CURLWrapper::~CURLWrapper</a></div><div class="ttdeci">virtual ~CURLWrapper() noexcept</div><div class="ttdoc">Cleans up curl and connection.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:68</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a892a4fc3d048798fa8e2584545b91861"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a892a4fc3d048798fa8e2584545b91861">mastodonpp::CURLWrapper::cancel_stream</a></div><div class="ttdeci">void cancel_stream()</div><div class="ttdoc">Cancel the stream.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:209</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a11a543a0821a275dfce1ad7a0e68b17f"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a11a543a0821a275dfce1ad7a0e68b17f">mastodonpp::CURLWrapper::escape_url</a></div><div class="ttdeci">string escape_url(const string_view url) const</div><div class="ttdoc">URL encodes the given string.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:125</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a94aba6daedea376ccc20e5c983bd3358"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a94aba6daedea376ccc20e5c983bd3358">mastodonpp::CURLWrapper::set_access_token</a></div><div class="ttdeci">void set_access_token(string_view access_token)</div><div class="ttdoc">Set OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:240</div></div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// MASTODONPP_CURL_WRAPPER_HPP</span></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html">mastodonpp::CURLWrapper</a></div><div class="ttdoc">Handles the details of network connections.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:58</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a0059ecb78b53c4b3c941b19f8dc897f7"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a0059ecb78b53c4b3c941b19f8dc897f7">mastodonpp::CURLWrapper::setup_connection_properties</a></div><div class="ttdeci">void setup_connection_properties(string_view proxy, string_view access_token, string_view cainfo, string_view useragent)</div><div class="ttdoc">Set some properties of the connection.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:203</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a04b3919cfb38716c5a032337e442db95"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a04b3919cfb38716c5a032337e442db95">mastodonpp::CURLWrapper::get_buffer</a></div><div class="ttdeci">string &amp; get_buffer()</div><div class="ttdoc">Returns a reference to the buffer libcurl writes into.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:195</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a11a543a0821a275dfce1ad7a0e68b17f"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a11a543a0821a275dfce1ad7a0e68b17f">mastodonpp::CURLWrapper::escape_url</a></div><div class="ttdeci">string escape_url(const string_view url) const</div><div class="ttdoc">URL encodes the given string.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:125</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a1564a42794ef7a9d170b725063ef504d"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a1564a42794ef7a9d170b725063ef504d">mastodonpp::CURLWrapper::set_proxy</a></div><div class="ttdeci">virtual void set_proxy(string_view proxy)</div><div class="ttdoc">Set the proxy to use.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:229</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a2b7aaf03245a0730eeb464802168aded"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a2b7aaf03245a0730eeb464802168aded">mastodonpp::CURLWrapper::get_curl_easy_handle</a></div><div class="ttdeci">CURL * get_curl_easy_handle()</div><div class="ttdoc">Returns pointer to the CURL easy handle.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:108</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a350f7061c9cb54cb5992ae983db3fc19"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a350f7061c9cb54cb5992ae983db3fc19">mastodonpp::CURLWrapper::~CURLWrapper</a></div><div class="ttdeci">virtual ~CURLWrapper() noexcept</div><div class="ttdoc">Cleans up curl and connection.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:68</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a4d79b9a4525ac4b4b8954ccc794af0f9"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a4d79b9a4525ac4b4b8954ccc794af0f9">mastodonpp::CURLWrapper::CURLWrapper</a></div><div class="ttdeci">CURLWrapper(CURLWrapper &amp;&amp;other) noexcept=delete</div><div class="ttdoc">Move constructor.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a736572303fbec7a307514e611e6a468c"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a736572303fbec7a307514e611e6a468c">mastodonpp::CURLWrapper::CURLWrapper</a></div><div class="ttdeci">CURLWrapper()</div><div class="ttdoc">Initializes curl and sets up connection.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:58</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a892a4fc3d048798fa8e2584545b91861"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a892a4fc3d048798fa8e2584545b91861">mastodonpp::CURLWrapper::cancel_stream</a></div><div class="ttdeci">void cancel_stream()</div><div class="ttdoc">Cancel the stream.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:209</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a94aba6daedea376ccc20e5c983bd3358"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a94aba6daedea376ccc20e5c983bd3358">mastodonpp::CURLWrapper::set_access_token</a></div><div class="ttdeci">void set_access_token(string_view access_token)</div><div class="ttdoc">Set OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:240</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_adc8808c3fad5397176f6755b09ee0be6"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#adc8808c3fad5397176f6755b09ee0be6">mastodonpp::CURLWrapper::make_request</a></div><div class="ttdeci">answer_type make_request(const http_method &amp;method, string uri, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP request.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:80</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_ae3b1445f9b94b1f7677d3cac6d538612"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#ae3b1445f9b94b1f7677d3cac6d538612">mastodonpp::CURLWrapper::set_useragent</a></div><div class="ttdeci">virtual void set_useragent(string_view useragent)</div><div class="ttdoc">Sets the User-Agent.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:276</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_aed6d09b5c32d71276a851ddf321b5891"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#aed6d09b5c32d71276a851ddf321b5891">mastodonpp::CURLWrapper::unescape_url</a></div><div class="ttdeci">string unescape_url(const string_view url) const</div><div class="ttdoc">URL decodes the given string.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:146</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_af3f2bd4dea7c289d590fe19889360444"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#af3f2bd4dea7c289d590fe19889360444">mastodonpp::CURLWrapper::set_cainfo</a></div><div class="ttdeci">virtual void set_cainfo(string_view path)</div><div class="ttdoc">Set path to Certificate Authority (CA) bundle.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:266</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_af7e18dc7c3bdc1c58bc93a46bf00866a"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#af7e18dc7c3bdc1c58bc93a46bf00866a">mastodonpp::CURLWrapper::_buffer_mutex</a></div><div class="ttdeci">mutex _buffer_mutex</div><div class="ttdoc">Mutex for get_buffer a.k.a. _curl_buffer_body.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:175</div></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
<div class="ttc" id="anamespacemastodonpp_html_a63b360bdefd56276e903619eb6a76049"><div class="ttname"><a href="namespacemastodonpp.html#a63b360bdefd56276e903619eb6a76049">mastodonpp::parameterpair</a></div><div class="ttdeci">pair&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parameterpair</div><div class="ttdoc">A single parameter of a parametermap.</div><div class="ttdef"><b>Definition:</b> types.hpp:72</div></div>
<div class="ttc" id="anamespacemastodonpp_html_a7d60fc71ad0fb1fbd467b37fe1f1f100"><div class="ttname"><a href="namespacemastodonpp.html#a7d60fc71ad0fb1fbd467b37fe1f1f100">mastodonpp::http_method</a></div><div class="ttdeci">http_method</div><div class="ttdoc">The HTTP method.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:40</div></div>
<div class="ttc" id="anamespacemastodonpp_html_af8b3b89118adeccc71c54dfd36c987f6"><div class="ttname"><a href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">mastodonpp::parametermap</a></div><div class="ttdeci">map&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parametermap</div><div class="ttdoc">std::map of parameters for API calls.</div><div class="ttdef"><b>Definition:</b> types.hpp:64</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html">mastodonpp::answer_type</a></div><div class="ttdoc">Return type for Requests.</div><div class="ttdef"><b>Definition:</b> types.hpp:80</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: src Directory Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -74,9 +74,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: include Directory Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -74,9 +74,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -1,4 +1,4 @@
/* The standard CSS for doxygen 1.8.17 */
/* The standard CSS for doxygen 1.9.1 */
body, table, div, p, dl {
font: 400 14px/22px Roboto,sans-serif;
@ -66,7 +66,7 @@ p.startli, p.startdd {
margin-top: 2px;
}
th p.starttd, p.intertd, p.endtd {
th p.starttd, th p.intertd, th p.endtd {
font-size: 100%;
font-weight: 700;
}
@ -103,30 +103,96 @@ caption {
}
span.legend {
font-size: 70%;
text-align: center;
}
h3.version {
font-size: 90%;
text-align: center;
}
div.qindex, div.navtab{
background-color: #EBEFF6;
border: 1px solid #A3B4D7;
font-size: 70%;
text-align: center;
}
div.qindex, div.navpath {
width: 100%;
line-height: 140%;
h3.version {
font-size: 90%;
text-align: center;
}
div.navtab {
margin-right: 15px;
border-right: 1px solid #A3B4D7;
padding-right: 15px;
text-align: right;
line-height: 110%;
}
div.navtab table {
border-spacing: 0;
}
td.navtab {
padding-right: 6px;
padding-left: 6px;
}
td.navtabHL {
background-image: url('tab_a.png');
background-repeat:repeat-x;
padding-right: 6px;
padding-left: 6px;
}
td.navtabHL a, td.navtabHL a:visited {
color: #fff;
text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0);
}
a.navtab {
font-weight: bold;
}
div.qindex{
text-align: center;
width: 100%;
line-height: 140%;
font-size: 130%;
color: #A0A0A0;
}
dt.alphachar{
font-size: 180%;
font-weight: bold;
}
.alphachar a{
color: black;
}
.alphachar a:hover, .alphachar a:visited{
text-decoration: none;
}
.classindex dl {
padding: 25px;
column-count:1
}
.classindex dd {
display:inline-block;
margin-left: 50px;
width: 90%;
line-height: 1.15em;
}
.classindex dl.odd {
background-color: #F8F9FC;
}
@media(min-width: 1120px) {
.classindex dl {
column-count:2
}
}
@media(min-width: 1320px) {
.classindex dl {
column-count:3
}
}
/* @group Link Styling */
a {
@ -143,17 +209,6 @@ a:hover {
text-decoration: underline;
}
a.qindex {
font-weight: bold;
}
a.qindexHL {
font-weight: bold;
background-color: #9CAFD4;
color: #FFFFFF;
border: 1px double #869DCA;
}
.contents a.qindexHL:visited {
color: #FFFFFF;
}
@ -1358,10 +1413,12 @@ dl.citelist dt {
font-weight:bold;
margin-right:10px;
padding:5px;
text-align:right;
width:52px;
}
dl.citelist dd {
margin:2px 0;
margin:2px 0 2px 72px;
padding:5px 0;
}
@ -1424,6 +1481,12 @@ div.toc li.level4 {
margin-left: 45px;
}
span.emoji {
/* font family used at the site: https://unicode.org/emoji/charts/full-emoji-list.html
* font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", Times, Symbola, Aegyptus, Code2000, Code2001, Code2002, Musica, serif, LastResort;
*/
}
.PageDocRTL-title div.toc li.level1 {
margin-left: 0 !important;
margin-right: 0;
@ -1661,47 +1724,6 @@ tr.heading h2 {
/* @group Markdown */
/*
table.markdownTable {
border-collapse:collapse;
margin-top: 4px;
margin-bottom: 4px;
}
table.markdownTable td, table.markdownTable th {
border: 1px solid #2D4068;
padding: 3px 7px 2px;
}
table.markdownTableHead tr {
}
table.markdownTableBodyLeft td, table.markdownTable th {
border: 1px solid #2D4068;
padding: 3px 7px 2px;
}
th.markdownTableHeadLeft th.markdownTableHeadRight th.markdownTableHeadCenter th.markdownTableHeadNone {
background-color: #374F7F;
color: #FFFFFF;
font-size: 110%;
padding-bottom: 4px;
padding-top: 5px;
}
th.markdownTableHeadLeft {
text-align: left
}
th.markdownTableHeadRight {
text-align: right
}
th.markdownTableHeadCenter {
text-align: center
}
*/
table.markdownTable {
border-collapse:collapse;
margin-top: 4px;

26
docs/doxygen.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1,25 +1,26 @@
/*
@licstart The following is the entire license notice for the
JavaScript code in this file.
@licstart The following is the entire license notice for the JavaScript code in this file.
Copyright (C) 1997-2017 by Dimitri van Heesch
The MIT License (MIT)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Copyright (C) 1997-2020 by Dimitri van Heesch
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
@licend The above is the entire license notice
for the JavaScript code in this file
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@licend The above is the entire license notice for the JavaScript code in this file
*/
function toggleVisibility(linkObj)
{

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: example01_instance_info.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -67,12 +67,98 @@ $(function() {
<div class="title">example01_instance_info.cpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"></div><!-- fragment --> </div><!-- contents -->
<div class="fragment"><div class="line"><span class="comment">/* This file is part of mastodonpp.</span></div>
<div class="line"><span class="comment"> * Copyright © 2020 tastytea &lt;tastytea@tastytea.de&gt;</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><span class="comment"> * purpose with or without fee is hereby granted.</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><span class="comment"> * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><span class="comment"> * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY</span></div>
<div class="line"><span class="comment"> * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><span class="comment"> * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION</span></div>
<div class="line"><span class="comment"> * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN</span></div>
<div class="line"><span class="comment"> * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><span class="comment"> */</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// Print information about an instance (/api/v1/instance).</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#if __has_include(&quot;mastodonpp.hpp&quot;</span>)</div>
<div class="line"><span class="preprocessor"># include &quot;mastodonpp.hpp&quot;</span> <span class="comment">// We&#39;re building mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#else</span></div>
<div class="line"><span class="preprocessor"># include &lt;mastodonpp/mastodonpp.hpp&gt;</span> <span class="comment">// We&#39;re building outside mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#endif</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"> </div>
<div class="line"><span class="keyword">namespace </span>masto = <a class="code" href="namespacemastodonpp.html">mastodonpp</a>;</div>
<div class="line"><span class="keyword">using</span> std::cerr;</div>
<div class="line"><span class="keyword">using</span> std::cout;</div>
<div class="line"><span class="keyword">using</span> std::endl;</div>
<div class="line"><span class="keyword">using</span> std::string_view;</div>
<div class="line"><span class="keyword">using</span> std::to_string;</div>
<div class="line"><span class="keyword">using</span> std::vector;</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])</div>
<div class="line">{</div>
<div class="line"> <span class="keyword">const</span> vector&lt;string_view&gt; args(argv, argv + argc);</div>
<div class="line"> <span class="keywordflow">if</span> (args.size() &lt;= 1)</div>
<div class="line"> {</div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;Usage: &quot;</span> &lt;&lt; args[0] &lt;&lt; <span class="stringliteral">&quot; &lt;instance hostname&gt;\n&quot;</span>;</div>
<div class="line"> <span class="keywordflow">return</span> 1;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">try</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Initialize an Instance.</span></div>
<div class="line"> masto::Instance instance{args[1], {}};</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Get maximum allowed characters per post.</span></div>
<div class="line"> <span class="keyword">const</span> <span class="keyword">auto</span> max_chars{instance.get_max_chars()};</div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot;Maximum characters per post: &quot;</span> &lt;&lt; max_chars &lt;&lt; <span class="stringliteral">&quot;\n\n&quot;</span>;</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Initialize a Connection.</span></div>
<div class="line"> masto::Connection connection{instance};</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Get information about the instance.</span></div>
<div class="line"> masto::answer_type answer{connection.get(masto::API::v1::instance)};</div>
<div class="line"> <span class="keywordflow">if</span> (answer)</div>
<div class="line"> {</div>
<div class="line"> cout &lt;&lt; answer &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="keywordflow">if</span> (answer.curl_error_code == 0)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// If it is no libcurl error, it must be an HTTP error.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;HTTP status: &quot;</span> &lt;&lt; answer.http_status &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Network errors like “Couldn&#39;t resolve host.”.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;libcurl error &quot;</span> &lt;&lt; to_string(answer.curl_error_code)</div>
<div class="line"> &lt;&lt; <span class="stringliteral">&quot;: &quot;</span> &lt;&lt; answer.error_message &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">catch</span> (<span class="keyword">const</span> masto::CURLException &amp;e)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Only libcurl errors that are not network errors will be thrown.</span></div>
<div class="line"> <span class="comment">// There went probably something wrong with the initialization.</span></div>
<div class="line"> cerr &lt;&lt; e.what() &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">return</span> 0;</div>
<div class="line">}</div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
</div><!-- fragment --> </div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: example02_streaming.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -67,12 +67,122 @@ $(function() {
<div class="title">example02_streaming.cpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"></div><!-- fragment --> </div><!-- contents -->
<div class="fragment"><div class="line"><span class="comment">/* This file is part of mastodonpp.</span></div>
<div class="line"><span class="comment"> * Copyright © 2020 tastytea &lt;tastytea@tastytea.de&gt;</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><span class="comment"> * purpose with or without fee is hereby granted.</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><span class="comment"> * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><span class="comment"> * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY</span></div>
<div class="line"><span class="comment"> * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><span class="comment"> * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION</span></div>
<div class="line"><span class="comment"> * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN</span></div>
<div class="line"><span class="comment"> * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><span class="comment"> */</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// Print new public events (/api/v1/streaming/public).</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#if __has_include(&quot;mastodonpp.hpp&quot;</span>)</div>
<div class="line"><span class="preprocessor"># include &quot;mastodonpp.hpp&quot;</span> <span class="comment">// We&#39;re building mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#else</span></div>
<div class="line"><span class="preprocessor"># include &lt;mastodonpp/mastodonpp.hpp&gt;</span> <span class="comment">// We&#39;re building outside mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#endif</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &lt;chrono&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;thread&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"> </div>
<div class="line"><span class="keyword">namespace </span>masto = <a class="code" href="namespacemastodonpp.html">mastodonpp</a>;</div>
<div class="line"><span class="keyword">using namespace </span>std::chrono_literals;</div>
<div class="line"><span class="keyword">using</span> std::cerr;</div>
<div class="line"><span class="keyword">using</span> std::cout;</div>
<div class="line"><span class="keyword">using</span> std::endl;</div>
<div class="line"><span class="keyword">using</span> std::string_view;</div>
<div class="line"><span class="keyword">using</span> std::thread;</div>
<div class="line"><span class="keyword">using</span> std::to_string;</div>
<div class="line"><span class="keyword">using</span> std::vector;</div>
<div class="line"><span class="keyword">using</span> std::this_thread::sleep_for;</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])</div>
<div class="line">{</div>
<div class="line"> <span class="keyword">const</span> vector&lt;string_view&gt; args(argv, argv + argc);</div>
<div class="line"> <span class="keywordflow">if</span> (args.size() &lt;= 1)</div>
<div class="line"> {</div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;Usage: &quot;</span> &lt;&lt; args[0] &lt;&lt; <span class="stringliteral">&quot; &lt;instance hostname&gt;\n&quot;</span>;</div>
<div class="line"> <span class="keywordflow">return</span> 1;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">try</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Initialize an Instance.</span></div>
<div class="line"> masto::Instance instance{args[1], {}};</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Initialize a Connection.</span></div>
<div class="line"> masto::Connection connection{instance};</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Find out if the streaming service is fine.</span></div>
<div class="line"> <span class="keyword">auto</span> answer{connection.get(masto::API::v1::streaming_health)};</div>
<div class="line"> <span class="keywordflow">if</span> (answer &amp;&amp; answer.body == <span class="stringliteral">&quot;OK&quot;</span>)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Make a thread, get all public events.</span></div>
<div class="line"> <span class="comment">// clang-format off</span></div>
<div class="line"> thread stream_thread{[&amp;]</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// clang-format on</span></div>
<div class="line"> answer = connection.get(masto::API::v1::streaming_public);</div>
<div class="line"> }};</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Print new events every 2 seconds, for 10 seconds.</span></div>
<div class="line"> <span class="keywordflow">for</span> (<span class="keyword">auto</span> counter{0}; counter &lt; 5; ++counter)</div>
<div class="line"> {</div>
<div class="line"> sleep_for(2s);</div>
<div class="line"> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span> &amp;event : connection.get_new_events())</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Print type of event and the beginning of the data.</span></div>
<div class="line"> cout &lt;&lt; <span class="keyword">event</span>.type &lt;&lt; <span class="stringliteral">&quot;: &quot;</span> &lt;&lt; <span class="keyword">event</span>.data.substr(0, 70)</div>
<div class="line"> &lt;&lt; <span class="stringliteral">&quot;&quot;</span> &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Cancel the stream, …</span></div>
<div class="line"> connection.cancel_stream();</div>
<div class="line"> <span class="comment">// … and wait for the thread.</span></div>
<div class="line"> stream_thread.join();</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="keywordflow">if</span> (answer.curl_error_code == 0)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// If it is no libcurl error, it must be an HTTP error.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;HTTP status: &quot;</span> &lt;&lt; answer.http_status &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Network errors like “Couldn&#39;t resolve host.”.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;libcurl error &quot;</span> &lt;&lt; to_string(answer.curl_error_code)</div>
<div class="line"> &lt;&lt; <span class="stringliteral">&quot;: &quot;</span> &lt;&lt; answer.error_message &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">catch</span> (<span class="keyword">const</span> masto::CURLException &amp;e)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Only libcurl errors that are not network errors will be thrown.</span></div>
<div class="line"> <span class="comment">// There went probably something wrong with the initialization.</span></div>
<div class="line"> cerr &lt;&lt; e.what() &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">return</span> 0;</div>
<div class="line">}</div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
</div><!-- fragment --> </div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: example03_post_status.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -67,12 +67,101 @@ $(function() {
<div class="title">example03_post_status.cpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"></div><!-- fragment --> </div><!-- contents -->
<div class="fragment"><div class="line"><span class="comment">/* This file is part of mastodonpp.</span></div>
<div class="line"><span class="comment"> * Copyright © 2020 tastytea &lt;tastytea@tastytea.de&gt;</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><span class="comment"> * purpose with or without fee is hereby granted.</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><span class="comment"> * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><span class="comment"> * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY</span></div>
<div class="line"><span class="comment"> * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><span class="comment"> * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION</span></div>
<div class="line"><span class="comment"> * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN</span></div>
<div class="line"><span class="comment"> * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><span class="comment"> */</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// Post a status (/api/v1/status).</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#if __has_include(&quot;mastodonpp.hpp&quot;</span>)</div>
<div class="line"><span class="preprocessor"># include &quot;mastodonpp.hpp&quot;</span> <span class="comment">// We&#39;re building mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#else</span></div>
<div class="line"><span class="preprocessor"># include &lt;mastodonpp/mastodonpp.hpp&gt;</span> <span class="comment">// We&#39;re building outside mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#endif</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"> </div>
<div class="line"><span class="keyword">namespace </span>masto = <a class="code" href="namespacemastodonpp.html">mastodonpp</a>;</div>
<div class="line"><span class="keyword">using</span> std::cerr;</div>
<div class="line"><span class="keyword">using</span> std::cout;</div>
<div class="line"><span class="keyword">using</span> std::endl;</div>
<div class="line"><span class="keyword">using</span> std::string_view;</div>
<div class="line"><span class="keyword">using</span> std::to_string;</div>
<div class="line"><span class="keyword">using</span> std::vector;</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])</div>
<div class="line">{</div>
<div class="line"> <span class="keyword">const</span> vector&lt;string_view&gt; args(argv, argv + argc);</div>
<div class="line"> <span class="keywordflow">if</span> (args.size() &lt;= 2)</div>
<div class="line"> {</div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;Usage: &quot;</span> &lt;&lt; args[0] &lt;&lt; <span class="stringliteral">&quot; &lt;instance hostname&gt; &lt;access token&gt;\n&quot;</span>;</div>
<div class="line"> <span class="keywordflow">return</span> 1;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">try</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Initialize an Instance and a Connection.</span></div>
<div class="line"> masto::Instance instance{args[1], args[2]};</div>
<div class="line"> masto::Connection connection{instance};</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Set up the parameters.</span></div>
<div class="line"> constexpr <span class="keyword">auto</span> poll_seconds{60 * 60 * 24 * 2}; <span class="comment">// 2 days.</span></div>
<div class="line"> <span class="keyword">const</span> masto::parametermap parameters{{<span class="stringliteral">&quot;status&quot;</span>, <span class="stringliteral">&quot;How is the weather?&quot;</span>},</div>
<div class="line"> {<span class="stringliteral">&quot;poll[options]&quot;</span>,</div>
<div class="line"> vector&lt;string_view&gt;{<span class="stringliteral">&quot;Nice&quot;</span>,</div>
<div class="line"> <span class="stringliteral">&quot;not nice&quot;</span>}},</div>
<div class="line"> {<span class="stringliteral">&quot;poll[expires_in]&quot;</span>,</div>
<div class="line"> to_string(poll_seconds)}};</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Post the status.</span></div>
<div class="line"> <span class="keyword">auto</span> answer{connection.post(masto::API::v1::statuses, parameters)};</div>
<div class="line"> <span class="keywordflow">if</span> (answer)</div>
<div class="line"> {</div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot;Successfully posted a status.\n&quot;</span>;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="keywordflow">if</span> (answer.curl_error_code == 0)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// If it is no libcurl error, it must be an HTTP error.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;HTTP status: &quot;</span> &lt;&lt; answer.http_status &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Network errors like “Couldn&#39;t resolve host.”.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;libcurl error &quot;</span> &lt;&lt; to_string(answer.curl_error_code)</div>
<div class="line"> &lt;&lt; <span class="stringliteral">&quot;: &quot;</span> &lt;&lt; answer.error_message &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">catch</span> (<span class="keyword">const</span> masto::CURLException &amp;e)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Only libcurl errors that are not network errors will be thrown.</span></div>
<div class="line"> <span class="comment">// There went probably something wrong with the initialization.</span></div>
<div class="line"> cerr &lt;&lt; e.what() &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">return</span> 0;</div>
<div class="line">}</div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
</div><!-- fragment --> </div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: example04_post_with_attachment.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -67,12 +67,111 @@ $(function() {
<div class="title">example04_post_with_attachment.cpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"></div><!-- fragment --> </div><!-- contents -->
<div class="fragment"><div class="line"><span class="comment">/* This file is part of mastodonpp.</span></div>
<div class="line"><span class="comment"> * Copyright © 2020 tastytea &lt;tastytea@tastytea.de&gt;</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><span class="comment"> * purpose with or without fee is hereby granted.</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><span class="comment"> * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><span class="comment"> * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY</span></div>
<div class="line"><span class="comment"> * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><span class="comment"> * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION</span></div>
<div class="line"><span class="comment"> * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN</span></div>
<div class="line"><span class="comment"> * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><span class="comment"> */</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// Post a status (/api/v1/status) with an attachment (/api/v1/media).</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#if __has_include(&quot;mastodonpp.hpp&quot;</span>)</div>
<div class="line"><span class="preprocessor"># include &quot;mastodonpp.hpp&quot;</span> <span class="comment">// We&#39;re building mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#else</span></div>
<div class="line"><span class="preprocessor"># include &lt;mastodonpp/mastodonpp.hpp&gt;</span> <span class="comment">// We&#39;re building outside mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#endif</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"> </div>
<div class="line"><span class="keyword">namespace </span>masto = <a class="code" href="namespacemastodonpp.html">mastodonpp</a>;</div>
<div class="line"><span class="keyword">using</span> std::cerr;</div>
<div class="line"><span class="keyword">using</span> std::cout;</div>
<div class="line"><span class="keyword">using</span> std::endl;</div>
<div class="line"><span class="keyword">using</span> std::string;</div>
<div class="line"><span class="keyword">using</span> std::string_view;</div>
<div class="line"><span class="keyword">using</span> std::to_string;</div>
<div class="line"><span class="keyword">using</span> std::vector;</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])</div>
<div class="line">{</div>
<div class="line"> <span class="keyword">const</span> vector&lt;string_view&gt; args(argv, argv + argc);</div>
<div class="line"> <span class="keywordflow">if</span> (args.size() &lt;= 3)</div>
<div class="line"> {</div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;Usage: &quot;</span> &lt;&lt; args[0]</div>
<div class="line"> &lt;&lt; <span class="stringliteral">&quot; &lt;instance hostname&gt; &lt;access token&gt; &lt;file&gt;\n&quot;</span>;</div>
<div class="line"> <span class="keywordflow">return</span> 1;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">try</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Initialize an Instance and a Connection.</span></div>
<div class="line"> masto::Instance instance{args[1], args[2]};</div>
<div class="line"> masto::Connection connection{instance};</div>
<div class="line"> <span class="keyword">const</span> string_view filename{args[3]};</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Create attachment.</span></div>
<div class="line"> <span class="keyword">auto</span> answer{connection.post(masto::API::v1::media,</div>
<div class="line"> {{<span class="stringliteral">&quot;file&quot;</span>, string(<span class="stringliteral">&quot;@file:&quot;</span>) += filename},</div>
<div class="line"> {<span class="stringliteral">&quot;description&quot;</span>, <span class="stringliteral">&quot;Test.&quot;</span>}})};</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Get the ID of the attachment.</span></div>
<div class="line"> <span class="comment">// You normally would use a JSON parser, of course. I don&#39;t use one</span></div>
<div class="line"> <span class="comment">// because I don&#39;t want to add a dependency just for an example.</span></div>
<div class="line"> <span class="keyword">const</span> <span class="keyword">auto</span> pos{answer.body.find(R<span class="stringliteral">&quot;(&quot;id&quot;:&quot;)&quot;) + 6};</span></div>
<div class="line"><span class="stringliteral"> </span><span class="keyword">const</span> <span class="keyword">auto</span> endpos{answer.body.find(R<span class="stringliteral">&quot;(&quot;,)&quot;, pos)};</span></div>
<div class="line"><span class="stringliteral"> </span><span class="keyword">const</span> <span class="keyword">auto</span> media_id{answer.body.substr(pos, endpos - pos)};</div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot;Attachment has ID: &quot;</span> &lt;&lt; media_id &lt;&lt; endl;</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Post the status. Note that “media_ids” always has to be a vector.</span></div>
<div class="line"> answer = connection.post(masto::API::v1::statuses,</div>
<div class="line"> {{<span class="stringliteral">&quot;status&quot;</span>, <span class="stringliteral">&quot;Attachment test.&quot;</span>},</div>
<div class="line"> {<span class="stringliteral">&quot;media_ids&quot;</span>,</div>
<div class="line"> vector&lt;string_view&gt;{media_id}}});</div>
<div class="line"> <span class="keywordflow">if</span> (answer)</div>
<div class="line"> {</div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot;Successfully posted &quot;</span> &lt;&lt; filename &lt;&lt; <span class="stringliteral">&quot;.\n&quot;</span>;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="keywordflow">if</span> (answer.curl_error_code == 0)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// If it is no libcurl error, it must be an HTTP error.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;HTTP status: &quot;</span> &lt;&lt; answer.http_status &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Network errors like “Couldn&#39;t resolve host.”.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;libcurl error &quot;</span> &lt;&lt; to_string(answer.curl_error_code)</div>
<div class="line"> &lt;&lt; <span class="stringliteral">&quot;: &quot;</span> &lt;&lt; answer.error_message &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">catch</span> (<span class="keyword">const</span> masto::CURLException &amp;e)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Only libcurl errors that are not network errors will be thrown.</span></div>
<div class="line"> <span class="comment">// There went probably something wrong with the initialization.</span></div>
<div class="line"> cerr &lt;&lt; e.what() &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">return</span> 0;</div>
<div class="line">}</div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
</div><!-- fragment --> </div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: example05_update_notification_settings.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -67,12 +67,99 @@ $(function() {
<div class="title">example05_update_notification_settings.cpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"></div><!-- fragment --> </div><!-- contents -->
<div class="fragment"><div class="line"><span class="comment">/* This file is part of mastodonpp.</span></div>
<div class="line"><span class="comment"> * Copyright © 2020 tastytea &lt;tastytea@tastytea.de&gt;</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><span class="comment"> * purpose with or without fee is hereby granted.</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><span class="comment"> * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><span class="comment"> * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY</span></div>
<div class="line"><span class="comment"> * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><span class="comment"> * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION</span></div>
<div class="line"><span class="comment"> * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN</span></div>
<div class="line"><span class="comment"> * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><span class="comment"> */</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// Update notification settings (/api/pleroma/notification_settings).</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#if __has_include(&quot;mastodonpp.hpp&quot;</span>)</div>
<div class="line"><span class="preprocessor"># include &quot;mastodonpp.hpp&quot;</span> <span class="comment">// We&#39;re building mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#else</span></div>
<div class="line"><span class="preprocessor"># include &lt;mastodonpp/mastodonpp.hpp&gt;</span> <span class="comment">// We&#39;re building outside mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#endif</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"> </div>
<div class="line"><span class="keyword">namespace </span>masto = <a class="code" href="namespacemastodonpp.html">mastodonpp</a>;</div>
<div class="line"><span class="keyword">using</span> std::cerr;</div>
<div class="line"><span class="keyword">using</span> std::cout;</div>
<div class="line"><span class="keyword">using</span> std::endl;</div>
<div class="line"><span class="keyword">using</span> std::string_view;</div>
<div class="line"><span class="keyword">using</span> std::to_string;</div>
<div class="line"><span class="keyword">using</span> std::vector;</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])</div>
<div class="line">{</div>
<div class="line"> <span class="keyword">const</span> vector&lt;string_view&gt; args(argv, argv + argc);</div>
<div class="line"> <span class="keywordflow">if</span> (args.size() &lt;= 2)</div>
<div class="line"> {</div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;Usage: &quot;</span> &lt;&lt; args[0] &lt;&lt; <span class="stringliteral">&quot; &lt;instance hostname&gt; &lt;access token&gt;\n&quot;</span>;</div>
<div class="line"> <span class="keywordflow">return</span> 1;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">try</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Initialize an Instance and a Connection.</span></div>
<div class="line"> masto::Instance instance{args[1], args[2]};</div>
<div class="line"> masto::Connection connection{instance};</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Update the settings.</span></div>
<div class="line"> <span class="keyword">const</span> <span class="keyword">auto</span> answer{</div>
<div class="line"> connection.put(masto::API::pleroma::notification_settings,</div>
<div class="line"> {</div>
<div class="line"> {<span class="stringliteral">&quot;followers&quot;</span>, <span class="stringliteral">&quot;true&quot;</span>},</div>
<div class="line"> {<span class="stringliteral">&quot;follows&quot;</span>, <span class="stringliteral">&quot;true&quot;</span>},</div>
<div class="line"> {<span class="stringliteral">&quot;remote&quot;</span>, <span class="stringliteral">&quot;true&quot;</span>},</div>
<div class="line"> {<span class="stringliteral">&quot;local&quot;</span>, <span class="stringliteral">&quot;true&quot;</span>},</div>
<div class="line"> })};</div>
<div class="line"> <span class="keywordflow">if</span> (answer)</div>
<div class="line"> {</div>
<div class="line"> cout &lt;&lt; answer &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="keywordflow">if</span> (answer.curl_error_code == 0)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// If it is no libcurl error, it must be an HTTP error.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;HTTP status: &quot;</span> &lt;&lt; answer.http_status &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Network errors like “Couldn&#39;t resolve host.”.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;libcurl error &quot;</span> &lt;&lt; to_string(answer.curl_error_code)</div>
<div class="line"> &lt;&lt; <span class="stringliteral">&quot;: &quot;</span> &lt;&lt; answer.error_message &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">catch</span> (<span class="keyword">const</span> masto::CURLException &amp;e)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Only libcurl errors that are not network errors will be thrown.</span></div>
<div class="line"> <span class="comment">// There went probably something wrong with the initialization.</span></div>
<div class="line"> cerr &lt;&lt; e.what() &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">return</span> 0;</div>
<div class="line">}</div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
</div><!-- fragment --> </div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: example06_update_name.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -67,12 +67,96 @@ $(function() {
<div class="title">example06_update_name.cpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"></div><!-- fragment --> </div><!-- contents -->
<div class="fragment"><div class="line"><span class="comment">/* This file is part of mastodonpp.</span></div>
<div class="line"><span class="comment"> * Copyright © 2020 tastytea &lt;tastytea@tastytea.de&gt;</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><span class="comment"> * purpose with or without fee is hereby granted.</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><span class="comment"> * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><span class="comment"> * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY</span></div>
<div class="line"><span class="comment"> * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><span class="comment"> * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION</span></div>
<div class="line"><span class="comment"> * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN</span></div>
<div class="line"><span class="comment"> * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><span class="comment"> */</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// Update account display name settings (/api/v1/accounts/update_credentials).</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#if __has_include(&quot;mastodonpp.hpp&quot;</span>)</div>
<div class="line"><span class="preprocessor"># include &quot;mastodonpp.hpp&quot;</span> <span class="comment">// We&#39;re building mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#else</span></div>
<div class="line"><span class="preprocessor"># include &lt;mastodonpp/mastodonpp.hpp&gt;</span> <span class="comment">// We&#39;re building outside mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#endif</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"> </div>
<div class="line"><span class="keyword">namespace </span>masto = <a class="code" href="namespacemastodonpp.html">mastodonpp</a>;</div>
<div class="line"><span class="keyword">using</span> std::cerr;</div>
<div class="line"><span class="keyword">using</span> std::cout;</div>
<div class="line"><span class="keyword">using</span> std::endl;</div>
<div class="line"><span class="keyword">using</span> std::string_view;</div>
<div class="line"><span class="keyword">using</span> std::to_string;</div>
<div class="line"><span class="keyword">using</span> std::vector;</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])</div>
<div class="line">{</div>
<div class="line"> <span class="keyword">const</span> vector&lt;string_view&gt; args(argv, argv + argc);</div>
<div class="line"> <span class="keywordflow">if</span> (args.size() &lt;= 3)</div>
<div class="line"> {</div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;Usage: &quot;</span> &lt;&lt; args[0]</div>
<div class="line"> &lt;&lt; <span class="stringliteral">&quot; &lt;instance hostname&gt; &lt;access token&gt; &lt;name&gt;\n&quot;</span>;</div>
<div class="line"> <span class="keywordflow">return</span> 1;</div>
<div class="line"> }</div>
<div class="line"> <span class="keyword">const</span> <span class="keyword">auto</span> name{args[3]};</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">try</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Initialize an Instance and a Connection.</span></div>
<div class="line"> masto::Instance instance{args[1], args[2]};</div>
<div class="line"> masto::Connection connection{instance};</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Update the settings.</span></div>
<div class="line"> <span class="keyword">const</span> <span class="keyword">auto</span> answer{</div>
<div class="line"> connection.patch(masto::API::v1::accounts_update_credentials,</div>
<div class="line"> {{<span class="stringliteral">&quot;display_name&quot;</span>, name}})};</div>
<div class="line"> <span class="keywordflow">if</span> (answer)</div>
<div class="line"> {</div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot;Successfully changed display name.\n&quot;</span>;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="keywordflow">if</span> (answer.curl_error_code == 0)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// If it is no libcurl error, it must be an HTTP error.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;HTTP status: &quot;</span> &lt;&lt; answer.http_status &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Network errors like “Couldn&#39;t resolve host.”.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;libcurl error &quot;</span> &lt;&lt; to_string(answer.curl_error_code)</div>
<div class="line"> &lt;&lt; <span class="stringliteral">&quot;: &quot;</span> &lt;&lt; answer.error_message &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">catch</span> (<span class="keyword">const</span> masto::CURLException &amp;e)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Only libcurl errors that are not network errors will be thrown.</span></div>
<div class="line"> <span class="comment">// There went probably something wrong with the initialization.</span></div>
<div class="line"> cerr &lt;&lt; e.what() &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">return</span> 0;</div>
<div class="line">}</div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
</div><!-- fragment --> </div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: example07_delete_status.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -67,12 +67,113 @@ $(function() {
<div class="title">example07_delete_status.cpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"></div><!-- fragment --> </div><!-- contents -->
<div class="fragment"><div class="line"><span class="comment">/* This file is part of mastodonpp.</span></div>
<div class="line"><span class="comment"> * Copyright © 2020 tastytea &lt;tastytea@tastytea.de&gt;</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><span class="comment"> * purpose with or without fee is hereby granted.</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><span class="comment"> * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><span class="comment"> * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY</span></div>
<div class="line"><span class="comment"> * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><span class="comment"> * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION</span></div>
<div class="line"><span class="comment"> * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN</span></div>
<div class="line"><span class="comment"> * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><span class="comment"> */</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// Post a status (/api/v1/status), then delete it (/api/v1/statuses/:id).</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#if __has_include(&quot;mastodonpp.hpp&quot;</span>)</div>
<div class="line"><span class="preprocessor"># include &quot;mastodonpp.hpp&quot;</span> <span class="comment">// We&#39;re building mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#else</span></div>
<div class="line"><span class="preprocessor"># include &lt;mastodonpp/mastodonpp.hpp&gt;</span> <span class="comment">// We&#39;re building outside mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#endif</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &lt;chrono&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;thread&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"> </div>
<div class="line"><span class="keyword">namespace </span>masto = <a class="code" href="namespacemastodonpp.html">mastodonpp</a>;</div>
<div class="line"><span class="keyword">using namespace </span>std::chrono_literals;</div>
<div class="line"><span class="keyword">using</span> std::cerr;</div>
<div class="line"><span class="keyword">using</span> std::cout;</div>
<div class="line"><span class="keyword">using</span> std::endl;</div>
<div class="line"><span class="keyword">using</span> std::string_view;</div>
<div class="line"><span class="keyword">using</span> std::to_string;</div>
<div class="line"><span class="keyword">using</span> std::vector;</div>
<div class="line"><span class="keyword">using</span> std::this_thread::sleep_for;</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])</div>
<div class="line">{</div>
<div class="line"> <span class="keyword">const</span> vector&lt;string_view&gt; args(argv, argv + argc);</div>
<div class="line"> <span class="keywordflow">if</span> (args.size() &lt;= 2)</div>
<div class="line"> {</div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;Usage: &quot;</span> &lt;&lt; args[0] &lt;&lt; <span class="stringliteral">&quot; &lt;instance hostname&gt; &lt;access token&gt;\n&quot;</span>;</div>
<div class="line"> <span class="keywordflow">return</span> 1;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">try</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Initialize an Instance and a Connection.</span></div>
<div class="line"> masto::Instance instance{args[1], args[2]};</div>
<div class="line"> masto::Connection connection{instance};</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Post a status.</span></div>
<div class="line"> <span class="keyword">auto</span> answer{connection.post(masto::API::v1::statuses,</div>
<div class="line"> {{<span class="stringliteral">&quot;status&quot;</span>, <span class="stringliteral">&quot;Delete me.&quot;</span>}})};</div>
<div class="line"> <span class="keywordflow">if</span> (answer)</div>
<div class="line"> {</div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot;Successfully posted a status.\n&quot;</span>;</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Get the ID of the post.</span></div>
<div class="line"> <span class="comment">// You normally would use a JSON parser, of course. I don&#39;t use one</span></div>
<div class="line"> <span class="comment">// because I don&#39;t want to add a dependency just for an example.</span></div>
<div class="line"> <span class="keyword">const</span> <span class="keyword">auto</span> pos{answer.body.rfind(R<span class="stringliteral">&quot;(&quot;id&quot;:&quot;)&quot;) + 6};</span></div>
<div class="line"><span class="stringliteral"> </span><span class="keyword">const</span> <span class="keyword">auto</span> endpos{answer.body.find(R<span class="stringliteral">&quot;(&quot;,)&quot;, pos)};</span></div>
<div class="line"><span class="stringliteral"> </span><span class="keyword">const</span> <span class="keyword">auto</span> <span class="keywordtype">id</span>{answer.body.substr(pos, endpos - pos)};</div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot;Post has ID: &quot;</span> &lt;&lt; <span class="keywordtype">id</span> &lt;&lt; endl;</div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot;Waiting 10 seconds…\n&quot;</span>;</div>
<div class="line"> sleep_for(10s);</div>
<div class="line"> </div>
<div class="line"> answer = connection.del(masto::API::v1::statuses_id, {{<span class="stringliteral">&quot;id&quot;</span>, <span class="keywordtype">id</span>}});</div>
<div class="line"> <span class="keywordflow">if</span> (answer)</div>
<div class="line"> {</div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot;Successfully deleted the status.\n&quot;</span>;</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="keywordflow">if</span> (answer.curl_error_code == 0)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// If it is no libcurl error, it must be an HTTP error.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;HTTP status: &quot;</span> &lt;&lt; answer.http_status &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Network errors like “Couldn&#39;t resolve host.”.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;libcurl error &quot;</span> &lt;&lt; to_string(answer.curl_error_code)</div>
<div class="line"> &lt;&lt; <span class="stringliteral">&quot;: &quot;</span> &lt;&lt; answer.error_message &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">catch</span> (<span class="keyword">const</span> masto::CURLException &amp;e)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Only libcurl errors that are not network errors will be thrown.</span></div>
<div class="line"> <span class="comment">// There went probably something wrong with the initialization.</span></div>
<div class="line"> cerr &lt;&lt; e.what() &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">return</span> 0;</div>
<div class="line">}</div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
</div><!-- fragment --> </div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: example08_obtain_token.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -67,12 +67,128 @@ $(function() {
<div class="title">example08_obtain_token.cpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"></div><!-- fragment --> </div><!-- contents -->
<div class="fragment"><div class="line"><span class="comment">/* This file is part of mastodonpp.</span></div>
<div class="line"><span class="comment"> * Copyright © 2020 tastytea &lt;tastytea@tastytea.de&gt;</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><span class="comment"> * purpose with or without fee is hereby granted.</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><span class="comment"> * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><span class="comment"> * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY</span></div>
<div class="line"><span class="comment"> * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><span class="comment"> * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION</span></div>
<div class="line"><span class="comment"> * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN</span></div>
<div class="line"><span class="comment"> * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><span class="comment"> */</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// Obtain an access token and verify that it works.</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#if __has_include(&quot;mastodonpp.hpp&quot;</span>)</div>
<div class="line"><span class="preprocessor"># include &quot;mastodonpp.hpp&quot;</span> <span class="comment">// We&#39;re building mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#else</span></div>
<div class="line"><span class="preprocessor"># include &lt;mastodonpp/mastodonpp.hpp&gt;</span> <span class="comment">// We&#39;re building outside mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#endif</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &lt;cstdlib&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"> </div>
<div class="line"><span class="keyword">namespace </span>masto = <a class="code" href="namespacemastodonpp.html">mastodonpp</a>;</div>
<div class="line"><span class="keyword">using</span> std::cerr;</div>
<div class="line"><span class="keyword">using</span> std::cin;</div>
<div class="line"><span class="keyword">using</span> std::cout;</div>
<div class="line"><span class="keyword">using</span> std::endl;</div>
<div class="line"><span class="keyword">using</span> std::exit;</div>
<div class="line"><span class="keyword">using</span> std::string;</div>
<div class="line"><span class="keyword">using</span> std::string_view;</div>
<div class="line"><span class="keyword">using</span> std::to_string;</div>
<div class="line"><span class="keyword">using</span> std::vector;</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">void</span> handle_error(<span class="keyword">const</span> masto::answer_type &amp;answer);</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])</div>
<div class="line">{</div>
<div class="line"> <span class="keyword">const</span> vector&lt;string_view&gt; args(argv, argv + argc);</div>
<div class="line"> <span class="keywordflow">if</span> (args.size() &lt;= 1)</div>
<div class="line"> {</div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;Usage: &quot;</span> &lt;&lt; args[0] &lt;&lt; <span class="stringliteral">&quot; &lt;instance hostname&gt;\n&quot;</span>;</div>
<div class="line"> <span class="keywordflow">return</span> 1;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">try</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Initialize Instance and Instance::ObtainToken.</span></div>
<div class="line"> masto::Instance instance{args[1], {}};</div>
<div class="line"> masto::Instance::ObtainToken token{instance};</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Create an “Application” (/api/v1/apps),</span></div>
<div class="line"> <span class="comment">// and get URI for the authorization code (/oauth/authorize).</span></div>
<div class="line"> <span class="comment">// NOTE: Mastodon only needs read:accounts for verify_credentials but</span></div>
<div class="line"> <span class="comment">// Pleroma needs the full read scope.</span></div>
<div class="line"> <span class="keyword">auto</span> answer{token.step_1(<span class="stringliteral">&quot;Testclient&quot;</span>, <span class="stringliteral">&quot;read write:favourites&quot;</span>,</div>
<div class="line"> <span class="stringliteral">&quot;https://example.com/&quot;</span>)};</div>
<div class="line"> <span class="keywordflow">if</span> (!answer)</div>
<div class="line"> {</div>
<div class="line"> handle_error(answer);</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot;Please visit &quot;</span> &lt;&lt; answer &lt;&lt; <span class="stringliteral">&quot;\nand paste the code here: &quot;</span>;</div>
<div class="line"> <span class="keywordtype">string</span> code;</div>
<div class="line"> cin &gt;&gt; code;</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Obtain the token (/oauth/token).</span></div>
<div class="line"> answer = token.step_2(code);</div>
<div class="line"> <span class="keywordflow">if</span> (!answer)</div>
<div class="line"> {</div>
<div class="line"> handle_error(answer);</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot;Your access token is: &quot;</span> &lt;&lt; answer &lt;&lt; endl;</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Test if the token works.</span></div>
<div class="line"> masto::Connection connection{instance};</div>
<div class="line"> answer = connection.get(masto::API::v1::apps_verify_credentials);</div>
<div class="line"> <span class="keywordflow">if</span> (!answer)</div>
<div class="line"> {</div>
<div class="line"> handle_error(answer);</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> cout &lt;&lt; answer &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">catch</span> (<span class="keyword">const</span> masto::CURLException &amp;e)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Only libcurl errors that are not network errors will be thrown.</span></div>
<div class="line"> <span class="comment">// There went probably something wrong with the initialization.</span></div>
<div class="line"> cerr &lt;&lt; e.what() &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">return</span> 0;</div>
<div class="line">}</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">void</span> handle_error(<span class="keyword">const</span> masto::answer_type &amp;answer)</div>
<div class="line">{</div>
<div class="line"> <span class="keywordflow">if</span> (answer.curl_error_code == 0)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// If it is no libcurl error, it must be an HTTP error.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;HTTP status: &quot;</span> &lt;&lt; answer.http_status &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Network errors like “Couldn&#39;t resolve host.”.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;libcurl error &quot;</span> &lt;&lt; to_string(answer.curl_error_code) &lt;&lt; <span class="stringliteral">&quot;: &quot;</span></div>
<div class="line"> &lt;&lt; answer.error_message &lt;&lt; endl;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> exit(1);</div>
<div class="line">}</div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
</div><!-- fragment --> </div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: example09_nlohmann_json.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -67,12 +67,156 @@ $(function() {
<div class="title">example09_nlohmann_json.cpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"></div><!-- fragment --> </div><!-- contents -->
<div class="fragment"><div class="line"><span class="comment">/* This file is part of mastodonpp.</span></div>
<div class="line"><span class="comment"> * Copyright © 2020 tastytea &lt;tastytea@tastytea.de&gt;</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * Permission to use, copy, modify, and/or distribute this software for any</span></div>
<div class="line"><span class="comment"> * purpose with or without fee is hereby granted.</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><span class="comment"> * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
<div class="line"><span class="comment"> * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY</span></div>
<div class="line"><span class="comment"> * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
<div class="line"><span class="comment"> * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION</span></div>
<div class="line"><span class="comment"> * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN</span></div>
<div class="line"><span class="comment"> * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
<div class="line"><span class="comment"> */</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// Get the last 4 public statuses of an instance and process them with</span></div>
<div class="line"><span class="comment">// nlohmann-json. &lt;https://github.com/nlohmann/json&gt;</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#if __has_include(&quot;mastodonpp.hpp&quot;</span>)</div>
<div class="line"><span class="preprocessor"># include &quot;mastodonpp.hpp&quot;</span> <span class="comment">// We&#39;re building mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#else</span></div>
<div class="line"><span class="preprocessor"># include &lt;mastodonpp/mastodonpp.hpp&gt;</span> <span class="comment">// We&#39;re building outside mastodonpp.</span></div>
<div class="line"><span class="preprocessor">#endif</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// Don&#39;t compile if nlohmann-json can&#39;t be found.</span></div>
<div class="line"><span class="preprocessor">#if __has_include(&lt;nlohmann/json.hpp&gt;)</span></div>
<div class="line"><span class="preprocessor"># include &lt;nlohmann/json.hpp&gt;</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor"># include &lt;cstdlib&gt;</span></div>
<div class="line"><span class="preprocessor"># include &lt;iostream&gt;</span></div>
<div class="line"><span class="preprocessor"># include &lt;string&gt;</span></div>
<div class="line"><span class="preprocessor"># include &lt;string_view&gt;</span></div>
<div class="line"><span class="preprocessor"># include &lt;vector&gt;</span></div>
<div class="line"> </div>
<div class="line"><span class="keyword">namespace </span>masto = <a class="code" href="namespacemastodonpp.html">mastodonpp</a>;</div>
<div class="line"><span class="keyword">using</span> json = nlohmann::json;</div>
<div class="line"><span class="keyword">using</span> std::cerr;</div>
<div class="line"><span class="keyword">using</span> std::cout;</div>
<div class="line"><span class="keyword">using</span> std::exit;</div>
<div class="line"><span class="keyword">using</span> std::string_view;</div>
<div class="line"><span class="keyword">using</span> std::to_string;</div>
<div class="line"><span class="keyword">using</span> std::vector;</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">void</span> handle_error(<span class="keyword">const</span> masto::answer_type &amp;answer);</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])</div>
<div class="line">{</div>
<div class="line"> <span class="keyword">const</span> vector&lt;string_view&gt; args(argv, argv + argc);</div>
<div class="line"> <span class="keywordflow">if</span> (args.size() &lt;= 1)</div>
<div class="line"> {</div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;Usage: &quot;</span> &lt;&lt; args[0] &lt;&lt; <span class="stringliteral">&quot; &lt;instance hostname&gt;\n&quot;</span>;</div>
<div class="line"> <span class="keywordflow">return</span> 1;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">try</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Initialize Instance and Connection.</span></div>
<div class="line"> masto::Instance instance{args[1], {}};</div>
<div class="line"> masto::Connection connection{instance};</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Get the last 4 public statuses of the instance.</span></div>
<div class="line"> <span class="keyword">auto</span> answer{connection.get(masto::API::v1::timelines_public,</div>
<div class="line"> {{<span class="stringliteral">&quot;limit&quot;</span>, <span class="stringliteral">&quot;4&quot;</span>}, {<span class="stringliteral">&quot;local&quot;</span>, <span class="stringliteral">&quot;true&quot;</span>}})};</div>
<div class="line"> <span class="keywordflow">if</span> (answer)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Parse JSON string.</span></div>
<div class="line"> <span class="keyword">auto</span> statuses{json::parse(answer.body)};</div>
<div class="line"> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span> &amp;status : statuses)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Extract the info we want and print it.</span></div>
<div class="line"> <span class="keyword">const</span> <span class="keyword">auto</span> acct{status[<span class="stringliteral">&quot;account&quot;</span>][<span class="stringliteral">&quot;acct&quot;</span>].get&lt;string_view&gt;()};</div>
<div class="line"> <span class="keyword">const</span> <span class="keyword">auto</span> content{status[<span class="stringliteral">&quot;content&quot;</span>].get&lt;string_view&gt;()};</div>
<div class="line"> <span class="keyword">const</span> <span class="keyword">auto</span> <span class="keywordtype">id</span>{status[<span class="stringliteral">&quot;id&quot;</span>].get&lt;string_view&gt;()};</div>
<div class="line"> cout &lt;&lt; acct &lt;&lt; <span class="stringliteral">&quot; wrote status &quot;</span> &lt;&lt; <span class="keywordtype">id</span> &lt;&lt; <span class="stringliteral">&quot;: \n&quot;</span>;</div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; content.substr(0, 76) &lt;&lt; <span class="stringliteral">&quot; …\n&quot;</span>;</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Print tags if there are any.</span></div>
<div class="line"> <span class="keyword">const</span> <span class="keyword">auto</span> tags{status[<span class="stringliteral">&quot;tags&quot;</span>]};</div>
<div class="line"> <span class="keywordflow">if</span> (!tags.empty())</div>
<div class="line"> {</div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot; Tags: &quot;</span>;</div>
<div class="line"> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span> &amp;tag : tags)</div>
<div class="line"> {</div>
<div class="line"> cout &lt;&lt; <span class="charliteral">&#39;#&#39;</span> &lt;&lt; tag[<span class="stringliteral">&quot;name&quot;</span>].get&lt;string_view&gt;() &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div>
<div class="line"> }</div>
<div class="line"> cout &lt;&lt; <span class="charliteral">&#39;\n&#39;</span>;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Print the number of attachments.</span></div>
<div class="line"> <span class="keyword">const</span> <span class="keyword">auto</span> n_attachments{status[<span class="stringliteral">&quot;media_attachments&quot;</span>].size()};</div>
<div class="line"> <span class="keywordflow">if</span> (n_attachments &gt; 0)</div>
<div class="line"> {</div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; n_attachments &lt;&lt; <span class="stringliteral">&quot; attachment&quot;</span>;</div>
<div class="line"> <span class="keywordflow">if</span> (n_attachments &gt; 1)</div>
<div class="line"> {</div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot;s&quot;</span>;</div>
<div class="line"> }</div>
<div class="line"> cout &lt;&lt; <span class="stringliteral">&quot;.\n&quot;</span>;</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> handle_error(answer);</div>
<div class="line"> }</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">catch</span> (<span class="keyword">const</span> masto::CURLException &amp;e)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Only libcurl errors that are not network errors will be thrown.</span></div>
<div class="line"> <span class="comment">// There went probably something wrong with the initialization.</span></div>
<div class="line"> cerr &lt;&lt; e.what() &lt;&lt; <span class="charliteral">&#39;\n&#39;</span>;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">catch</span> (<span class="keyword">const</span> nlohmann::detail::exception &amp;e)</div>
<div class="line"> {</div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;JSON exception: &quot;</span> &lt;&lt; e.what() &lt;&lt; <span class="charliteral">&#39;\n&#39;</span>;</div>
<div class="line"> }</div>
<div class="line">}</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">void</span> handle_error(<span class="keyword">const</span> masto::answer_type &amp;answer)</div>
<div class="line">{</div>
<div class="line"> <span class="keywordflow">if</span> (answer.curl_error_code == 0)</div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// If it is no libcurl error, it must be an HTTP error.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;HTTP status: &quot;</span> &lt;&lt; answer.http_status &lt;&lt; <span class="charliteral">&#39;\n&#39;</span>;</div>
<div class="line"> }</div>
<div class="line"> <span class="keywordflow">else</span></div>
<div class="line"> {</div>
<div class="line"> <span class="comment">// Network errors like “Couldn&#39;t resolve host.”.</span></div>
<div class="line"> cerr &lt;&lt; <span class="stringliteral">&quot;libcurl error &quot;</span> &lt;&lt; to_string(answer.curl_error_code) &lt;&lt; <span class="stringliteral">&quot;: &quot;</span></div>
<div class="line"> &lt;&lt; answer.error_message &lt;&lt; <span class="charliteral">&#39;\n&#39;</span>;</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> exit(1);</div>
<div class="line">}</div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#else</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor"># include &lt;iostream&gt;</span></div>
<div class="line"><span class="keywordtype">int</span> main()</div>
<div class="line">{</div>
<div class="line"> std::cout &lt;&lt; <span class="stringliteral">&quot;Example could not be compiled &quot;</span></div>
<div class="line"> <span class="stringliteral">&quot;because nlohmann-json was not found.\n&quot;</span>;</div>
<div class="line">}</div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#endif </span><span class="comment">// __has_include(&lt;nlohmann/json.hpp&gt;)</span></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
</div><!-- fragment --> </div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Examples</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -90,9 +90,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: include/exceptions.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -124,18 +124,16 @@ $(function() {
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;} <span class="comment">// namespace mastodonpp</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;<span class="preprocessor">#endif // MASTODONPP_EXCEPTIONS_HPP</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// MASTODONPP_EXCEPTIONS_HPP</span></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLException_html"><div class="ttname"><a href="classmastodonpp_1_1CURLException.html">mastodonpp::CURLException</a></div><div class="ttdoc">Exception for libcurl errors.</div><div class="ttdef"><b>Definition:</b> exceptions.hpp:41</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLException_html_a91eedb1a1d70015afdb4645d87d10e72"><div class="ttname"><a href="classmastodonpp_1_1CURLException.html#a91eedb1a1d70015afdb4645d87d10e72">mastodonpp::CURLException::error_code</a></div><div class="ttdeci">const CURLcode error_code</div><div class="ttdoc">The error code returned by libcurl.</div><div class="ttdef"><b>Definition:</b> exceptions.hpp:73</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLException_html"><div class="ttname"><a href="classmastodonpp_1_1CURLException.html">mastodonpp::CURLException</a></div><div class="ttdoc">Exception for libcurl errors.</div><div class="ttdef"><b>Definition:</b> exceptions.hpp:40</div></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:24</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLException_html_aa5d6aaec95758bc7db42ef1ee8831ecc"><div class="ttname"><a href="classmastodonpp_1_1CURLException.html#aa5d6aaec95758bc7db42ef1ee8831ecc">mastodonpp::CURLException::what</a></div><div class="ttdeci">const char * what() const noexcept override</div><div class="ttdoc">Returns the error code, message and error buffer.</div><div class="ttdef"><b>Definition:</b> exceptions.cpp:44</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLException_html_af43d29b726eceb3f80a71cdd7c3d55d4"><div class="ttname"><a href="classmastodonpp_1_1CURLException.html#af43d29b726eceb3f80a71cdd7c3d55d4">mastodonpp::CURLException::CURLException</a></div><div class="ttdeci">CURLException(const CURLcode &amp;error, string message)</div><div class="ttdoc">Constructor with error code and message.</div><div class="ttdef"><b>Definition:</b> exceptions.cpp:27</div></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: File List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -85,9 +85,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Class Members</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -92,7 +92,7 @@ $(function() {
, <a class="el" href="classmastodonpp_1_1CURLWrapper.html#a892a4fc3d048798fa8e2584545b91861">mastodonpp::CURLWrapper</a>
</li>
<li>Connection()
: <a class="el" href="classmastodonpp_1_1Connection.html#aa1273c61748ddf364c1cdc28ac9b0a6f">mastodonpp::Connection</a>
: <a class="el" href="classmastodonpp_1_1Connection.html#ae6fc153679431f14ee98778bbc477cda">mastodonpp::Connection</a>
</li>
<li>copy_connection_properties()
: <a class="el" href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac">mastodonpp::Instance</a>
@ -114,7 +114,7 @@ $(function() {
: <a class="el" href="structmastodonpp_1_1event__type.html#af72ad0a57a762c57f0d4e5d650c5d65c">mastodonpp::event_type</a>
</li>
<li>del()
: <a class="el" href="classmastodonpp_1_1Connection.html#a2e89f60fdf4096ff8c8251e61ab59d13">mastodonpp::Connection</a>
: <a class="el" href="classmastodonpp_1_1Connection.html#a095f752558410fab3dee6782e03a0fdb">mastodonpp::Connection</a>
</li>
</ul>
@ -224,7 +224,7 @@ $(function() {
</li>
<li>operator=()
: <a class="el" href="classmastodonpp_1_1Connection.html#a9a3dc7a5015b05ffd5c8dc9be7bc2b5d">mastodonpp::Connection</a>
, <a class="el" href="classmastodonpp_1_1CURLWrapper.html#a506cb49c00a63ef4b9d51d0d52c203dc">mastodonpp::CURLWrapper</a>
, <a class="el" href="classmastodonpp_1_1CURLWrapper.html#a5f29b7f4d0b58f70bc96f362cdaa4d0a">mastodonpp::CURLWrapper</a>
, <a class="el" href="classmastodonpp_1_1Instance.html#a87f44b0dd1fb1b2daebde560847e9da7">mastodonpp::Instance</a>
</li>
<li>other
@ -247,7 +247,7 @@ $(function() {
: <a class="el" href="structmastodonpp_1_1answer__type.html#a54baac6518a4178062d6963661ba50e9">mastodonpp::answer_type</a>
</li>
<li>put()
: <a class="el" href="classmastodonpp_1_1Connection.html#ad05ff1b33460bfedf0b46f4e5e755399">mastodonpp::Connection</a>
: <a class="el" href="classmastodonpp_1_1Connection.html#ac5afc2e5d419c8bee3a8994ce0a940aa">mastodonpp::Connection</a>
</li>
</ul>
@ -329,9 +329,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Class Members - Enumerations</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -83,9 +83,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Class Members - Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -87,7 +87,7 @@ $(function() {
: <a class="el" href="classmastodonpp_1_1CURLException.html#af43d29b726eceb3f80a71cdd7c3d55d4">mastodonpp::CURLException</a>
</li>
<li>CURLWrapper()
: <a class="el" href="classmastodonpp_1_1CURLWrapper.html#a4d79b9a4525ac4b4b8954ccc794af0f9">mastodonpp::CURLWrapper</a>
: <a class="el" href="classmastodonpp_1_1CURLWrapper.html#a736572303fbec7a307514e611e6a468c">mastodonpp::CURLWrapper</a>
</li>
</ul>
@ -179,8 +179,8 @@ $(function() {
</li>
<li>operator=()
: <a class="el" href="classmastodonpp_1_1Connection.html#a9a3dc7a5015b05ffd5c8dc9be7bc2b5d">mastodonpp::Connection</a>
, <a class="el" href="classmastodonpp_1_1CURLWrapper.html#a506cb49c00a63ef4b9d51d0d52c203dc">mastodonpp::CURLWrapper</a>
, <a class="el" href="classmastodonpp_1_1Instance.html#af7202e8b775dee75acbccb4cc569a14e">mastodonpp::Instance</a>
, <a class="el" href="classmastodonpp_1_1CURLWrapper.html#a5f29b7f4d0b58f70bc96f362cdaa4d0a">mastodonpp::CURLWrapper</a>
, <a class="el" href="classmastodonpp_1_1Instance.html#a87f44b0dd1fb1b2daebde560847e9da7">mastodonpp::Instance</a>
</li>
</ul>
@ -190,7 +190,7 @@ $(function() {
: <a class="el" href="classmastodonpp_1_1Connection.html#a10f838c74d2ccc83f64f29e2aad2f157">mastodonpp::Connection</a>
</li>
<li>post()
: <a class="el" href="classmastodonpp_1_1Connection.html#af27eb5d94f5a0e39a703988fdcc54173">mastodonpp::Connection</a>
: <a class="el" href="classmastodonpp_1_1Connection.html#ad7cebeeef7c285ff4666dc6850f20164">mastodonpp::Connection</a>
</li>
<li>prev()
: <a class="el" href="structmastodonpp_1_1answer__type.html#a54baac6518a4178062d6963661ba50e9">mastodonpp::answer_type</a>
@ -265,9 +265,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Class Members - Related Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -71,9 +71,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Class Members - Typedefs</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -71,9 +71,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Class Members - Variables</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -95,9 +95,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Graph Legend</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -130,9 +130,7 @@ A yellow dashed arrow denotes a relation between a template instance and the tem
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: include/helpers.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -103,15 +103,13 @@ $(function() {
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;} <span class="comment">// namespace mastodonpp</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="preprocessor">#endif // MASTODONPP_HELPERS_HPP</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// MASTODONPP_HELPERS_HPP</span></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
<div class="ttc" id="anamespacemastodonpp_html_a4e42b93c60074920fb731ab6ba797935"><div class="ttname"><a href="namespacemastodonpp.html#a4e42b93c60074920fb731ab6ba797935">mastodonpp::unescape_html</a></div><div class="ttdeci">string unescape_html(string html)</div><div class="ttdoc">Replaces HTML entities with UTF-8 characters.</div><div class="ttdef"><b>Definition:</b> helpers.cpp:39</div></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:24</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Class Hierarchy</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -85,9 +85,7 @@ This inheritance list is sorted roughly, but not completely, alphabetically:</di
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: mastodonpp Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -74,6 +74,7 @@ Using the library</h1>
</div><!-- fragment --><p>Use it in your CMake project like this:</p>
<div class="fragment"><div class="line">find_package(<a class="code" href="namespacemastodonpp.html">mastodonpp</a> REQUIRED CONFIG)</div>
<div class="line">target_link_libraries(MyProject mastodonpp::mastodonpp)</div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
</div><!-- fragment --><p>Or compile your code with <code>g++ $(pkg-config --cflags --libs mastodonpp)</code>.</p>
<p>Since we use C++17 features in the headers of this library, your program needs to be compiled as C++17 or higher too.</p>
<h2><a class="anchor" id="example"></a>
@ -95,6 +96,10 @@ Example</h2>
<div class="line"> std::cout &lt;&lt; answer &lt;&lt; std::endl;</div>
<div class="line"> }</div>
<div class="line">}</div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html"><div class="ttname"><a href="classmastodonpp_1_1Connection.html">mastodonpp::Connection</a></div><div class="ttdoc">Represents a connection to an instance. Used for requests.</div><div class="ttdef"><b>Definition:</b> connection.hpp:79</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ade24a99769313ee15c406d97e9543cba"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ade24a99769313ee15c406d97e9543cba">mastodonpp::Connection::get</a></div><div class="ttdeci">answer_type get(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP GET call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:34</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html"><div class="ttname"><a href="classmastodonpp_1_1Instance.html">mastodonpp::Instance</a></div><div class="ttdoc">Holds the access data of an instance.</div><div class="ttdef"><b>Definition:</b> instance.hpp:49</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a3d9f535570e6083b7f37b3c5e42c08dd"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a3d9f535570e6083b7f37b3c5e42c08dd">mastodonpp::Instance::get_max_chars</a></div><div class="ttdeci">uint64_t get_max_chars() noexcept</div><div class="ttdoc">Returns the maximum number of characters per post.</div></div>
</div><!-- fragment --><h2><a class="anchor" id="input"></a>
Input</h2>
<ul>
@ -111,16 +116,9 @@ Thread safety</h1>
<p>If you are using libcurl with OpenSSL before 1.1.0, please read <a href="https://curl.haxx.se/libcurl/c/threadsafe.html">libcurl-thread(3)</a>. </p>
</div></div><!-- PageDoc -->
</div><!-- contents -->
<div class="ttc" id="aclassmastodonpp_1_1Connection_html_ade24a99769313ee15c406d97e9543cba"><div class="ttname"><a href="classmastodonpp_1_1Connection.html#ade24a99769313ee15c406d97e9543cba">mastodonpp::Connection::get</a></div><div class="ttdeci">answer_type get(const endpoint_variant &amp;endpoint, const parametermap &amp;parameters)</div><div class="ttdoc">Make a HTTP GET call with parameters.</div><div class="ttdef"><b>Definition:</b> connection.cpp:34</div></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:24</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a3d9f535570e6083b7f37b3c5e42c08dd"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a3d9f535570e6083b7f37b3c5e42c08dd">mastodonpp::Instance::get_max_chars</a></div><div class="ttdeci">uint64_t get_max_chars() noexcept</div><div class="ttdoc">Returns the maximum number of characters per post.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html"><div class="ttname"><a href="classmastodonpp_1_1Instance.html">mastodonpp::Instance</a></div><div class="ttdoc">Holds the access data of an instance.</div><div class="ttdef"><b>Definition:</b> instance.hpp:48</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Connection_html"><div class="ttname"><a href="classmastodonpp_1_1Connection.html">mastodonpp::Connection</a></div><div class="ttdoc">Represents a connection to an instance. Used for requests.</div><div class="ttdef"><b>Definition:</b> connection.hpp:78</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -1,4 +1,4 @@
<map id="Graphical Class Hierarchy" name="Graphical Class Hierarchy">
<area shape="rect" id="node1" title="STL class." alt="" coords="5,5,109,32"/>
<area shape="rect" id="node1" title=" " alt="" coords="5,5,109,32"/>
<area shape="rect" id="node2" href="$classmastodonpp_1_1CURLException.html" title="Exception for libcurl errors." alt="" coords="157,5,353,32"/>
</map>

View File

@ -1 +1 @@
9dc0c717c0dc9fac3a43f45b20b0575f
0f0b04a3185415501f72d0100e0d049d

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Class Hierarchy</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -70,32 +70,32 @@ $(function() {
<div class="textblock">
<p><a href="hierarchy.html">Go to the textual class hierarchy</a></p>
</div><table border="0" cellspacing="10" cellpadding="0">
<tr><td><img src="inherit_graph_0.png" border="0" usemap="#mastodonpp_1_1answer__type" alt=""/>
<map name="mastodonpp_1_1answer__type" id="mastodonpp_1_1answer__type">
<tr><td><img src="inherit_graph_0.png" border="0" usemap="#amastodonpp_1_1answer__type" alt=""/>
<map name="amastodonpp_1_1answer__type" id="amastodonpp_1_1answer__type">
<area shape="rect" href="structmastodonpp_1_1answer__type.html" title="Return type for Requests." alt="" coords="5,5,180,32"/>
</map>
</td></tr>
<tr><td><img src="inherit_graph_1.png" border="0" usemap="#mastodonpp_1_1API" alt=""/>
<map name="mastodonpp_1_1API" id="mastodonpp_1_1API">
<tr><td><img src="inherit_graph_1.png" border="0" usemap="#amastodonpp_1_1API" alt=""/>
<map name="amastodonpp_1_1API" id="amastodonpp_1_1API">
<area shape="rect" href="classmastodonpp_1_1API.html" title="Holds API endpoints." alt="" coords="5,5,128,32"/>
</map>
</td></tr>
<tr><td><img src="inherit_graph_2.png" border="0" usemap="#mastodonpp_1_1CURLException" alt=""/>
<map name="mastodonpp_1_1CURLException" id="mastodonpp_1_1CURLException">
<area shape="rect" title="STL class." alt="" coords="5,5,109,32"/>
<tr><td><img src="inherit_graph_2.png" border="0" usemap="#amastodonpp_1_1CURLException" alt=""/>
<map name="amastodonpp_1_1CURLException" id="amastodonpp_1_1CURLException">
<area shape="rect" title=" " alt="" coords="5,5,109,32"/>
<area shape="rect" href="classmastodonpp_1_1CURLException.html" title="Exception for libcurl errors." alt="" coords="157,5,353,32"/>
</map>
</td></tr>
<tr><td><img src="inherit_graph_3.png" border="0" usemap="#mastodonpp_1_1CURLWrapper" alt=""/>
<map name="mastodonpp_1_1CURLWrapper" id="mastodonpp_1_1CURLWrapper">
<tr><td><img src="inherit_graph_3.png" border="0" usemap="#amastodonpp_1_1CURLWrapper" alt=""/>
<map name="amastodonpp_1_1CURLWrapper" id="amastodonpp_1_1CURLWrapper">
<area shape="rect" href="classmastodonpp_1_1CURLWrapper.html" title="Handles the details of network connections." alt="" coords="5,56,192,83"/>
<area shape="rect" href="classmastodonpp_1_1Connection.html" title="Represents a connection to an instance. Used for requests." alt="" coords="240,5,407,32"/>
<area shape="rect" href="classmastodonpp_1_1Instance.html" title="Holds the access data of an instance." alt="" coords="248,56,399,83"/>
<area shape="rect" href="classmastodonpp_1_1Instance_1_1ObtainToken.html" title="Simplifies obtaining an OAuth 2.0 Bearer Access Token." alt="" coords="248,107,399,149"/>
</map>
</td></tr>
<tr><td><img src="inherit_graph_4.png" border="0" usemap="#mastodonpp_1_1event__type" alt=""/>
<map name="mastodonpp_1_1event__type" id="mastodonpp_1_1event__type">
<tr><td><img src="inherit_graph_4.png" border="0" usemap="#amastodonpp_1_1event__type" alt=""/>
<map name="amastodonpp_1_1event__type" id="amastodonpp_1_1event__type">
<area shape="rect" href="structmastodonpp_1_1event__type.html" title="A stream event." alt="" coords="5,5,171,32"/>
</map>
</td></tr>
@ -103,9 +103,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: include/instance.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -110,21 +110,21 @@ $(function() {
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance.html"> 48</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> : <span class="keyword">public</span> <a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;{</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classmastodonpp_1_1Instance.html#a21b859e2b9b5c6f48e8d0a194a659888">Instance</a>(string_view hostname, string_view access_token);</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance.html#a21b859e2b9b5c6f48e8d0a194a659888"> 59</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="classmastodonpp_1_1Instance.html#a21b859e2b9b5c6f48e8d0a194a659888">Instance</a>(string_view hostname, string_view access_token);</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <a class="code" href="classmastodonpp_1_1Instance.html#a21b859e2b9b5c6f48e8d0a194a659888">Instance</a>(<span class="keyword">const</span> <a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &amp;other);</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance.html#a14551e7c53caeaa32b6817ccafc6af0e"> 66</a></span>&#160; <a class="code" href="classmastodonpp_1_1Instance.html#a14551e7c53caeaa32b6817ccafc6af0e">Instance</a>(<span class="keyword">const</span> <a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &amp;other);</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <a class="code" href="classmastodonpp_1_1Instance.html#a21b859e2b9b5c6f48e8d0a194a659888">Instance</a>(<a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &amp;&amp;other) noexcept = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance.html#a827ebc5b43e1cba9b5b7eb4d5ebcd4bd"> 69</a></span>&#160; <a class="code" href="classmastodonpp_1_1Instance.html#a827ebc5b43e1cba9b5b7eb4d5ebcd4bd">Instance</a>(<a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &amp;&amp;other) noexcept = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <a class="code" href="classmastodonpp_1_1Instance.html#adec12eb92831f3530f55c507a33446be">~Instance</a>() noexcept <span class="keyword">override</span> = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance.html#adec12eb92831f3530f55c507a33446be"> 72</a></span>&#160; <a class="code" href="classmastodonpp_1_1Instance.html#adec12eb92831f3530f55c507a33446be">~Instance</a>() noexcept override = default;</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &amp;<a class="code" href="classmastodonpp_1_1Instance.html#a87f44b0dd1fb1b2daebde560847e9da7">operator=</a>(<span class="keyword">const</span> <a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &amp;other) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance.html#a87f44b0dd1fb1b2daebde560847e9da7"> 75</a></span>&#160; <a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &amp;operator=(const <a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &amp;other) = delete;</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &amp;<a class="code" href="classmastodonpp_1_1Instance.html#a87f44b0dd1fb1b2daebde560847e9da7">operator=</a>(<a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &amp;&amp;other) noexcept = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance.html#af7202e8b775dee75acbccb4cc569a14e"> 78</a></span>&#160; <a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &amp;operator=(<a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &amp;&amp;other) noexcept = delete;</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac"> 90</a></span>&#160; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac">copy_connection_properties</a>(<a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a> &amp;curlwrapper)<span class="keyword"> const</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac"> 90</a></span>&#160; inline <span class="keywordtype">void</span> <a class="code" href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac">copy_connection_properties</a>(<a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a> &amp;curlwrapper)<span class="keyword"> const</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; curlwrapper.<a class="code" href="classmastodonpp_1_1CURLWrapper.html#a0059ecb78b53c4b3c941b19f8dc897f7">setup_connection_properties</a>(_proxy, _access_token, _cainfo,</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; curlwrapper.setup_connection_properties(_proxy, _access_token, _cainfo,</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; _useragent);</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; }</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
@ -149,7 +149,7 @@ $(function() {
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html#a94aba6daedea376ccc20e5c983bd3358">CURLWrapper::set_access_token</a>(access_token);</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; }</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; </div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; [[nodiscard]] uint64_t <a class="code" href="classmastodonpp_1_1Instance.html#a3d9f535570e6083b7f37b3c5e42c08dd">get_max_chars</a>() noexcept;</div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance.html#a3d9f535570e6083b7f37b3c5e42c08dd"> 153</a></span>&#160; [[nodiscard]] uint64_t <a class="code" href="classmastodonpp_1_1Instance.html#a3d9f535570e6083b7f37b3c5e42c08dd">get_max_chars</a>() noexcept;</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; </div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance.html#ab329a0780a1f0581d4771cac4e958157"> 160</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmastodonpp_1_1Instance.html#ab329a0780a1f0581d4771cac4e958157">set_proxy</a>(const string_view proxy)<span class="keyword"> override</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;<span class="keyword"> </span>{</div>
@ -157,9 +157,9 @@ $(function() {
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <a class="code" href="classmastodonpp_1_1CURLWrapper.html#a1564a42794ef7a9d170b725063ef504d">CURLWrapper::set_proxy</a>(proxy);</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; }</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; [[nodiscard]] <a class="code" href="structmastodonpp_1_1answer__type.html">answer_type</a> <a class="code" href="classmastodonpp_1_1Instance.html#a4d594e1365584a05e5a16fc8aea76e9d">get_nodeinfo</a>();</div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance.html#a4d594e1365584a05e5a16fc8aea76e9d"> 175</a></span>&#160; [[nodiscard]] <a class="code" href="structmastodonpp_1_1answer__type.html">answer_type</a> <a class="code" href="classmastodonpp_1_1Instance.html#a4d594e1365584a05e5a16fc8aea76e9d">get_nodeinfo</a>();</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; </div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; vector&lt;string&gt; <a class="code" href="classmastodonpp_1_1Instance.html#a84b7e4ef6e05f7f7208b557c38b5ad1e">get_post_formats</a>() noexcept;</div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance.html#a84b7e4ef6e05f7f7208b557c38b5ad1e"> 188</a></span>&#160; vector&lt;string&gt; <a class="code" href="classmastodonpp_1_1Instance.html#a84b7e4ef6e05f7f7208b557c38b5ad1e">get_post_formats</a>() noexcept;</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance.html#a0601321fe7a8b22a42cf6e7d2d817b72"> 198</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmastodonpp_1_1Instance.html#a0601321fe7a8b22a42cf6e7d2d817b72">set_cainfo</a>(string_view path)<span class="keyword"> override</span></div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160;<span class="keyword"> </span>{</div>
@ -183,14 +183,14 @@ $(function() {
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; _instance.<a class="code" href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac">copy_connection_properties</a>(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; }</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; </div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; [[nodiscard]] answer_type <a class="code" href="classmastodonpp_1_1Instance_1_1ObtainToken.html#a5bd5d631e2fbb186a9df66d2ac3f5402">step_1</a>(string_view client_name,</div>
<div class="line"><a name="l00282"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance_1_1ObtainToken.html#a5bd5d631e2fbb186a9df66d2ac3f5402"> 282</a></span>&#160; [[nodiscard]] <a class="code" href="structmastodonpp_1_1answer__type.html">answer_type</a> <a class="code" href="classmastodonpp_1_1Instance_1_1ObtainToken.html#a5bd5d631e2fbb186a9df66d2ac3f5402">step_1</a>(string_view client_name,</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; string_view scopes,</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; string_view website);</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; </div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; [[nodiscard]] answer_type <a class="code" href="classmastodonpp_1_1Instance_1_1ObtainToken.html#addda7f4e1ca4200235764707478f6d51">step_2</a>(string_view code);</div>
<div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance_1_1ObtainToken.html#addda7f4e1ca4200235764707478f6d51"> 301</a></span>&#160; [[nodiscard]] <a class="code" href="structmastodonpp_1_1answer__type.html">answer_type</a> <a class="code" href="classmastodonpp_1_1Instance_1_1ObtainToken.html#addda7f4e1ca4200235764707478f6d51">step_2</a>(string_view code);</div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160; </div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; <a class="code" href="classmastodonpp_1_1Instance.html#a21b859e2b9b5c6f48e8d0a194a659888">Instance</a> &amp;_instance;</div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; <a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &amp;_instance;</div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160; <span class="keyword">const</span> <span class="keywordtype">string</span> _baseuri;</div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160; <span class="keywordtype">string</span> _scopes;</div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160; <span class="keywordtype">string</span> _client_id;</div>
@ -210,40 +210,38 @@ $(function() {
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160; </div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160;} <span class="comment">// namespace mastodonpp</span></div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160; </div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160;<span class="preprocessor">#endif // MASTODONPP_INSTANCE_HPP</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_adec12eb92831f3530f55c507a33446be"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#adec12eb92831f3530f55c507a33446be">mastodonpp::Instance::~Instance</a></div><div class="ttdeci">~Instance() noexcept override=default</div><div class="ttdoc">Destructor.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html">mastodonpp::Instance::ObtainToken</a></div><div class="ttdoc">Simplifies obtaining an OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> instance.hpp:248</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a921c4b83815c0d98dea983a9409c00ac"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac">mastodonpp::Instance::copy_connection_properties</a></div><div class="ttdeci">void copy_connection_properties(CURLWrapper &amp;curlwrapper) const</div><div class="ttdoc">Set the properties of the connection of the calling class up.</div><div class="ttdef"><b>Definition:</b> instance.hpp:90</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a4d594e1365584a05e5a16fc8aea76e9d"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a4d594e1365584a05e5a16fc8aea76e9d">mastodonpp::Instance::get_nodeinfo</a></div><div class="ttdeci">answer_type get_nodeinfo()</div><div class="ttdoc">Returns the NodeInfo of the instance.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a87f44b0dd1fb1b2daebde560847e9da7"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a87f44b0dd1fb1b2daebde560847e9da7">mastodonpp::Instance::operator=</a></div><div class="ttdeci">Instance &amp; operator=(const Instance &amp;other)=delete</div><div class="ttdoc">Copy assignment operator.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a868aae1fae3ad4060759c1325acb3b62"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a868aae1fae3ad4060759c1325acb3b62">mastodonpp::Instance::get_hostname</a></div><div class="ttdeci">string_view get_hostname() const noexcept</div><div class="ttdoc">Returns the hostname.</div><div class="ttdef"><b>Definition:</b> instance.hpp:101</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html_a5bd5d631e2fbb186a9df66d2ac3f5402"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html#a5bd5d631e2fbb186a9df66d2ac3f5402">mastodonpp::Instance::ObtainToken::step_1</a></div><div class="ttdeci">answer_type step_1(string_view client_name, string_view scopes, string_view website)</div><div class="ttdoc">Creates an application via /api/v1/apps.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a859540ec79ea97c0f76185d9036127bb"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a859540ec79ea97c0f76185d9036127bb">mastodonpp::Instance::get_baseuri</a></div><div class="ttdeci">string_view get_baseuri() const noexcept</div><div class="ttdoc">Returns the base URI.</div><div class="ttdef"><b>Definition:</b> instance.hpp:113</div></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:24</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html_addda7f4e1ca4200235764707478f6d51"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html#addda7f4e1ca4200235764707478f6d51">mastodonpp::Instance::ObtainToken::step_2</a></div><div class="ttdeci">answer_type step_2(string_view code)</div><div class="ttdoc">Creates a token via /oauth/token.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a0601321fe7a8b22a42cf6e7d2d817b72"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a0601321fe7a8b22a42cf6e7d2d817b72">mastodonpp::Instance::set_cainfo</a></div><div class="ttdeci">void set_cainfo(string_view path) override</div><div class="ttdoc">Set path to Certificate Authority (CA) bundle.</div><div class="ttdef"><b>Definition:</b> instance.hpp:198</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a21b859e2b9b5c6f48e8d0a194a659888"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a21b859e2b9b5c6f48e8d0a194a659888">mastodonpp::Instance::Instance</a></div><div class="ttdeci">Instance(string_view hostname, string_view access_token)</div><div class="ttdoc">Construct a new Instance object.</div></div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// MASTODONPP_INSTANCE_HPP</span></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html">mastodonpp::CURLWrapper</a></div><div class="ttdoc">Handles the details of network connections.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:58</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a1564a42794ef7a9d170b725063ef504d"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a1564a42794ef7a9d170b725063ef504d">mastodonpp::CURLWrapper::set_proxy</a></div><div class="ttdeci">virtual void set_proxy(string_view proxy)</div><div class="ttdoc">Set the proxy to use.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:229</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a84b7e4ef6e05f7f7208b557c38b5ad1e"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a84b7e4ef6e05f7f7208b557c38b5ad1e">mastodonpp::Instance::get_post_formats</a></div><div class="ttdeci">vector&lt; string &gt; get_post_formats() noexcept</div><div class="ttdoc">Returns the allowed mime types for statuses.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a3d9f535570e6083b7f37b3c5e42c08dd"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a3d9f535570e6083b7f37b3c5e42c08dd">mastodonpp::Instance::get_max_chars</a></div><div class="ttdeci">uint64_t get_max_chars() noexcept</div><div class="ttdoc">Returns the maximum number of characters per post.</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html">mastodonpp::answer_type</a></div><div class="ttdoc">Return type for Requests.</div><div class="ttdef"><b>Definition:</b> types.hpp:79</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_af3f2bd4dea7c289d590fe19889360444"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#af3f2bd4dea7c289d590fe19889360444">mastodonpp::CURLWrapper::set_cainfo</a></div><div class="ttdeci">virtual void set_cainfo(string_view path)</div><div class="ttdoc">Set path to Certificate Authority (CA) bundle.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:266</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html"><div class="ttname"><a href="classmastodonpp_1_1Instance.html">mastodonpp::Instance</a></div><div class="ttdoc">Holds the access data of an instance.</div><div class="ttdef"><b>Definition:</b> instance.hpp:48</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a3eb6b1a045ad465ec4fd3ad9febc244b"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a3eb6b1a045ad465ec4fd3ad9febc244b">mastodonpp::Instance::set_useragent</a></div><div class="ttdeci">void set_useragent(const string_view useragent) override</div><div class="ttdoc">Sets the User-Agent.</div><div class="ttdef"><b>Definition:</b> instance.hpp:212</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_ae3b1445f9b94b1f7677d3cac6d538612"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#ae3b1445f9b94b1f7677d3cac6d538612">mastodonpp::CURLWrapper::set_useragent</a></div><div class="ttdeci">virtual void set_useragent(string_view useragent)</div><div class="ttdoc">Sets the User-Agent.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:276</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html_aa834d9be223856e5711b0e14d9b92eed"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html#aa834d9be223856e5711b0e14d9b92eed">mastodonpp::Instance::ObtainToken::ObtainToken</a></div><div class="ttdeci">ObtainToken(Instance &amp;instance)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> instance.hpp:256</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html">mastodonpp::CURLWrapper</a></div><div class="ttdoc">Handles the details of network connections.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:57</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a3627363d1891a4cfd27f3a27437f4f2e"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a3627363d1891a4cfd27f3a27437f4f2e">mastodonpp::Instance::set_access_token</a></div><div class="ttdeci">void set_access_token(const string_view access_token)</div><div class="ttdoc">Set OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> instance.hpp:136</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a3fcd68515b1d07a4003bc09180fff904"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a3fcd68515b1d07a4003bc09180fff904">mastodonpp::Instance::get_access_token</a></div><div class="ttdeci">string_view get_access_token() const noexcept</div><div class="ttdoc">Returns the access token.</div><div class="ttdef"><b>Definition:</b> instance.hpp:123</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_ab329a0780a1f0581d4771cac4e958157"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#ab329a0780a1f0581d4771cac4e958157">mastodonpp::Instance::set_proxy</a></div><div class="ttdeci">void set_proxy(const string_view proxy) override</div><div class="ttdoc">Set the proxy to use.</div><div class="ttdef"><b>Definition:</b> instance.hpp:160</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a94aba6daedea376ccc20e5c983bd3358"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a94aba6daedea376ccc20e5c983bd3358">mastodonpp::CURLWrapper::set_access_token</a></div><div class="ttdeci">void set_access_token(string_view access_token)</div><div class="ttdoc">Set OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:240</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_a0059ecb78b53c4b3c941b19f8dc897f7"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#a0059ecb78b53c4b3c941b19f8dc897f7">mastodonpp::CURLWrapper::setup_connection_properties</a></div><div class="ttdeci">void setup_connection_properties(string_view proxy, string_view access_token, string_view cainfo, string_view useragent)</div><div class="ttdoc">Set some properties of the connection.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:203</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_ae3b1445f9b94b1f7677d3cac6d538612"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#ae3b1445f9b94b1f7677d3cac6d538612">mastodonpp::CURLWrapper::set_useragent</a></div><div class="ttdeci">virtual void set_useragent(string_view useragent)</div><div class="ttdoc">Sets the User-Agent.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:276</div></div>
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_af3f2bd4dea7c289d590fe19889360444"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#af3f2bd4dea7c289d590fe19889360444">mastodonpp::CURLWrapper::set_cainfo</a></div><div class="ttdeci">virtual void set_cainfo(string_view path)</div><div class="ttdoc">Set path to Certificate Authority (CA) bundle.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:266</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html">mastodonpp::Instance::ObtainToken</a></div><div class="ttdoc">Simplifies obtaining an OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> instance.hpp:249</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html_a5bd5d631e2fbb186a9df66d2ac3f5402"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html#a5bd5d631e2fbb186a9df66d2ac3f5402">mastodonpp::Instance::ObtainToken::step_1</a></div><div class="ttdeci">answer_type step_1(string_view client_name, string_view scopes, string_view website)</div><div class="ttdoc">Creates an application via /api/v1/apps.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html_aa834d9be223856e5711b0e14d9b92eed"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html#aa834d9be223856e5711b0e14d9b92eed">mastodonpp::Instance::ObtainToken::ObtainToken</a></div><div class="ttdeci">ObtainToken(Instance &amp;instance)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> instance.hpp:256</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html_addda7f4e1ca4200235764707478f6d51"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html#addda7f4e1ca4200235764707478f6d51">mastodonpp::Instance::ObtainToken::step_2</a></div><div class="ttdeci">answer_type step_2(string_view code)</div><div class="ttdoc">Creates a token via /oauth/token.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html"><div class="ttname"><a href="classmastodonpp_1_1Instance.html">mastodonpp::Instance</a></div><div class="ttdoc">Holds the access data of an instance.</div><div class="ttdef"><b>Definition:</b> instance.hpp:49</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a0601321fe7a8b22a42cf6e7d2d817b72"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a0601321fe7a8b22a42cf6e7d2d817b72">mastodonpp::Instance::set_cainfo</a></div><div class="ttdeci">void set_cainfo(string_view path) override</div><div class="ttdoc">Set path to Certificate Authority (CA) bundle.</div><div class="ttdef"><b>Definition:</b> instance.hpp:198</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a14551e7c53caeaa32b6817ccafc6af0e"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a14551e7c53caeaa32b6817ccafc6af0e">mastodonpp::Instance::Instance</a></div><div class="ttdeci">Instance(const Instance &amp;other)</div><div class="ttdoc">Copy constructor. A new CURLWrapper is constructed.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a21b859e2b9b5c6f48e8d0a194a659888"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a21b859e2b9b5c6f48e8d0a194a659888">mastodonpp::Instance::Instance</a></div><div class="ttdeci">Instance(string_view hostname, string_view access_token)</div><div class="ttdoc">Construct a new Instance object.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a3627363d1891a4cfd27f3a27437f4f2e"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a3627363d1891a4cfd27f3a27437f4f2e">mastodonpp::Instance::set_access_token</a></div><div class="ttdeci">void set_access_token(const string_view access_token)</div><div class="ttdoc">Set OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> instance.hpp:136</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a3d9f535570e6083b7f37b3c5e42c08dd"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a3d9f535570e6083b7f37b3c5e42c08dd">mastodonpp::Instance::get_max_chars</a></div><div class="ttdeci">uint64_t get_max_chars() noexcept</div><div class="ttdoc">Returns the maximum number of characters per post.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a3eb6b1a045ad465ec4fd3ad9febc244b"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a3eb6b1a045ad465ec4fd3ad9febc244b">mastodonpp::Instance::set_useragent</a></div><div class="ttdeci">void set_useragent(const string_view useragent) override</div><div class="ttdoc">Sets the User-Agent.</div><div class="ttdef"><b>Definition:</b> instance.hpp:212</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a3fcd68515b1d07a4003bc09180fff904"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a3fcd68515b1d07a4003bc09180fff904">mastodonpp::Instance::get_access_token</a></div><div class="ttdeci">string_view get_access_token() const noexcept</div><div class="ttdoc">Returns the access token.</div><div class="ttdef"><b>Definition:</b> instance.hpp:123</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a4d594e1365584a05e5a16fc8aea76e9d"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a4d594e1365584a05e5a16fc8aea76e9d">mastodonpp::Instance::get_nodeinfo</a></div><div class="ttdeci">answer_type get_nodeinfo()</div><div class="ttdoc">Returns the NodeInfo of the instance.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a827ebc5b43e1cba9b5b7eb4d5ebcd4bd"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a827ebc5b43e1cba9b5b7eb4d5ebcd4bd">mastodonpp::Instance::Instance</a></div><div class="ttdeci">Instance(Instance &amp;&amp;other) noexcept=delete</div><div class="ttdoc">Move constructor.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a84b7e4ef6e05f7f7208b557c38b5ad1e"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a84b7e4ef6e05f7f7208b557c38b5ad1e">mastodonpp::Instance::get_post_formats</a></div><div class="ttdeci">vector&lt; string &gt; get_post_formats() noexcept</div><div class="ttdoc">Returns the allowed mime types for statuses.</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a859540ec79ea97c0f76185d9036127bb"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a859540ec79ea97c0f76185d9036127bb">mastodonpp::Instance::get_baseuri</a></div><div class="ttdeci">string_view get_baseuri() const noexcept</div><div class="ttdoc">Returns the base URI.</div><div class="ttdef"><b>Definition:</b> instance.hpp:113</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a868aae1fae3ad4060759c1325acb3b62"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a868aae1fae3ad4060759c1325acb3b62">mastodonpp::Instance::get_hostname</a></div><div class="ttdeci">string_view get_hostname() const noexcept</div><div class="ttdoc">Returns the hostname.</div><div class="ttdef"><b>Definition:</b> instance.hpp:101</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a921c4b83815c0d98dea983a9409c00ac"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac">mastodonpp::Instance::copy_connection_properties</a></div><div class="ttdeci">void copy_connection_properties(CURLWrapper &amp;curlwrapper) const</div><div class="ttdoc">Set the properties of the connection of the calling class up.</div><div class="ttdef"><b>Definition:</b> instance.hpp:90</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_ab329a0780a1f0581d4771cac4e958157"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#ab329a0780a1f0581d4771cac4e958157">mastodonpp::Instance::set_proxy</a></div><div class="ttdeci">void set_proxy(const string_view proxy) override</div><div class="ttdoc">Set the proxy to use.</div><div class="ttdef"><b>Definition:</b> instance.hpp:160</div></div>
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_adec12eb92831f3530f55c507a33446be"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#adec12eb92831f3530f55c507a33446be">mastodonpp::Instance::~Instance</a></div><div class="ttdeci">~Instance() noexcept override=default</div><div class="ttdoc">Destructor.</div></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
<div class="ttc" id="astructmastodonpp_1_1answer__type_html"><div class="ttname"><a href="structmastodonpp_1_1answer__type.html">mastodonpp::answer_type</a></div><div class="ttdoc">Return type for Requests.</div><div class="ttdef"><b>Definition:</b> types.hpp:80</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: src/log.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -126,14 +126,12 @@ $(function() {
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;} <span class="comment">// namespace mastodonpp</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="preprocessor">#endif // MASTODONPP_LOG_HPP</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// MASTODONPP_LOG_HPP</span></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:24</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: include/mastodonpp.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -100,14 +100,12 @@ $(function() {
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacemastodonpp.html">mastodonpp</a></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;{} <span class="comment">// namespace mastodonpp</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="preprocessor">#endif // MASTODONPP_HPP</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// MASTODONPP_HPP</span></div>
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:25</div></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespacemastodonpp_html"><div class="ttname"><a href="namespacemastodonpp.html">mastodonpp</a></div><div class="ttdoc">C++ wrapper for the Mastodon API.</div><div class="ttdef"><b>Definition:</b> api.hpp:24</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -1,25 +1,26 @@
/*
@licstart The following is the entire license notice for the
JavaScript code in this file.
@licstart The following is the entire license notice for the JavaScript code in this file.
Copyright (C) 1997-2017 by Dimitri van Heesch
The MIT License (MIT)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Copyright (C) 1997-2020 by Dimitri van Heesch
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
@licend The above is the entire license notice
for the JavaScript code in this file
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@licend The above is the entire license notice for the JavaScript code in this file
*/
function initMenu(relPath,searchEnabled,serverSide,searchPage,search) {
function makeTree(data,relPath) {
@ -40,9 +41,9 @@ function initMenu(relPath,searchEnabled,serverSide,searchPage,search) {
$('#main-nav').children(':first').addClass('sm sm-dox').attr('id','main-menu');
if (searchEnabled) {
if (serverSide) {
$('#main-menu').append('<li style="float:right"><div id="MSearchBox" class="MSearchBoxInactive"><div class="left"><form id="FSearchBox" action="'+relPath+searchPage+'" method="get"><img id="MSearchSelect" src="'+relPath+'search/mag.png" alt=""/><input type="text" id="MSearchField" name="query" value="'+search+'" size="20" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)"></form></div><div class="right"></div></div></li>');
$('#main-menu').append('<li style="float:right"><div id="MSearchBox" class="MSearchBoxInactive"><div class="left"><form id="FSearchBox" action="'+relPath+searchPage+'" method="get"><img id="MSearchSelect" src="'+relPath+'search/mag.svg" alt=""/><input type="text" id="MSearchField" name="query" value="'+search+'" size="20" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)"></form></div><div class="right"></div></div></li>');
} else {
$('#main-menu').append('<li style="float:right"><div id="MSearchBox" class="MSearchBoxInactive"><span class="left"><img id="MSearchSelect" src="'+relPath+'search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/><input type="text" id="MSearchField" value="'+search+'" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/></span><span class="right"><a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="'+relPath+'search/close.png" alt=""/></a></span></div></li>');
$('#main-menu').append('<li style="float:right"><div id="MSearchBox" class="MSearchBoxInactive"><span class="left"><img id="MSearchSelect" src="'+relPath+'search/mag_sel.svg" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/><input type="text" id="MSearchField" value="'+search+'" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/></span><span class="right"><a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="'+relPath+'search/close.svg" alt=""/></a></span></div></li>');
}
}
$('#main-menu').smartmenus();

View File

@ -1,24 +1,26 @@
/*
@licstart The following is the entire license notice for the
JavaScript code in this file.
@licstart The following is the entire license notice for the JavaScript code in this file.
Copyright (C) 1997-2019 by Dimitri van Heesch
The MIT License (MIT)
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License as published by
the Free Software Foundation
Copyright (C) 1997-2020 by Dimitri van Heesch
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
@licend The above is the entire license notice
for the JavaScript code in this file
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@licend The above is the entire license notice for the JavaScript code in this file
*/
var menudata={children:[
{text:"Main Page",url:"index.html"},

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: mastodonpp Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -78,27 +78,27 @@ $(function() {
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmastodonpp_1_1answer__type.html">answer_type</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return type for Requests. <a href="structmastodonpp_1_1answer__type.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1API.html">API</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Holds API endpoints. <a href="classmastodonpp_1_1API.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1Connection.html">Connection</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Represents a connection to an instance. Used for requests. <a href="classmastodonpp_1_1Connection.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1CURLException.html">CURLException</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Exception for libcurl errors. <a href="classmastodonpp_1_1CURLException.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles the details of network connections. <a href="classmastodonpp_1_1CURLWrapper.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmastodonpp_1_1event__type.html">event_type</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A stream event. <a href="structmastodonpp_1_1event__type.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1Connection.html">Connection</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Represents a connection to an instance. Used for requests. <a href="classmastodonpp_1_1Connection.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles the details of network connections. <a href="classmastodonpp_1_1CURLWrapper.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1CURLException.html">CURLException</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Exception for libcurl errors. <a href="classmastodonpp_1_1CURLException.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmastodonpp_1_1Instance.html">Instance</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Holds the access data of an instance. <a href="classmastodonpp_1_1Instance.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmastodonpp_1_1answer__type.html">answer_type</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return type for Requests. <a href="structmastodonpp_1_1answer__type.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
@ -114,12 +114,12 @@ Typedefs</h2></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a7d60fc71ad0fb1fbd467b37fe1f1f100"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemastodonpp.html#a7d60fc71ad0fb1fbd467b37fe1f1f100">http_method</a> { <br />
&#160;&#160;<b>GET</b>,
<b>POST</b>,
<b>PATCH</b>,
<b>PUT</b>,
<br />
<tr class="memitem:a7d60fc71ad0fb1fbd467b37fe1f1f100"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemastodonpp.html#a7d60fc71ad0fb1fbd467b37fe1f1f100">http_method</a> { <br />
&#160;&#160;<b>GET</b>
, <b>POST</b>
, <b>PATCH</b>
, <b>PUT</b>
, <br />
&#160;&#160;<b>DELETE</b>
<br />
}</td></tr>
@ -175,6 +175,7 @@ Functions</h2></td></tr>
<div class="line"> {<span class="stringliteral">&quot;poll[options]&quot;</span>, vector&lt;string_view&gt;{<span class="stringliteral">&quot;Yes&quot;</span>, <span class="stringliteral">&quot;No&quot;</span>, <span class="stringliteral">&quot;Maybe&quot;</span>}},</div>
<div class="line"> {<span class="stringliteral">&quot;status&quot;</span>, <span class="stringliteral">&quot;How is the weather?&quot;</span>}</div>
<div class="line"> };</div>
<div class="ttc" id="anamespacemastodonpp_html_af8b3b89118adeccc71c54dfd36c987f6"><div class="ttname"><a href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">mastodonpp::parametermap</a></div><div class="ttdeci">map&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parametermap</div><div class="ttdoc">std::map of parameters for API calls.</div><div class="ttdef"><b>Definition:</b> types.hpp:64</div></div>
</div><!-- fragment --><dl class="section since"><dt>Since</dt><dd>0.1.0 </dd></dl>
</div>
@ -283,6 +284,7 @@ Functions</h2></td></tr>
<p>Supports named and numbered entities, decimal and hexadecimal.</p>
<p>Example: </p><div class="fragment"><div class="line"><span class="comment">// Will output: 2€ = 2€ = 2€</span></div>
<div class="line">std::cout &lt;&lt; <a class="code" href="namespacemastodonpp.html#a4e42b93c60074920fb731ab6ba797935">mastodonpp::unescape_html</a>(<span class="stringliteral">&quot;2&amp;euro; = 2&amp;#8364; = 2&amp;#x20ac;&quot;</span>);</div>
<div class="ttc" id="anamespacemastodonpp_html_a4e42b93c60074920fb731ab6ba797935"><div class="ttname"><a href="namespacemastodonpp.html#a4e42b93c60074920fb731ab6ba797935">mastodonpp::unescape_html</a></div><div class="ttdeci">string unescape_html(string html)</div><div class="ttdoc">Replaces HTML entities with UTF-8 characters.</div><div class="ttdef"><b>Definition:</b> helpers.cpp:39</div></div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">html</td><td>The HTML to unescape.</td></tr>
@ -432,13 +434,9 @@ Functions</h2></td></tr>
</div>
</div>
</div><!-- contents -->
<div class="ttc" id="anamespacemastodonpp_html_af8b3b89118adeccc71c54dfd36c987f6"><div class="ttname"><a href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">mastodonpp::parametermap</a></div><div class="ttdeci">map&lt; string_view, variant&lt; string_view, vector&lt; string_view &gt; &gt;&gt; parametermap</div><div class="ttdoc">std::map of parameters for API calls.</div><div class="ttdef"><b>Definition:</b> types.hpp:64</div></div>
<div class="ttc" id="anamespacemastodonpp_html_a4e42b93c60074920fb731ab6ba797935"><div class="ttname"><a href="namespacemastodonpp.html#a4e42b93c60074920fb731ab6ba797935">mastodonpp::unescape_html</a></div><div class="ttdeci">string unescape_html(string html)</div><div class="ttdoc">Replaces HTML entities with UTF-8 characters.</div><div class="ttdef"><b>Definition:</b> helpers.cpp:39</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Namespace Members</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -86,9 +86,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Namespace Members</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -71,9 +71,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Namespace Members</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -74,9 +74,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Namespace Members</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -77,9 +77,7 @@ $(function() {
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodonpp: Namespace List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@ -31,10 +31,10 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
@ -68,16 +68,22 @@ $(function() {
</div><!--header-->
<div class="contents">
<div class="textblock">Here is a list of all documented namespaces with brief descriptions:</div><div class="directory">
<table class="directory">
<tr id="row_0_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">N</span></span><a class="el" href="namespacemastodonpp.html" target="_self">mastodonpp</a></td><td class="desc">C++ wrapper for the Mastodon API </td></tr>
<div class="levels">[detail level <span onclick="javascript:toggleLevel(1);">1</span><span onclick="javascript:toggleLevel(2);">2</span><span onclick="javascript:toggleLevel(3);">3</span>]</div><table class="directory">
<tr id="row_0_" class="even"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_0_" class="arrow" onclick="toggleFolder('0_')">&#9660;</span><span class="icona"><span class="icon">N</span></span><a class="el" href="namespacemastodonpp.html" target="_self">mastodonpp</a></td><td class="desc">C++ wrapper for the Mastodon API </td></tr>
<tr id="row_0_0_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1API.html" target="_self">API</a></td><td class="desc">Holds API endpoints </td></tr>
<tr id="row_0_1_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structmastodonpp_1_1event__type.html" target="_self">event_type</a></td><td class="desc">A stream event </td></tr>
<tr id="row_0_2_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1Connection.html" target="_self">Connection</a></td><td class="desc">Represents a connection to an instance. Used for requests </td></tr>
<tr id="row_0_3_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1CURLWrapper.html" target="_self">CURLWrapper</a></td><td class="desc">Handles the details of network connections </td></tr>
<tr id="row_0_4_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1CURLException.html" target="_self">CURLException</a></td><td class="desc">Exception for libcurl errors </td></tr>
<tr id="row_0_5_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span id="arr_0_5_" class="arrow" onclick="toggleFolder('0_5_')">&#9660;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1Instance.html" target="_self">Instance</a></td><td class="desc">Holds the access data of an instance </td></tr>
<tr id="row_0_5_0_"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmastodonpp_1_1Instance_1_1ObtainToken.html" target="_self">ObtainToken</a></td><td class="desc">Simplifies obtaining an OAuth 2.0 Bearer Access Token </td></tr>
<tr id="row_0_6_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structmastodonpp_1_1answer__type.html" target="_self">answer_type</a></td><td class="desc">Return type for Requests </td></tr>
</table>
</div><!-- directory -->
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_0.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_1.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,5 +1,5 @@
var searchData=
[
['answer_5ftype_1',['answer_type',['../structmastodonpp_1_1answer__type.html',1,'mastodonpp']]],
['api_2',['API',['../classmastodonpp_1_1API.html',1,'mastodonpp::API'],['../classmastodonpp_1_1API.html#af9fc7a7d152a851122f8acc3224d4047',1,'mastodonpp::API::API()']]]
['api_2',['API',['../classmastodonpp_1_1API.html#af9fc7a7d152a851122f8acc3224d4047',1,'mastodonpp::API::API()'],['../classmastodonpp_1_1API.html',1,'mastodonpp::API']]]
];

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_10.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_11.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_12.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_2.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_3.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,9 +1,9 @@
var searchData=
[
['cancel_5fstream_4',['cancel_stream',['../classmastodonpp_1_1Connection.html#a8cf6ab350bb359650925d1c582fe9f60',1,'mastodonpp::Connection::cancel_stream()'],['../classmastodonpp_1_1CURLWrapper.html#a892a4fc3d048798fa8e2584545b91861',1,'mastodonpp::CURLWrapper::cancel_stream()']]],
['connection_5',['Connection',['../classmastodonpp_1_1Connection.html',1,'mastodonpp::Connection'],['../classmastodonpp_1_1Connection.html#ae6fc153679431f14ee98778bbc477cda',1,'mastodonpp::Connection::Connection(const Instance &amp;instance)'],['../classmastodonpp_1_1Connection.html#aa1273c61748ddf364c1cdc28ac9b0a6f',1,'mastodonpp::Connection::Connection(const Connection &amp;other)=default'],['../classmastodonpp_1_1Connection.html#af0d81640b36cdf6eee8897e1d9b31d52',1,'mastodonpp::Connection::Connection(Connection &amp;&amp;other) noexcept=delete']]],
['connection_5',['Connection',['../classmastodonpp_1_1Connection.html#ae6fc153679431f14ee98778bbc477cda',1,'mastodonpp::Connection::Connection(const Instance &amp;instance)'],['../classmastodonpp_1_1Connection.html#aa1273c61748ddf364c1cdc28ac9b0a6f',1,'mastodonpp::Connection::Connection(const Connection &amp;other)=default'],['../classmastodonpp_1_1Connection.html#af0d81640b36cdf6eee8897e1d9b31d52',1,'mastodonpp::Connection::Connection(Connection &amp;&amp;other) noexcept=delete'],['../classmastodonpp_1_1Connection.html',1,'mastodonpp::Connection']]],
['copy_5fconnection_5fproperties_6',['copy_connection_properties',['../classmastodonpp_1_1Instance.html#a921c4b83815c0d98dea983a9409c00ac',1,'mastodonpp::Instance']]],
['curl_5ferror_5fcode_7',['curl_error_code',['../structmastodonpp_1_1answer__type.html#a7c5582c4500034c0ea36ab1694944139',1,'mastodonpp::answer_type']]],
['curlexception_8',['CURLException',['../classmastodonpp_1_1CURLException.html',1,'mastodonpp::CURLException'],['../classmastodonpp_1_1CURLException.html#af43d29b726eceb3f80a71cdd7c3d55d4',1,'mastodonpp::CURLException::CURLException(const CURLcode &amp;error, string message)'],['../classmastodonpp_1_1CURLException.html#a21a021c5c9ba1631224a6e81e36e242f',1,'mastodonpp::CURLException::CURLException(const CURLcode &amp;error, string message, string error_buffer)'],['../classmastodonpp_1_1CURLException.html#a73b235aa9f6699e126641ae93365a39d',1,'mastodonpp::CURLException::CURLException(string message)']]],
['curlwrapper_9',['CURLWrapper',['../classmastodonpp_1_1CURLWrapper.html',1,'mastodonpp::CURLWrapper'],['../classmastodonpp_1_1CURLWrapper.html#a736572303fbec7a307514e611e6a468c',1,'mastodonpp::CURLWrapper::CURLWrapper()'],['../classmastodonpp_1_1CURLWrapper.html#a6885296f3807f446963b2f32b298f051',1,'mastodonpp::CURLWrapper::CURLWrapper(const CURLWrapper &amp;)'],['../classmastodonpp_1_1CURLWrapper.html#a4d79b9a4525ac4b4b8954ccc794af0f9',1,'mastodonpp::CURLWrapper::CURLWrapper(CURLWrapper &amp;&amp;other) noexcept=delete']]]
['curlexception_8',['CURLException',['../classmastodonpp_1_1CURLException.html#af43d29b726eceb3f80a71cdd7c3d55d4',1,'mastodonpp::CURLException::CURLException(const CURLcode &amp;error, string message)'],['../classmastodonpp_1_1CURLException.html#a21a021c5c9ba1631224a6e81e36e242f',1,'mastodonpp::CURLException::CURLException(const CURLcode &amp;error, string message, string error_buffer)'],['../classmastodonpp_1_1CURLException.html#a73b235aa9f6699e126641ae93365a39d',1,'mastodonpp::CURLException::CURLException(string message)'],['../classmastodonpp_1_1CURLException.html',1,'mastodonpp::CURLException']]],
['curlwrapper_9',['CURLWrapper',['../classmastodonpp_1_1CURLWrapper.html#a736572303fbec7a307514e611e6a468c',1,'mastodonpp::CURLWrapper::CURLWrapper()'],['../classmastodonpp_1_1CURLWrapper.html#a6885296f3807f446963b2f32b298f051',1,'mastodonpp::CURLWrapper::CURLWrapper(const CURLWrapper &amp;)'],['../classmastodonpp_1_1CURLWrapper.html#a4d79b9a4525ac4b4b8954ccc794af0f9',1,'mastodonpp::CURLWrapper::CURLWrapper(CURLWrapper &amp;&amp;other) noexcept=delete'],['../classmastodonpp_1_1CURLWrapper.html',1,'mastodonpp::CURLWrapper']]]
];

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_4.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_5.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_6.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_7.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_8.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,4 +1,4 @@
var searchData=
[
['instance_33',['Instance',['../classmastodonpp_1_1Instance.html',1,'mastodonpp::Instance'],['../classmastodonpp_1_1Instance.html#a21b859e2b9b5c6f48e8d0a194a659888',1,'mastodonpp::Instance::Instance(string_view hostname, string_view access_token)'],['../classmastodonpp_1_1Instance.html#a14551e7c53caeaa32b6817ccafc6af0e',1,'mastodonpp::Instance::Instance(const Instance &amp;other)'],['../classmastodonpp_1_1Instance.html#a827ebc5b43e1cba9b5b7eb4d5ebcd4bd',1,'mastodonpp::Instance::Instance(Instance &amp;&amp;other) noexcept=delete']]]
['instance_33',['Instance',['../classmastodonpp_1_1Instance.html#a21b859e2b9b5c6f48e8d0a194a659888',1,'mastodonpp::Instance::Instance(string_view hostname, string_view access_token)'],['../classmastodonpp_1_1Instance.html#a14551e7c53caeaa32b6817ccafc6af0e',1,'mastodonpp::Instance::Instance(const Instance &amp;other)'],['../classmastodonpp_1_1Instance.html#a827ebc5b43e1cba9b5b7eb4d5ebcd4bd',1,'mastodonpp::Instance::Instance(Instance &amp;&amp;other) noexcept=delete'],['../classmastodonpp_1_1Instance.html',1,'mastodonpp::Instance']]]
];

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_9.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,6 +1,6 @@
var searchData=
[
['mastodonpp_20reference_34',['mastodonpp Reference',['../index.html',1,'']]],
['make_5frequest_35',['make_request',['../classmastodonpp_1_1CURLWrapper.html#adc8808c3fad5397176f6755b09ee0be6',1,'mastodonpp::CURLWrapper']]],
['mastodonpp_36',['mastodonpp',['../namespacemastodonpp.html',1,'']]]
['make_5frequest_34',['make_request',['../classmastodonpp_1_1CURLWrapper.html#adc8808c3fad5397176f6755b09ee0be6',1,'mastodonpp::CURLWrapper']]],
['mastodonpp_35',['mastodonpp',['../namespacemastodonpp.html',1,'']]],
['mastodonpp_20reference_36',['mastodonpp Reference',['../index.html',1,'']]]
];

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_a.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_b.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_c.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_d.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_e.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

View File

@ -1,7 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_f.js"></script>
<script type="text/javascript" src="search.js"></script>
@ -10,21 +11,27 @@
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
createResults();
/* @license-end */
--></script>
</script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
window.addEventListener("message", function(event) {
if (event.data == "take_focus") {
var elem = searchResults.NavNext(0);
if (elem) elem.focus();
}
});
/* @license-end */
--></script>
</script>
</div>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More