Commit Graph

42 Commits

Author SHA1 Message Date
tastytea 8c7493e68e
Reformat header files. 2020-11-13 13:45:59 +01:00
tastytea 4da6929392
Add note about scopes in documentation for ObtainToken::step_1().
continuous-integration/drone/push Build is passing Details
2020-11-13 13:33:24 +01:00
tastytea f16e6d61e0
Remove unused using declaration. 2020-04-18 15:25:49 +02:00
tastytea 5bf1e9bf25
Define copy constructor for instance.
continuous-integration/drone/push Build is passing Details
Needed because the underlying CURLWrapper is not copied but freshly created, so
access_token, proxy, cainfo and useragent have to be set.
2020-03-21 11:38:34 +01:00
tastytea 251d8a975c
Set access token in CURLWrapper too if it is set in Instance. 2020-03-21 11:26:23 +01:00
tastytea abd7079c5a
Allow argument in constructor of Connection to be const.
continuous-integration/drone/push Build is running Details
2020-03-20 14:47:44 +01:00
tastytea 9d37bebdc8
Add missing constructors and assignment operators
continuous-integration/drone/push Build is passing Details
… to Instance and Connection.
2020-03-20 13:49:30 +01:00
tastytea 02a22d773c
Make set_proxy(), set_cainfo(), set_useragent() virtual.
continuous-integration/drone/push Build is passing Details
2020-01-24 22:06:47 +01:00
tastytea c9ea49ed91
Enhance documentation for Instance and Connection.
continuous-integration/drone/push Build is passing Details
2020-01-24 02:18:54 +01:00
tastytea 2c13f03a1c
Clarify documentation for Instance::ObtainToken::step_2(). 2020-01-20 02:32:48 +01:00
tastytea 3d614afa72
Instance is not a function. 2020-01-20 02:29:01 +01:00
tastytea 60f26dc864
Report right headerfile location for Instance::ObtainToken. 2020-01-20 02:26:15 +01:00
tastytea a237d74a81
Use bracket initialization in example code. 2020-01-14 23:34:50 +01:00
tastytea 7afc8d19a9
Add documentation for set_useragent().
continuous-integration/drone/push Build is passing Details
2020-01-14 23:28:20 +01:00
tastytea 968863301a
Mark ObtainToken constructor explicit. 2020-01-14 23:27:30 +01:00
tastytea a8e342202d
Move types into types.hpp and add answer_type::next() and prev(). 2020-01-14 20:44:08 +01:00
tastytea 9ae50917dd
Remove Instance::get_proxy() and Instance::get_cainfo().
continuous-integration/drone/push Build is failing Details
We can't get the values that were set using environment variables or build-time
options. We don't need them anymore for initializing “Connection”s.
2020-01-12 17:39:39 +01:00
tastytea 1b4ad05acb
Add set_useragent(). 2020-01-12 17:37:06 +01:00
tastytea 975fe57677
Simplify connection setup.
By adding CURLWrapper::setup_connection_properties.
2020-01-12 17:24:02 +01:00
tastytea b192bc70c7
Fix @since-tags that point to nonexisting versions.
continuous-integration/drone/push Build is passing Details
2020-01-12 16:30:20 +01:00
tastytea 02b0b05aa1
Add Instance::ObtainToken. 2020-01-12 16:28:04 +01:00
tastytea 79c5087ca5
Marked some functions noexcept.
continuous-integration/drone/push Build is failing Details
2020-01-12 15:28:26 +01:00
tastytea 97eb269865
Add Instance::set_cainfo(). 2020-01-12 13:37:53 +01:00
tastytea a6b328c2d1
Add Instance::get_post_formats().
continuous-integration/drone/push Build is passing Details
2020-01-11 20:05:11 +01:00
tastytea b9bf28c264
Add Instance::get_nodeinfo(). 2020-01-11 19:51:16 +01:00
tastytea d749e3aa23
Improve documentation for get_max_chars(). 2020-01-11 17:59:14 +01:00
tastytea f7191d1f3b
Add support for setting the access token. 2020-01-10 14:27:00 +01:00
tastytea e4a5b8e9ce
Move set_proxy() to Instance. 2020-01-09 11:23:15 +01:00
tastytea 4b118e75f1
Fix / ignore some clang-tidy warnings. 2020-01-08 17:38:27 +01:00
tastytea 1f78b00205
Replace string with string_view where possible. 2020-01-08 16:46:27 +01:00
tastytea 0638f8fe9a
Query max_toot_chars the first time get_max_chars() is called. 2020-01-06 09:31:05 +01:00
tastytea 6663cca653
Change signature of Instance. 2020-01-06 09:11:32 +01:00
tastytea 61a26dbb67
Query instance for max_toot_chars. 2020-01-05 11:17:10 +01:00
tastytea db315a3a70
Instance: Add getters for hostname, baseuri and access_token. 2020-01-05 10:33:54 +01:00
tastytea a7a861351f
Move low-level network stuff to CURLWrapper. 2020-01-04 18:11:24 +01:00
tastytea 81e579f162
Only initialize libcurl once. 2020-01-04 16:23:52 +01:00
tastytea 5eb11534a5
Update description for Instance. 2020-01-04 13:29:36 +01:00
tastytea 8f03c49569
Add constructors and assignment operators to Instance.
Explicitly set copy & move constructors to default, explicitly delete copy &
move assignment operators. Make destructor virtual.
2020-01-04 13:27:36 +01:00
tastytea 892f1c6f87
Fix headers in Doxygen output. 2020-01-04 12:04:47 +01:00
tastytea e6690c85b4
Add curl initialization. 2020-01-04 11:38:27 +01:00
tastytea 9874e76de2
Improve documentation.
continuous-integration/drone/push Build is passing Details
2020-01-03 13:05:00 +01:00
tastytea 4c557aae6e
Use Instance and Request classes. 2020-01-03 12:42:10 +01:00