From 70ffa285512d2fa829b6c73aa24d6f4b3e314edd Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Sun, 15 Mar 2020 14:55:06 +0300 Subject: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1661372..4143d88 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@
[![GitHub contributors](https://img.shields.io/github/contributors/reo7sp/tgbot-cpp.svg)](https://github.com/reo7sp/tgbot-cpp/graphs/contributors) -C++ library for Telegram bot API. +C++14 library for Telegram bot API. Documentation is located [here](http://reo7sp.github.io/tgbot-cpp). -- cgit v1.2.3 From a2ea1d3c9df1718cafaf0e51d19c73e0ced903e5 Mon Sep 17 00:00:00 2001 From: Alexander Zaitsev Date: Tue, 17 Mar 2020 05:21:09 +0300 Subject: format: add missing headers - add missing include headers in different part of tgbot-cpp library, remove unused includes Tested: - Local build --- include/tgbot/Api.h | 1 + include/tgbot/EventBroadcaster.h | 1 + include/tgbot/TgTypeParser.h | 4 ++++ include/tgbot/net/BoostHttpOnlySslClient.h | 1 + include/tgbot/net/CurlHttpClient.h | 1 + include/tgbot/net/HttpClient.h | 1 + include/tgbot/net/HttpReqArg.h | 1 - include/tgbot/net/HttpServer.h | 4 ++++ include/tgbot/net/TgWebhookLocalServer.h | 2 ++ include/tgbot/net/TgWebhookServer.h | 2 ++ include/tgbot/net/TgWebhookTcpServer.h | 2 ++ samples/echobot-curl-client/src/main.cpp | 1 + samples/echobot-submodule/src/main.cpp | 1 + samples/echobot-webhook-server/src/main.cpp | 1 + samples/echobot/src/main.cpp | 1 + samples/inline-keyboard/src/main.cpp | 1 + samples/photo/src/main.cpp | 1 + src/Api.cpp | 5 ++++- src/Bot.cpp | 3 +++ src/EventHandler.cpp | 1 + src/TgException.cpp | 2 ++ src/TgTypeParser.cpp | 3 +++ src/net/BoostHttpOnlySslClient.cpp | 1 + src/net/CurlHttpClient.cpp | 3 +-- src/net/HttpParser.cpp | 4 +++- src/net/TgLongPoll.cpp | 2 ++ src/net/Url.cpp | 1 + src/tools/FileTools.cpp | 1 + src/tools/StringTools.cpp | 2 +- src/types/InlineQueryResult.cpp | 2 ++ src/types/InputFile.cpp | 3 +++ 31 files changed, 53 insertions(+), 6 deletions(-) diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index ac37231..50e10ed 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -2,6 +2,7 @@ #define TGBOT_CPP_API_H #include +#include #include #include diff --git a/include/tgbot/EventBroadcaster.h b/include/tgbot/EventBroadcaster.h index 978a6fe..86a82be 100644 --- a/include/tgbot/EventBroadcaster.h +++ b/include/tgbot/EventBroadcaster.h @@ -1,6 +1,7 @@ #ifndef TGBOT_EVENTBROADCASTER_H #define TGBOT_EVENTBROADCASTER_H +#include #include #include #include diff --git a/include/tgbot/TgTypeParser.h b/include/tgbot/TgTypeParser.h index 02f8ee5..91e99ef 100644 --- a/include/tgbot/TgTypeParser.h +++ b/include/tgbot/TgTypeParser.h @@ -1,7 +1,11 @@ #ifndef TGBOT_CPP_TGTYPEPARSER_H #define TGBOT_CPP_TGTYPEPARSER_H +#include +#include #include +#include +#include #include #include diff --git a/include/tgbot/net/BoostHttpOnlySslClient.h b/include/tgbot/net/BoostHttpOnlySslClient.h index 594b3fe..9ddbba2 100644 --- a/include/tgbot/net/BoostHttpOnlySslClient.h +++ b/include/tgbot/net/BoostHttpOnlySslClient.h @@ -2,6 +2,7 @@ #define TGBOT_BOOSTHTTPCLIENT_H #include +#include #include diff --git a/include/tgbot/net/CurlHttpClient.h b/include/tgbot/net/CurlHttpClient.h index 202cc40..cf120a4 100644 --- a/include/tgbot/net/CurlHttpClient.h +++ b/include/tgbot/net/CurlHttpClient.h @@ -4,6 +4,7 @@ #ifdef HAVE_CURL #include +#include #include diff --git a/include/tgbot/net/HttpClient.h b/include/tgbot/net/HttpClient.h index d9c72be..8542153 100644 --- a/include/tgbot/net/HttpClient.h +++ b/include/tgbot/net/HttpClient.h @@ -2,6 +2,7 @@ #define TGBOT_HTTPCLIENT_H #include +#include #include "tgbot/net/Url.h" #include "tgbot/net/HttpReqArg.h" diff --git a/include/tgbot/net/HttpReqArg.h b/include/tgbot/net/HttpReqArg.h index 72dfd7d..30ab407 100644 --- a/include/tgbot/net/HttpReqArg.h +++ b/include/tgbot/net/HttpReqArg.h @@ -4,7 +4,6 @@ #include "tgbot/export.h" #include -#include #include #include diff --git a/include/tgbot/net/HttpServer.h b/include/tgbot/net/HttpServer.h index ccee077..2eb229a 100644 --- a/include/tgbot/net/HttpServer.h +++ b/include/tgbot/net/HttpServer.h @@ -2,8 +2,12 @@ #define TGBOT_HTTPSERVER_H #include +#include +#include #include +#include #include +#include #include #include diff --git a/include/tgbot/net/TgWebhookLocalServer.h b/include/tgbot/net/TgWebhookLocalServer.h index 2a64374..4f1dc2b 100644 --- a/include/tgbot/net/TgWebhookLocalServer.h +++ b/include/tgbot/net/TgWebhookLocalServer.h @@ -3,6 +3,8 @@ #ifdef BOOST_ASIO_HAS_LOCAL_SOCKETS +#include + #include "tgbot/net/TgWebhookServer.h" namespace TgBot { diff --git a/include/tgbot/net/TgWebhookServer.h b/include/tgbot/net/TgWebhookServer.h index 2f3c5b8..f0b08b3 100644 --- a/include/tgbot/net/TgWebhookServer.h +++ b/include/tgbot/net/TgWebhookServer.h @@ -1,6 +1,8 @@ #ifndef TGBOT_TGHTTPSERVER_H #define TGBOT_TGHTTPSERVER_H +#include +#include #include #include "tgbot/Bot.h" diff --git a/include/tgbot/net/TgWebhookTcpServer.h b/include/tgbot/net/TgWebhookTcpServer.h index 28ae8aa..53eec17 100644 --- a/include/tgbot/net/TgWebhookTcpServer.h +++ b/include/tgbot/net/TgWebhookTcpServer.h @@ -1,6 +1,8 @@ #ifndef TGBOT_TGWEBHOOKTCPSERVER_H #define TGBOT_TGWEBHOOKTCPSERVER_H +#include + #include "tgbot/net/TgWebhookServer.h" namespace TgBot { diff --git a/samples/echobot-curl-client/src/main.cpp b/samples/echobot-curl-client/src/main.cpp index 630dad8..a957011 100644 --- a/samples/echobot-curl-client/src/main.cpp +++ b/samples/echobot-curl-client/src/main.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include diff --git a/samples/echobot-submodule/src/main.cpp b/samples/echobot-submodule/src/main.cpp index 966ae6f..c26cbdf 100644 --- a/samples/echobot-submodule/src/main.cpp +++ b/samples/echobot-submodule/src/main.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include diff --git a/samples/echobot-webhook-server/src/main.cpp b/samples/echobot-webhook-server/src/main.cpp index d51246d..2919c2e 100644 --- a/samples/echobot-webhook-server/src/main.cpp +++ b/samples/echobot-webhook-server/src/main.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include diff --git a/samples/echobot/src/main.cpp b/samples/echobot/src/main.cpp index 966ae6f..c26cbdf 100644 --- a/samples/echobot/src/main.cpp +++ b/samples/echobot/src/main.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include diff --git a/samples/inline-keyboard/src/main.cpp b/samples/inline-keyboard/src/main.cpp index 70cf7c7..2e3ec68 100644 --- a/samples/inline-keyboard/src/main.cpp +++ b/samples/inline-keyboard/src/main.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include diff --git a/samples/photo/src/main.cpp b/samples/photo/src/main.cpp index cca31f0..d6bfe83 100644 --- a/samples/photo/src/main.cpp +++ b/samples/photo/src/main.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include diff --git a/src/Api.cpp b/src/Api.cpp index c1b112c..4700281 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -1,9 +1,12 @@ #include "tgbot/Api.h" #include -#include +#include +#include #include +#include "tgbot/tools/StringTools.h" + #include "tgbot/TgException.h" #include "tgbot/TgTypeParser.h" diff --git a/src/Bot.cpp b/src/Bot.cpp index b1e1ea5..e0acbdb 100644 --- a/src/Bot.cpp +++ b/src/Bot.cpp @@ -2,6 +2,9 @@ #include "tgbot/EventBroadcaster.h" +#include +#include + namespace TgBot { Bot::Bot(std::string token, const HttpClient& httpClient) diff --git a/src/EventHandler.cpp b/src/EventHandler.cpp index 43f2eb1..cad3e4f 100644 --- a/src/EventHandler.cpp +++ b/src/EventHandler.cpp @@ -2,6 +2,7 @@ #include #include +#include using namespace std; diff --git a/src/TgException.cpp b/src/TgException.cpp index 03a942c..e61e09c 100644 --- a/src/TgException.cpp +++ b/src/TgException.cpp @@ -1,5 +1,7 @@ #include "tgbot/TgException.h" +#include + namespace TgBot { TgBot::TgException::TgException(const std::string& description) : runtime_error(description) { diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index 4d91d28..06a2b2a 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -1,5 +1,8 @@ #include "tgbot/TgTypeParser.h" +#include +#include + using namespace std; using namespace boost::property_tree; diff --git a/src/net/BoostHttpOnlySslClient.cpp b/src/net/BoostHttpOnlySslClient.cpp index 836b06a..6cf906f 100644 --- a/src/net/BoostHttpOnlySslClient.cpp +++ b/src/net/BoostHttpOnlySslClient.cpp @@ -1,6 +1,7 @@ #include "tgbot/net/BoostHttpOnlySslClient.h" #include +#include #include diff --git a/src/net/CurlHttpClient.cpp b/src/net/CurlHttpClient.cpp index 6255974..5fde377 100644 --- a/src/net/CurlHttpClient.cpp +++ b/src/net/CurlHttpClient.cpp @@ -3,8 +3,7 @@ #include "tgbot/net/CurlHttpClient.h" #include - -#include +#include namespace TgBot { diff --git a/src/net/HttpParser.cpp b/src/net/HttpParser.cpp index 2d3085f..2f72609 100644 --- a/src/net/HttpParser.cpp +++ b/src/net/HttpParser.cpp @@ -1,7 +1,9 @@ #include "tgbot/net/HttpParser.h" #include -#include +#include +#include +#include #include diff --git a/src/net/TgLongPoll.cpp b/src/net/TgLongPoll.cpp index 98575de..a7b4fcb 100644 --- a/src/net/TgLongPoll.cpp +++ b/src/net/TgLongPoll.cpp @@ -5,6 +5,8 @@ #include "tgbot/EventHandler.h" #include +#include +#include #include namespace TgBot { diff --git a/src/net/Url.cpp b/src/net/Url.cpp index 95e31c7..4b46f41 100644 --- a/src/net/Url.cpp +++ b/src/net/Url.cpp @@ -1,6 +1,7 @@ #include "tgbot/net/Url.h" #include +#include using namespace std; diff --git a/src/tools/FileTools.cpp b/src/tools/FileTools.cpp index d2c303c..bb5b7b5 100644 --- a/src/tools/FileTools.cpp +++ b/src/tools/FileTools.cpp @@ -2,6 +2,7 @@ #include #include +#include using namespace std; diff --git a/src/tools/StringTools.cpp b/src/tools/StringTools.cpp index f49a78e..8b8f4da 100644 --- a/src/tools/StringTools.cpp +++ b/src/tools/StringTools.cpp @@ -1,9 +1,9 @@ #include "tgbot/tools/StringTools.h" -#include #include #include #include +#include using namespace std; diff --git a/src/types/InlineQueryResult.cpp b/src/types/InlineQueryResult.cpp index 3d4ea6e..0993ec2 100644 --- a/src/types/InlineQueryResult.cpp +++ b/src/types/InlineQueryResult.cpp @@ -19,6 +19,8 @@ #include "tgbot/types/InlineQueryResultPhoto.h" #include "tgbot/types/InlineQueryResultVideo.h" +#include + using namespace TgBot; const std::string InlineQueryResultCachedAudio::TYPE = "audio"; diff --git a/src/types/InputFile.cpp b/src/types/InputFile.cpp index 0ca1991..c74c73e 100644 --- a/src/types/InputFile.cpp +++ b/src/types/InputFile.cpp @@ -2,6 +2,9 @@ #include "tgbot/tools/StringTools.h" #include "tgbot/tools/FileTools.h" +#include +#include + using namespace std; namespace TgBot { -- cgit v1.2.3