This repository has been archived on 2020-05-10. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon-cpp/docs/types__easy_8hpp_source.html

84 lines
32 KiB
HTML
Raw Normal View History

2019-09-20 18:39:40 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2019-04-14 06:36:34 +02:00
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
2019-09-20 18:39:40 +02:00
<meta name="generator" content="Doxygen 1.8.15"/>
2019-04-14 06:36:34 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mastodon-cpp: src/easy/types_easy.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">mastodon-cpp
2019-09-20 18:39:40 +02:00
&#160;<span id="projectnumber">0.110.0</span>
2019-04-14 06:36:34 +02:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
2019-09-20 18:39:40 +02:00
<!-- Generated by Doxygen 1.8.15 -->
2019-04-14 06:36:34 +02:00
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_9d328871126a6a5820f3cd5c0c41741e.html">easy</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">types_easy.hpp</div> </div>
</div><!--header-->
<div class="contents">
2019-09-20 18:39:40 +02:00
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/* This file is part of mastodon-cpp.</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * Copyright © 2019 tastytea &lt;tastytea@tastytea.de&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * This program is free software: you can redistribute it and/or modify</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * it under the terms of the GNU Affero General Public License as published by</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * the Free Software Foundation, version 3.</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * This program is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * GNU Affero General Public License for more details.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * You should have received a copy of the GNU Affero General Public License</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#ifndef MASTODON_CPP_EASY_TYPES_EASY_HPP</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#define MASTODON_CPP_EASY_TYPES_EASY_HPP</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;chrono&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;cstdint&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="keyword">using</span> std::string;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="keyword">using</span> std::chrono::system_clock;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="keyword">using</span> std::uint64_t;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div><div class="line"><a name="l00029"></a><sp
<div class="ttc" id="classMastodon_1_1Easy_1_1Notification_html"><div class="ttname"><a href="classMastodon_1_1Easy_1_1Notification.html">Mastodon::Easy::Notification</a></div><div class="ttdoc">Class to hold notifications.</div><div class="ttdef"><b>Definition:</b> notification.hpp:40</div></div>
<div class="ttc" id="structMastodon_1_1Easy_1_1time__type_html"><div class="ttname"><a href="structMastodon_1_1Easy_1_1time__type.html">Mastodon::Easy::time_type</a></div><div class="ttdoc">Type for time. Converts to time_point and string.</div><div class="ttdef"><b>Definition:</b> types_easy.hpp:150</div></div>
<div class="ttc" id="classMastodon_1_1Easy_1_1Mention_html"><div class="ttname"><a href="classMastodon_1_1Easy_1_1Mention.html">Mastodon::Easy::Mention</a></div><div class="ttdoc">Class to hold mentions.</div><div class="ttdef"><b>Definition:</b> mention.hpp:39</div></div>
<div class="ttc" id="structMastodon_1_1Easy_1_1stats__type_html"><div class="ttname"><a href="structMastodon_1_1Easy_1_1stats__type.html">Mastodon::Easy::stats_type</a></div><div class="ttdoc">Statistics returned by Instance::stats().</div><div class="ttdef"><b>Definition:</b> types_easy.hpp:222</div></div>
<div class="ttc" id="structMastodon_1_1Easy_1_1stream__event__type_html"><div class="ttname"><a href="structMastodon_1_1Easy_1_1stream__event__type.html">Mastodon::Easy::stream_event_type</a></div><div class="ttdoc">Used for stream events.</div><div class="ttdef"><b>Definition:</b> types_easy.hpp:125</div></div>
<div class="ttc" id="namespaceMastodon_1_1Easy_html_a6fe05d8369da425f88390ac6e1593f62"><div class="ttname"><a href="namespaceMastodon_1_1Easy.html#a6fe05d8369da425f88390ac6e1593f62">Mastodon::Easy::urls_type</a></div><div class="ttdeci">struct Mastodon::Easy::urls_type urls_type</div><div class="ttdoc">URLs returned by Instance::urls().</div></div>
<div class="ttc" id="structMastodon_1_1Easy_1_1account__field__type_html"><div class="ttname"><a href="structMastodon_1_1Easy_1_1account__field__type.html">Mastodon::Easy::account_field_type</a></div><div class="ttdoc">Describes an account-field.</div><div class="ttdef"><b>Definition:</b> types_easy.hpp:202</div></div>
<div class="ttc" id="namespaceMastodon_1_1Easy_html_a92bf9f4446b651d20a32c6342f80fcc0"><div class="ttname"><a href="namespaceMastodon_1_1Easy.html#a92bf9f4446b651d20a32c6342f80fcc0">Mastodon::Easy::alert_type</a></div><div class="ttdeci">struct Mastodon::Easy::alert_type alert_type</div><div class="ttdoc">Type of notification and 'push is requested or not'.</div></div>
<div class="ttc" id="namespaceMastodon_html"><div class="ttname"><a href="namespaceMastodon.html">Mastodon</a></div><div class="ttdoc">Collection of things to interface with server software that implements the Mastodon API.</div><div class="ttdef"><b>Definition:</b> mastodon-cpp.hpp:47</div></div>
<div class="ttc" id="namespaceMastodon_1_1Easy_html_a882b88d78ca193355f49a406d508e89e"><div class="ttname"><a href="namespaceMastodon_1_1Easy.html#a882b88d78ca193355f49a406d508e89e">Mastodon::Easy::poll_options_type</a></div><div class="ttdeci">struct Mastodon::Easy::poll_options_type poll_options_type</div><div class="ttdoc">Poll options returned by Poll::options().</div></div>
<div class="ttc" id="namespaceMastodon_1_1Easy_html_a65b9f0eba23e0617e3840aa35310a7e5"><div class="ttname"><a href="namespaceMastodon_1_1Easy.html#a65b9f0eba23e0617e3840aa35310a7e5">Mastodon::Easy::context_type</a></div><div class="ttdeci">context_type</div><div class="ttdoc">Describes the context.</div><div class="ttdef"><b>Definition:</b> types_easy.hpp:111</div></div>
<div class="ttc" id="namespaceMastodon_1_1Easy_html_a11be13ea00b6fe40f1064b968455f274"><div class="ttname"><a href="namespaceMastodon_1_1Easy.html#a11be13ea00b6fe40f1064b968455f274">Mastodon::Easy::account_field_type</a></div><div class="ttdeci">struct Mastodon::Easy::account_field_type account_field_type</div><div class="ttdoc">Describes an account-field.</div></div>
<div class="ttc" id="namespaceMastodon_1_1Easy_html_af99b6a79e360ae9836bae129f9989e76"><div class="ttname"><a href="namespaceMastodon_1_1Easy.html#af99b6a79e360ae9836bae129f9989e76">Mastodon::Easy::notification_type</a></div><div class="ttdeci">notification_type</div><div class="ttdoc">Describes the notification type.</div><div class="ttdef"><b>Definition:</b> types_easy.hpp:97</div></div>
<div class="ttc" id="structMastodon_1_1Easy_1_1urls__type_html"><div class="ttname"><a href="structMastodon_1_1Easy_1_1urls__type.html">Mastodon::Easy::urls_type</a></div><div class="ttdoc">URLs returned by Instance::urls().</div><div class="ttdef"><b>Definition:</b> types_easy.hpp:214</div></div>
<div class="ttc" id="namespaceMastodon_1_1Easy_html_ae87ec24b70cf3d312337f699abe069d0"><div class="ttname"><a href="namespaceMastodon_1_1Easy.html#ae87ec24b70cf3d312337f699abe069d0">Mastodon::Easy::stats_type</a></div><div class="ttdeci">struct Mastodon::Easy::stats_type stats_type</div><div class="ttdoc">Statistics returned by Instance::stats().</div></div>
<div class="ttc" id="structMastodon_1_1Easy_1_1time__type_html_a50770addeaf2a00e6541393c732d9284"><div class="ttname"><a href="structMastodon_1_1Easy_1_1time__type.html#a50770addeaf2a00e6541393c732d9284">Mastodon::Easy::time_type::strtime</a></div><div class="ttdeci">const string strtime(const string &amp;format, const bool &amp;local=true) const</div><div class="ttdoc">Converts time to a string.</div><div class="ttdef"><b>Definition:</b> types_easy.cpp:33</div></div>
<div class="ttc" id="namespaceMastodon_1_1Easy_html_af752ac6412032d09c7d7aa4cbcce7078"><div class="ttname"><a href="namespaceMastodon_1_1Easy.html#af752ac6412032d09c7d7aa4cbcce7078">Mastodon::Easy::stream_event_type</a></div><div class="ttdeci">struct Mastodon::Easy::stream_event_type stream_event_type</div><div class="ttdoc">Used for stream events.</div></div>
<div class="ttc" id="namespaceMastodon_1_1Easy_html_aa17ec4f385ac3bc773b1b2277f209341"><div class="ttname"><a href="namespaceMastodon_1_1Easy.html#aa17ec4f385ac3bc773b1b2277f209341">Mastodon::Easy::card_type</a></div><div class="ttdeci">card_type</div><div class="ttdoc">Describes the card type.</div><div class="ttdef"><b>Definition:</b> types_easy.hpp:83</div></div>
<div class="ttc" id="structMastodon_1_1Easy_1_1alert__type_html"><div class="ttname"><a href="structMastodon_1_1Easy_1_1alert__type.html">Mastodon::Easy::alert_type</a></div><div class="ttdoc">Type of notification and 'push is requested or not'.</div><div class="ttdef"><b>Definition:</b> types_easy.hpp:139</div></div>
<div class="ttc" id="structMastodon_1_1Easy_1_1poll__options__type_html"><div class="ttname"><a href="structMastodon_1_1Easy_1_1poll__options__type.html">Mastodon::Easy::poll_options_type</a></div><div class="ttdoc">Poll options returned by Poll::options().</div><div class="ttdef"><b>Definition:</b> types_easy.hpp:232</div></div>
<div class="ttc" id="structMastodon_1_1Easy_1_1time__type_html_ae5dc86ac88b67c96e59a3f724ccbe291"><div class="ttname"><a href="structMastodon_1_1Easy_1_1time__type.html#ae5dc86ac88b67c96e59a3f724ccbe291">Mastodon::Easy::time_type::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;out, const Easy::time_type &amp;t)</div><div class="ttdoc">Returns local time as string in ISO 8601 format (FTTz).</div><div class="ttdef"><b>Definition:</b> types_easy.cpp:53</div></div>
<div class="ttc" id="namespaceMastodon_1_1Easy_html_acd775719887d95875c2fb46b45116d2b"><div class="ttname"><a href="namespaceMastodon_1_1Easy.html#acd775719887d95875c2fb46b45116d2b">Mastodon::Easy::event_type</a></div><div class="ttdeci">event_type</div><div class="ttdoc">Describes the event type returned in streams.</div><div class="ttdef"><b>Definition:</b> types_easy.hpp:38</div></div>
<div class="ttc" id="namespaceMastodon_1_1Easy_html_a41488ca00d3169dc24313b21bd19eefa"><div class="ttname"><a href="namespaceMastodon_1_1Easy.html#a41488ca00d3169dc24313b21bd19eefa">Mastodon::Easy::visibility_type</a></div><div class="ttdeci">visibility_type</div><div class="ttdoc">Describes visibility of posts.</div><div class="ttdef"><b>Definition:</b> types_easy.hpp:54</div></div>
<div class="ttc" id="namespaceMastodon_1_1Easy_html_a1c6e6d9643e6739f7b9126a307b45bc1"><div class="ttname"><a href="namespaceMastodon_1_1Easy.html#a1c6e6d9643e6739f7b9126a307b45bc1">Mastodon::Easy::attachment_type</a></div><div class="ttdeci">attachment_type</div><div class="ttdoc">Describes the attachment type.</div><div class="ttdef"><b>Definition:</b> types_easy.hpp:69</div></div>
2019-04-14 06:36:34 +02:00
</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"/>
2019-09-20 18:39:40 +02:00
</a> 1.8.15
2019-04-14 06:36:34 +02:00
</small></address>
</body>
</html>