From fd0a9ceb7c6faab8b5ebf0632d66a737a8296ed6 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 20 Jan 2020 02:26:56 +0100 Subject: [PATCH] 2020-01-20 --- ...mastodonpp_1_1Instance_1_1ObtainToken.html | 14 ++-- docs/instance_8hpp_source.html | 80 +++++++++---------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/docs/classmastodonpp_1_1Instance_1_1ObtainToken.html b/docs/classmastodonpp_1_1Instance_1_1ObtainToken.html index dccf3ea..a4affe5 100644 --- a/docs/classmastodonpp_1_1Instance_1_1ObtainToken.html +++ b/docs/classmastodonpp_1_1Instance_1_1ObtainToken.html @@ -77,7 +77,7 @@ $(function() {

Simplifies obtaining an OAuth 2.0 Bearer Access Token. More...

-

#include <instance.hpp>

+

#include <mastodonpp/instance.hpp>

Inheritance diagram for mastodonpp::Instance::ObtainToken:
@@ -210,11 +210,11 @@ Additional Inherited Members

Constructor.

Since
0.3.0
-
243  : _instance{instance}
-
244  , _baseuri{instance.get_baseuri()}
-
245  {
-
246  _instance.copy_connection_properties(*this);
-
247  }
+
245  : _instance{instance}
+
246  , _baseuri{instance.get_baseuri()}
+
247  {
+
248  _instance.copy_connection_properties(*this);
+
249  }
@@ -300,7 +300,7 @@ Additional Inherited Members
  • include/instance.hpp
  • -
    Simplifies obtaining an OAuth 2.0 Bearer Access Token.
    Definition: instance.hpp:234
    +
    Simplifies obtaining an OAuth 2.0 Bearer Access Token.
    Definition: instance.hpp:236
    Holds the access data of an instance.
    Definition: instance.hpp:45
    void copy_connection_properties(CURLWrapper &curlwrapper)
    Set the properties of the connection of the calling class up.
    Definition: instance.hpp:74
    diff --git a/docs/instance_8hpp_source.html b/docs/instance_8hpp_source.html index 2770180..2cceded 100644 --- a/docs/instance_8hpp_source.html +++ b/docs/instance_8hpp_source.html @@ -173,47 +173,47 @@ $(function() {
    203  CURLWrapper::set_useragent(useragent);
    204  }
    205 
    -
    234  class ObtainToken : public CURLWrapper
    -
    235  {
    -
    236  public:
    -
    242  explicit ObtainToken(Instance &instance)
    -
    243  : _instance{instance}
    -
    244  , _baseuri{instance.get_baseuri()}
    -
    245  {
    -
    246  _instance.copy_connection_properties(*this);
    -
    247  }
    -
    248 
    -
    265  [[nodiscard]]
    -
    266  answer_type step_1(string_view client_name, string_view scopes,
    -
    267  string_view website);
    -
    268 
    -
    283  [[nodiscard]]
    -
    284  answer_type step_2(string_view code);
    -
    285 
    -
    286  private:
    -
    287  Instance &_instance;
    -
    288  const string _baseuri;
    -
    289  string _scopes;
    -
    290  string _client_id;
    -
    291  string _client_secret;
    -
    292  };
    -
    293 
    -
    294 private:
    -
    295  const string _hostname;
    -
    296  const string _baseuri;
    -
    297  string _access_token;
    -
    298  uint64_t _max_chars;
    -
    299  string _proxy;
    -
    300  vector<string> _post_formats;
    -
    301  string _cainfo;
    -
    302  string _useragent;
    -
    303 };
    -
    304 
    -
    305 } // namespace mastodonpp
    +
    236  class ObtainToken : public CURLWrapper
    +
    237  {
    +
    238  public:
    +
    244  explicit ObtainToken(Instance &instance)
    +
    245  : _instance{instance}
    +
    246  , _baseuri{instance.get_baseuri()}
    +
    247  {
    +
    248  _instance.copy_connection_properties(*this);
    +
    249  }
    +
    250 
    +
    267  [[nodiscard]]
    +
    268  answer_type step_1(string_view client_name, string_view scopes,
    +
    269  string_view website);
    +
    270 
    +
    285  [[nodiscard]]
    +
    286  answer_type step_2(string_view code);
    +
    287 
    +
    288  private:
    +
    289  Instance &_instance;
    +
    290  const string _baseuri;
    +
    291  string _scopes;
    +
    292  string _client_id;
    +
    293  string _client_secret;
    +
    294  };
    +
    295 
    +
    296 private:
    +
    297  const string _hostname;
    +
    298  const string _baseuri;
    +
    299  string _access_token;
    +
    300  uint64_t _max_chars;
    +
    301  string _proxy;
    +
    302  vector<string> _post_formats;
    +
    303  string _cainfo;
    +
    304  string _useragent;
    +
    305 };
    306 
    -
    307 #endif // MASTODONPP_INSTANCE_HPP
    +
    307 } // namespace mastodonpp
    +
    308 
    +
    309 #endif // MASTODONPP_INSTANCE_HPP
    -
    Simplifies obtaining an OAuth 2.0 Bearer Access Token.
    Definition: instance.hpp:234
    +
    Simplifies obtaining an OAuth 2.0 Bearer Access Token.
    Definition: instance.hpp:236
    answer_type get_nodeinfo()
    Returns the NodeInfo of the instance.
    string_view get_hostname() const noexcept
    Returns the hostname.
    Definition: instance.hpp:86
    answer_type step_1(string_view client_name, string_view scopes, string_view website)
    Creates an application via /api/v1/apps.
    @@ -231,7 +231,7 @@ $(function() {
    void set_cainfo(string_view path)
    Set path to Certificate Authority (CA) bundle.
    Definition: curl_wrapper.cpp:253
    Holds the access data of an instance.
    Definition: instance.hpp:45
    void set_useragent(string_view useragent)
    Sets the User-Agent.
    Definition: curl_wrapper.cpp:263
    -
    ObtainToken(Instance &instance)
    Constructor.
    Definition: instance.hpp:242
    +
    ObtainToken(Instance &instance)
    Constructor.
    Definition: instance.hpp:244
    void set_cainfo(string_view path)
    Set path to Certificate Authority (CA) bundle.
    Definition: instance.hpp:186
    Handles the details of network connections.
    Definition: curl_wrapper.hpp:58
    void copy_connection_properties(CURLWrapper &curlwrapper)
    Set the properties of the connection of the calling class up.
    Definition: instance.hpp:74