summary refs log tree commit diff stats
path: root/sap.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-11-13 12:20:39 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2025-11-13 12:20:39 -0500
commit55912eb0293ab8c539acbc97d85ee9cc73346091 (patch)
tree5fc90cbf7fda6d2fedc0c55cf33e5372f58db167 /sap.h
parentc728c44d896425bbe39f0ce3803e028d119bd63c (diff)
downloadsap-55912eb0293ab8c539acbc97d85ee9cc73346091.tar.gz
sap-55912eb0293ab8c539acbc97d85ee9cc73346091.tar.bz2
sap-55912eb0293ab8c539acbc97d85ee9cc73346091.zip
Bot now posts to Tumblr
Diffstat (limited to 'sap.h')
-rw-r--r--sap.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/sap.h b/sap.h index 44ece23..c7f5909 100644 --- a/sap.h +++ b/sap.h
@@ -5,7 +5,7 @@
5#include <string> 5#include <string>
6#include <memory> 6#include <memory>
7#include <Magick++.h> 7#include <Magick++.h>
8#include <mastodonpp.hpp> 8#include <liboauthcpp/liboauthcpp.h>
9#include <rawr.h> 9#include <rawr.h>
10#include "designer.h" 10#include "designer.h"
11#include "director.h" 11#include "director.h"
@@ -21,15 +21,17 @@ public:
21 21
22private: 22private:
23 23
24 void sendTweet(Magick::Image image, const std::string& text) const; 24 void postToTumblr(const std::string& text, Magick::Image image) const;
25 25
26 std::mt19937& rng_; 26 std::mt19937& rng_;
27 std::unique_ptr<mastodonpp::Instance> instance_; 27 std::unique_ptr<OAuth::Consumer> tumblr_consumer_;
28 std::unique_ptr<mastodonpp::Connection> connection_; 28 std::unique_ptr<OAuth::Token> tumblr_token_;
29 std::unique_ptr<OAuth::Client> tumblr_client_;
29 rawr kgramstats_; 30 rawr kgramstats_;
30 std::unique_ptr<designer> layout_; 31 std::unique_ptr<designer> layout_;
31 std::unique_ptr<director> director_; 32 std::unique_ptr<director> director_;
32 std::string tempfile_; 33 std::string tempfile_;
34 std::string blog_name_;
33 35
34}; 36};
35 37