From ed6f450d4b8576c911ca09a3dae9db95b6aeed9e Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 26 Jan 2019 06:59:40 +0100 Subject: [PATCH] 2019-01-26 --- docs/account_8hpp_source.html | 6 +- docs/all_8hpp_source.html | 2 +- docs/annotated.html | 2 +- docs/application_8hpp_source.html | 4 +- docs/attachment_8hpp_source.html | 6 +- docs/card_8hpp_source.html | 6 +- docs/classMastodon_1_1API-members.html | 2 +- docs/classMastodon_1_1API.html | 2 +- .../classMastodon_1_1API_1_1http-members.html | 2 +- docs/classMastodon_1_1API_1_1http.html | 2 +- docs/classMastodon_1_1Easy-members.html | 77 +++++++++--------- docs/classMastodon_1_1Easy.html | 80 ++++++++++++++++--- ...ssMastodon_1_1Easy_1_1Account-members.html | 2 +- docs/classMastodon_1_1Easy_1_1Account.html | 2 +- ..._1_1Easy_1_1Account_1_1Source-members.html | 2 +- ...Mastodon_1_1Easy_1_1Account_1_1Source.html | 2 +- ...stodon_1_1Easy_1_1Application-members.html | 2 +- .../classMastodon_1_1Easy_1_1Application.html | 2 +- ...astodon_1_1Easy_1_1Attachment-members.html | 2 +- docs/classMastodon_1_1Easy_1_1Attachment.html | 2 +- ...classMastodon_1_1Easy_1_1Card-members.html | 2 +- docs/classMastodon_1_1Easy_1_1Card.html | 2 +- ...ssMastodon_1_1Easy_1_1Context-members.html | 2 +- docs/classMastodon_1_1Easy_1_1Context.html | 2 +- ...lassMastodon_1_1Easy_1_1Emoji-members.html | 2 +- docs/classMastodon_1_1Easy_1_1Emoji.html | 2 +- ...assMastodon_1_1Easy_1_1Entity-members.html | 2 +- docs/classMastodon_1_1Easy_1_1Entity.html | 2 +- ...sMastodon_1_1Easy_1_1Instance-members.html | 2 +- docs/classMastodon_1_1Easy_1_1Instance.html | 2 +- ...classMastodon_1_1Easy_1_1Link-members.html | 2 +- docs/classMastodon_1_1Easy_1_1Link.html | 2 +- ...classMastodon_1_1Easy_1_1List-members.html | 2 +- docs/classMastodon_1_1Easy_1_1List.html | 2 +- ...ssMastodon_1_1Easy_1_1Mention-members.html | 2 +- docs/classMastodon_1_1Easy_1_1Mention.html | 2 +- ...todon_1_1Easy_1_1Notification-members.html | 2 +- ...classMastodon_1_1Easy_1_1Notification.html | 2 +- ...n_1_1Easy_1_1PushSubscription-members.html | 2 +- ...sMastodon_1_1Easy_1_1PushSubscription.html | 6 +- ...todon_1_1Easy_1_1Relationship-members.html | 2 +- ...classMastodon_1_1Easy_1_1Relationship.html | 2 +- ...assMastodon_1_1Easy_1_1Report-members.html | 2 +- docs/classMastodon_1_1Easy_1_1Report.html | 2 +- ...ssMastodon_1_1Easy_1_1Results-members.html | 2 +- docs/classMastodon_1_1Easy_1_1Results.html | 2 +- ...assMastodon_1_1Easy_1_1Status-members.html | 2 +- docs/classMastodon_1_1Easy_1_1Status.html | 2 +- .../classMastodon_1_1Easy_1_1Tag-members.html | 2 +- docs/classMastodon_1_1Easy_1_1Tag.html | 2 +- ...don_1_1Easy_1_1Tag_1_1History-members.html | 2 +- ...assMastodon_1_1Easy_1_1Tag_1_1History.html | 2 +- docs/classes.html | 2 +- docs/context_8hpp_source.html | 4 +- .../dir_68267d1309a1af8e8297ef4c3efbcdba.html | 2 +- .../dir_9d328871126a6a5820f3cd5c0c41741e.html | 2 +- .../dir_da61e3e9a357748887e3ca8d7c5a0c16.html | 2 +- .../dir_e526f556af6ddef7955f0f6556f0f4d0.html | 2 +- docs/easy_8hpp_source.html | 29 +++---- docs/emoji_8hpp_source.html | 4 +- docs/example01_dump_json_8cpp-example.html | 2 +- .../example02_parse_account_8cpp-example.html | 2 +- docs/example03_mastocron_8cpp-example.html | 2 +- ...ple04_update_credentials_8cpp-example.html | 2 +- ...xample05_follow_unfollow_8cpp-example.html | 2 +- ...ample06_toot_delete-toot_8cpp-example.html | 2 +- docs/example07_register_app_8cpp-example.html | 2 +- .../example08_rate_limiting_8cpp-example.html | 2 +- .../example09_streaming_api_8cpp-example.html | 2 +- docs/example10_simplify_8cpp-example.html | 2 +- docs/example11_post_media_8cpp-example.html | 2 +- ...xample12_easy_laststatus_8cpp-example.html | 2 +- docs/example13_easy_stream_8cpp-example.html | 2 +- .../example14_easy_treeview_8cpp-example.html | 2 +- docs/example15_proxy_8cpp-example.html | 2 +- ...example16_account_fields_8cpp-example.html | 2 +- docs/examples.html | 2 +- docs/files.html | 2 +- docs/functions.html | 2 +- docs/functions_b.html | 2 +- docs/functions_c.html | 2 +- docs/functions_d.html | 2 +- docs/functions_e.html | 2 +- docs/functions_enum.html | 2 +- docs/functions_f.html | 2 +- docs/functions_func.html | 2 +- docs/functions_func_b.html | 2 +- docs/functions_func_c.html | 2 +- docs/functions_func_d.html | 2 +- docs/functions_func_e.html | 2 +- docs/functions_func_f.html | 2 +- docs/functions_func_g.html | 7 +- docs/functions_func_h.html | 2 +- docs/functions_func_i.html | 2 +- docs/functions_func_j.html | 2 +- docs/functions_func_l.html | 2 +- docs/functions_func_m.html | 2 +- docs/functions_func_n.html | 2 +- docs/functions_func_p.html | 2 +- docs/functions_func_r.html | 2 +- docs/functions_func_s.html | 2 +- docs/functions_func_t.html | 2 +- docs/functions_func_u.html | 2 +- docs/functions_func_v.html | 2 +- docs/functions_func_w.html | 2 +- docs/functions_g.html | 7 +- docs/functions_h.html | 2 +- docs/functions_i.html | 2 +- docs/functions_j.html | 2 +- docs/functions_l.html | 2 +- docs/functions_m.html | 2 +- docs/functions_n.html | 2 +- docs/functions_p.html | 2 +- docs/functions_r.html | 2 +- docs/functions_s.html | 2 +- docs/functions_t.html | 2 +- docs/functions_type.html | 2 +- docs/functions_u.html | 2 +- docs/functions_v.html | 2 +- docs/functions_w.html | 2 +- docs/hierarchy.html | 2 +- docs/index.html | 5 +- docs/instance_8hpp_source.html | 4 +- docs/list_8hpp_source.html | 4 +- docs/macros_8hpp_source.html | 2 +- docs/mastodon-cpp_8hpp_source.html | 2 +- docs/mention_8hpp_source.html | 4 +- docs/notification_8hpp_source.html | 6 +- docs/pushsubscription_8hpp_source.html | 6 +- docs/relationship_8hpp_source.html | 4 +- docs/report_8hpp_source.html | 4 +- docs/results_8hpp_source.html | 4 +- docs/status_8hpp_source.html | 6 +- docs/tag_8hpp_source.html | 4 +- 134 files changed, 288 insertions(+), 221 deletions(-) diff --git a/docs/account_8hpp_source.html b/docs/account_8hpp_source.html index 6c18422..578c898 100644 --- a/docs/account_8hpp_source.html +++ b/docs/account_8hpp_source.html @@ -19,7 +19,7 @@
mastodon-cpp -  0.20.0 +  0.21.0
@@ -64,7 +64,7 @@ $(function() {
const string note() const
Returns note in plain text.
Definition: account.cpp:278
Source()
Constructs an empty Account::Source object.
Definition: account.cpp:235
const string header_static() const
Returns URL of static header image.
Definition: account.cpp:152
-
visibility_type
Describes visibility of toots.
Definition: easy.hpp:68
+
visibility_type
Describes visibility of toots.
Definition: easy.hpp:69
visibility_type privacy() const
Returns default privacy of new toots.
Definition: account.cpp:210
const string username() const
Returns username (without )
Definition: account.cpp:372
const string display_name() const
Returns display name.
Definition: account.cpp:87
@@ -74,7 +74,7 @@ $(function() {
const Account moved() const
If the owner decided to switch accounts, new account is in this attribute.
Definition: account.cpp:183
Definition: mastodon-cpp.hpp:52
virtual bool valid() const
Returns true if the Entity holds valid data.
Definition: account.cpp:239
-
Base class for all entities.
Definition: easy.hpp:304
+
Base class for all entities.
Definition: easy.hpp:319
visibility_type privacy() const
Returns default privacy of new toots.
Definition: account.cpp:289
bool locked() const
Returns true if the account is locked.
Definition: account.cpp:162
Class to hold source attribute.
Definition: account.hpp:263
diff --git a/docs/all_8hpp_source.html b/docs/all_8hpp_source.html index 1473dd8..479fcfb 100644 --- a/docs/all_8hpp_source.html +++ b/docs/all_8hpp_source.html @@ -19,7 +19,7 @@
mastodon-cpp -  0.20.0 +  0.21.0
diff --git a/docs/annotated.html b/docs/annotated.html index b078f2f..28ce422 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -19,7 +19,7 @@
mastodon-cpp -  0.20.0 +  0.21.0
diff --git a/docs/application_8hpp_source.html b/docs/application_8hpp_source.html index 9a99a57..ed7376a 100644 --- a/docs/application_8hpp_source.html +++ b/docs/application_8hpp_source.html @@ -19,7 +19,7 @@
mastodon-cpp -  0.20.0 +  0.21.0
@@ -52,7 +52,7 @@ $(function() {
virtual bool valid() const
Returns true if the Entity holds valid data.
Definition: application.cpp:30
const string name() const
Returns the name of the application.
Definition: application.cpp:35
Definition: mastodon-cpp.hpp:52
-
Base class for all entities.
Definition: easy.hpp:304
+
Base class for all entities.
Definition: easy.hpp:319
Class to hold applications.
Definition: application.hpp:40
diff --git a/docs/attachment_8hpp_source.html b/docs/attachment_8hpp_source.html index bd8b2f1..946bb88 100644 --- a/docs/attachment_8hpp_source.html +++ b/docs/attachment_8hpp_source.html @@ -19,7 +19,7 @@
mastodon-cpp -  0.20.0 +  0.21.0
@@ -54,7 +54,7 @@ $(function() {
Class to hold attachments.
Definition: attachment.hpp:44
uint_fast64_t width_small() const
Returns the width of the preview image.
Definition: attachment.cpp:198
uint_fast64_t id() const
Returns the ID of the attachment.
Definition: attachment.cpp:142
-
attachment_type
Describes the attachment type.
Definition: easy.hpp:82
+
attachment_type
Describes the attachment type.
Definition: easy.hpp:83
const string text_url() const
Returns shorter URL for the image.
Definition: attachment.cpp:167
const string size_small() const
Returns the size of the preview image.
Definition: attachment.cpp:162
double aspect() const
Aspect of original image.
Definition: attachment.cpp:45
@@ -65,7 +65,7 @@ $(function() {
const std::chrono::duration< double > duration() const
Returns the duration of a video in seconds.
Definition: attachment.cpp:71
attachment_type type() const
Returns attachment type.
Definition: attachment.cpp:172
Definition: mastodon-cpp.hpp:52
-
Base class for all entities.
Definition: easy.hpp:304
+
Base class for all entities.
Definition: easy.hpp:319
uint_fast64_t height() const
Returns the height of the original image.
Definition: attachment.cpp:132
const string size() const
Returns the size of the original image.
Definition: attachment.cpp:157
double aspect_small() const
Aspect of preview image.
Definition: attachment.cpp:50
diff --git a/docs/card_8hpp_source.html b/docs/card_8hpp_source.html index 642f7f2..92ad32c 100644 --- a/docs/card_8hpp_source.html +++ b/docs/card_8hpp_source.html @@ -19,7 +19,7 @@
mastodon-cpp -  0.20.0 +  0.21.0
@@ -49,7 +49,7 @@ $(function() {
1 /* This file is part of mastodon-cpp.
2  * Copyright © 2018 tastytea <tastytea@tastytea.de>
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, version 3.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef MASTODON_CPP_EASY_CARD_HPP
18 #define MASTODON_CPP_EASY_CARD_HPP
19 
20 #include <string>
21 #include <cstdint>
22 
23 // If we are compiling mastodon-cpp, use another include path
24 #ifdef MASTODON_CPP
25  #include "mastodon-cpp.hpp"
26  #include "easy/easy.hpp"
27 #else
28  #include <mastodon-cpp/mastodon-cpp.hpp>
29  #include <mastodon-cpp/easy/easy.hpp>
30 #endif
31 
32 using std::string;
33 using std::uint_fast64_t;
34 
35 namespace Mastodon
36 {
42  class Easy::Card : public Easy::Entity
43  {
44  public:
52  explicit Card(const string &json);
53 
59  Card();
60 
61  virtual bool valid() const;
62 
68  const string author_name() const;
69 
75  const string author_url() const;
76 
82  const string description() const;
83 
89  uint_fast64_t height() const;
90 
96  const string html() const;
97 
103  const string image() const;
104 
110  const string provider_name() const;
111 
117  const string provider_url() const;
118 
124  const string title() const;
125 
131  Easy::card_type type() const;
132 
138  const string url() const;
139 
145  uint_fast64_t width() const;
146  };
147 }
148 
149 #endif // MASTODON_CPP_EASY_CARD_HPP
const string provider_url() const
Returns the URL of the provider.
Definition: card.cpp:79
Class to hold cards.
Definition: card.hpp:42
-
card_type
Describes the card type.
Definition: easy.hpp:96
+
card_type
Describes the card type.
Definition: easy.hpp:97
virtual bool valid() const
Returns true if the Entity holds valid data.
Definition: card.cpp:31
Easy::card_type type() const
Returns the type of the card.
Definition: card.cpp:89
const string title() const
Returns the title.
Definition: card.cpp:84
@@ -62,7 +62,7 @@ $(function() {
uint_fast64_t height() const
Returns the height of the card.
Definition: card.cpp:59
uint_fast64_t width() const
Returns the width of the card.
Definition: card.cpp:110
Definition: mastodon-cpp.hpp:52
-
Base class for all entities.
Definition: easy.hpp:304
+
Base class for all entities.
Definition: easy.hpp:319
const string image() const
Returns the URL of the image associated with the card.
Definition: card.cpp:69
const string html() const
Returns the HTML.
Definition: card.cpp:64
diff --git a/docs/classMastodon_1_1API-members.html b/docs/classMastodon_1_1API-members.html index 9b0ec13..189de6a 100644 --- a/docs/classMastodon_1_1API-members.html +++ b/docs/classMastodon_1_1API-members.html @@ -19,7 +19,7 @@
mastodon-cpp -  0.20.0 +  0.21.0
diff --git a/docs/classMastodon_1_1API.html b/docs/classMastodon_1_1API.html index 9f11309..be00d3c 100644 --- a/docs/classMastodon_1_1API.html +++ b/docs/classMastodon_1_1API.html @@ -19,7 +19,7 @@
mastodon-cpp -  0.20.0 +  0.21.0
diff --git a/docs/classMastodon_1_1API_1_1http-members.html b/docs/classMastodon_1_1API_1_1http-members.html index 9aae4ce..a5b742d 100644 --- a/docs/classMastodon_1_1API_1_1http-members.html +++ b/docs/classMastodon_1_1API_1_1http-members.html @@ -19,7 +19,7 @@
mastodon-cpp -  0.20.0 +  0.21.0
diff --git a/docs/classMastodon_1_1API_1_1http.html b/docs/classMastodon_1_1API_1_1http.html index 4241023..0505e4a 100644 --- a/docs/classMastodon_1_1API_1_1http.html +++ b/docs/classMastodon_1_1API_1_1http.html @@ -19,7 +19,7 @@
mastodon-cpp -  0.20.0 +  0.21.0
diff --git a/docs/classMastodon_1_1Easy-members.html b/docs/classMastodon_1_1Easy-members.html index 93d59af..4d61c92 100644 --- a/docs/classMastodon_1_1Easy-members.html +++ b/docs/classMastodon_1_1Easy-members.html @@ -19,7 +19,7 @@
mastodon-cpp -  0.20.0 +  0.21.0
@@ -71,43 +71,44 @@ $(function() { get_header(const string &header) constMastodon::API get_instance() constMastodon::API get_link() constMastodon::Easy - get_proxy(string &proxy, string &userpw) constMastodon::API - get_stream(const Mastodon::API::v1 &call, const parametermap &parameters, string &answer, std::unique_ptr< Mastodon::API::http > &ptr)Mastodon::API - get_stream(const Mastodon::API::v1 &call, string &answer, std::unique_ptr< Mastodon::API::http > &ptr)Mastodon::API - get_stream(const string &call, string &answer, std::unique_ptr< Mastodon::API::http > &ptr)Mastodon::API - get_stream(const Mastodon::API::v1 &call, const string &argument, string &answer, std::unique_ptr< Mastodon::API::http > &ptr) (defined in Mastodon::API)Mastodon::API - get_useragent() constMastodon::API - json_array_to_vector(const string &json)Mastodon::Easystatic - notification_type enum nameMastodon::Easy - parametermap typedefMastodon::API - parse_stream(const std::string &streamdata)Mastodon::Easystatic - patch(const Mastodon::API::v1 &call, const parametermap &parameters, string &answer)Mastodon::API - post(const Mastodon::API::v1 &call, string &answer)Mastodon::API - post(const Mastodon::API::v1 &call, const parametermap &parameters, string &answer)Mastodon::API - post(const string &call, const parametermap &parameters, string &answer)Mastodon::API - post(const Mastodon::API::v1 &call, const string &argument, string &answer) (defined in Mastodon::API)Mastodon::API - post(const Mastodon::API::v1 &call, const string &argument, const parametermap &parameters, string &answer) (defined in Mastodon::API)Mastodon::API - put(const Mastodon::API::v1 &call, const parametermap &parameters, string &answer)Mastodon::API - put(const string &call, const parametermap &parameters, string &answer)Mastodon::API - put(const Mastodon::API::v1 &call, const string &argument, const parametermap &parameters, string &answer) (defined in Mastodon::API)Mastodon::API - register_app1(const string &client_name, const string &redirect_uri, const string &scopes, const string &website, string &client_id, string &client_secret, string &url)Mastodon::API - register_app1(const string &instance, const string &client_name, const string &redirect_uri, const string &scopes, const string &website, string &client_id, string &client_secret, string &url) (defined in Mastodon::API)Mastodon::API - register_app2(const string &client_id, const string &client_secret, const string &redirect_uri, const string &code, string &access_token)Mastodon::API - register_app2(const string &instance, const string &client_id, const string &client_secret, const string &redirect_uri, const string &code, string &access_token) (defined in Mastodon::API)Mastodon::API - send_post(const Status &status, uint_fast16_t &error)Mastodon::Easy - send_toot(const Status &status, uint_fast16_t &error)Mastodon::Easy - set_proxy(const string &proxy, const string &userpw="")Mastodon::API - set_useragent(const string &useragent)Mastodon::API - stream_event typedefMastodon::Easy - strtime(const system_clock::time_point &timepoint, const string &format, const bool &utc) (defined in Mastodon::Easy)Mastodon::Easyinlineprotectedstatic - strtime_local(const system_clock::time_point &timepoint, const string &format)Mastodon::Easystatic - strtime_utc(const system_clock::time_point &timepoint, const string &format)Mastodon::Easystatic - unescape_html(const string &html)Mastodon::APIstatic - urldecode(const string &str)Mastodon::APIstatic - urlencode(const string &str)Mastodon::APIstatic - v1 enum nameMastodon::API - v2 enum nameMastodon::API - visibility_type enum nameMastodon::Easy + get_notifications(uint_fast16_t &error, const uint_fast16_t limit=20, const uint_fast64_t since_id=0, const uint_fast64_t max_id=0)Mastodon::Easy + get_proxy(string &proxy, string &userpw) constMastodon::API + get_stream(const Mastodon::API::v1 &call, const parametermap &parameters, string &answer, std::unique_ptr< Mastodon::API::http > &ptr)Mastodon::API + get_stream(const Mastodon::API::v1 &call, string &answer, std::unique_ptr< Mastodon::API::http > &ptr)Mastodon::API + get_stream(const string &call, string &answer, std::unique_ptr< Mastodon::API::http > &ptr)Mastodon::API + get_stream(const Mastodon::API::v1 &call, const string &argument, string &answer, std::unique_ptr< Mastodon::API::http > &ptr) (defined in Mastodon::API)Mastodon::API + get_useragent() constMastodon::API + json_array_to_vector(const string &json)Mastodon::Easystatic + notification_type enum nameMastodon::Easy + parametermap typedefMastodon::API + parse_stream(const std::string &streamdata)Mastodon::Easystatic + patch(const Mastodon::API::v1 &call, const parametermap &parameters, string &answer)Mastodon::API + post(const Mastodon::API::v1 &call, string &answer)Mastodon::API + post(const Mastodon::API::v1 &call, const parametermap &parameters, string &answer)Mastodon::API + post(const string &call, const parametermap &parameters, string &answer)Mastodon::API + post(const Mastodon::API::v1 &call, const string &argument, string &answer) (defined in Mastodon::API)Mastodon::API + post(const Mastodon::API::v1 &call, const string &argument, const parametermap &parameters, string &answer) (defined in Mastodon::API)Mastodon::API + put(const Mastodon::API::v1 &call, const parametermap &parameters, string &answer)Mastodon::API + put(const string &call, const parametermap &parameters, string &answer)Mastodon::API + put(const Mastodon::API::v1 &call, const string &argument, const parametermap &parameters, string &answer) (defined in Mastodon::API)Mastodon::API + register_app1(const string &client_name, const string &redirect_uri, const string &scopes, const string &website, string &client_id, string &client_secret, string &url)Mastodon::API + register_app1(const string &instance, const string &client_name, const string &redirect_uri, const string &scopes, const string &website, string &client_id, string &client_secret, string &url) (defined in Mastodon::API)Mastodon::API + register_app2(const string &client_id, const string &client_secret, const string &redirect_uri, const string &code, string &access_token)Mastodon::API + register_app2(const string &instance, const string &client_id, const string &client_secret, const string &redirect_uri, const string &code, string &access_token) (defined in Mastodon::API)Mastodon::API + send_post(const Status &status, uint_fast16_t &error)Mastodon::Easy + send_toot(const Status &status, uint_fast16_t &error)Mastodon::Easy + set_proxy(const string &proxy, const string &userpw="")Mastodon::API + set_useragent(const string &useragent)Mastodon::API + stream_event typedefMastodon::Easy + strtime(const system_clock::time_point &timepoint, const string &format, const bool &utc) (defined in Mastodon::Easy)Mastodon::Easyinlineprotectedstatic + strtime_local(const system_clock::time_point &timepoint, const string &format)Mastodon::Easystatic + strtime_utc(const system_clock::time_point &timepoint, const string &format)Mastodon::Easystatic + unescape_html(const string &html)Mastodon::APIstatic + urldecode(const string &str)Mastodon::APIstatic + urlencode(const string &str)Mastodon::APIstatic + v1 enum nameMastodon::API + v2 enum nameMastodon::API + visibility_type enum nameMastodon::Easy