Moved include files, changed include directives
This commit is contained in:
parent
7b61d316f6
commit
dfe31b70e0
@ -1,24 +1,23 @@
|
|||||||
set (HEADERS
|
set (HEADERS
|
||||||
Audio.h
|
include/Audio.h
|
||||||
Document.h
|
include/Document.h
|
||||||
json_encode.h
|
include/json_encode.h
|
||||||
PhotoSize.h
|
include/PhotoSize.h
|
||||||
User.h
|
include/User.h
|
||||||
Chat.h
|
include/Chat.h
|
||||||
exec.h
|
include/exec.h
|
||||||
Location.h
|
include/Location.h
|
||||||
std.h
|
include/std.h
|
||||||
Venue.h
|
include/Venue.h
|
||||||
Contact.h
|
include/Contact.h
|
||||||
explode.h
|
include/explode.h
|
||||||
MessageEntity.h
|
include/MessageEntity.h
|
||||||
Sticker.h
|
include/Sticker.h
|
||||||
Video.h
|
include/Video.h
|
||||||
defines.h
|
include/http_build_query.h
|
||||||
http_build_query.h
|
include/Message.h
|
||||||
Message.h
|
include/TelegramBot.h
|
||||||
TelegramBot.h
|
include/Voice.h
|
||||||
Voice.h
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set (SOURCES
|
set (SOURCES
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "PhotoSize.h"
|
#include <Telegram/PhotoSize.h>
|
||||||
|
|
||||||
namespace Telegram {
|
namespace Telegram {
|
||||||
|
|
@ -6,18 +6,18 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "Audio.h"
|
#include <Telegram/Audio.h>
|
||||||
#include "Chat.h"
|
#include <Telegram/Chat.h>
|
||||||
#include "Contact.h"
|
#include <Telegram/Contact.h>
|
||||||
#include "Document.h"
|
#include <Telegram/Document.h>
|
||||||
#include "Location.h"
|
#include <Telegram/Location.h>
|
||||||
#include "MessageEntity.h"
|
#include <Telegram/MessageEntity.h>
|
||||||
#include "PhotoSize.h"
|
#include <Telegram/PhotoSize.h>
|
||||||
#include "Sticker.h"
|
#include <Telegram/Sticker.h>
|
||||||
#include "User.h"
|
#include <Telegram/User.h>
|
||||||
#include "Venue.h"
|
#include <Telegram/Venue.h>
|
||||||
#include "Video.h"
|
#include <Telegram/Video.h>
|
||||||
#include "Voice.h"
|
#include <Telegram/Voice.h>
|
||||||
|
|
||||||
namespace Telegram {
|
namespace Telegram {
|
||||||
|
|
@ -4,7 +4,7 @@
|
|||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "PhotoSize.h"
|
#include <Telegram/PhotoSize.h>
|
||||||
|
|
||||||
namespace Telegram {
|
namespace Telegram {
|
||||||
|
|
@ -7,7 +7,7 @@
|
|||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
|
|
||||||
#include "Message.h"
|
#include <Telegram/Message.h>
|
||||||
|
|
||||||
namespace Telegram {
|
namespace Telegram {
|
||||||
|
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "Location.h"
|
#include <Telegram/Location.h>
|
||||||
|
|
||||||
namespace Telegram {
|
namespace Telegram {
|
||||||
|
|
@ -4,7 +4,7 @@
|
|||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "PhotoSize.h"
|
#include <Telegram/PhotoSize.h>
|
||||||
|
|
||||||
namespace Telegram {
|
namespace Telegram {
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
#include "Audio.h"
|
#include "Telegram/Audio.h"
|
||||||
|
|
||||||
Telegram::Audio::Audio(Json::Value json) {
|
Telegram::Audio::Audio(Json::Value json) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "Chat.h"
|
#include "Telegram/Chat.h"
|
||||||
|
|
||||||
Telegram::Chat::Chat(Json::Value json) {
|
Telegram::Chat::Chat(Json::Value json) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "Contact.h"
|
#include "Telegram/Contact.h"
|
||||||
|
|
||||||
Telegram::Contact::Contact(Json::Value json) {
|
Telegram::Contact::Contact(Json::Value json) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "Document.h"
|
#include "Telegram/Document.h"
|
||||||
|
|
||||||
Telegram::Document::Document(Json::Value json) {
|
Telegram::Document::Document(Json::Value json) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "Location.h"
|
#include "Telegram/Location.h"
|
||||||
|
|
||||||
Telegram::Location::Location(Json::Value json) {
|
Telegram::Location::Location(Json::Value json) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "Message.h"
|
#include "Telegram/Message.h"
|
||||||
|
|
||||||
// Generic constructor
|
// Generic constructor
|
||||||
// @TODO: Make this an "init"-Method and call it from the constructor
|
// @TODO: Make this an "init"-Method and call it from the constructor
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "MessageEntity.h"
|
#include "Telegram/MessageEntity.h"
|
||||||
|
|
||||||
Telegram::MessageEntity::MessageEntity(Json::Value json) {
|
Telegram::MessageEntity::MessageEntity(Json::Value json) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "PhotoSize.h"
|
#include "Telegram/PhotoSize.h"
|
||||||
|
|
||||||
Telegram::PhotoSize::PhotoSize(Json::Value json) {
|
Telegram::PhotoSize::PhotoSize(Json::Value json) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "Sticker.h"
|
#include "Telegram/Sticker.h"
|
||||||
|
|
||||||
Telegram::Sticker::Sticker(Json::Value json) {
|
Telegram::Sticker::Sticker(Json::Value json) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "TelegramBot.h"
|
#include "Telegram/TelegramBot.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
@ -7,12 +7,12 @@
|
|||||||
#include <curlpp/Infos.hpp>
|
#include <curlpp/Infos.hpp>
|
||||||
#include <curlpp/Options.hpp>
|
#include <curlpp/Options.hpp>
|
||||||
|
|
||||||
#include "http_build_query.h"
|
#include "Telegram/http_build_query.h"
|
||||||
#include "json_encode.h"
|
#include "Telegram/json_encode.h"
|
||||||
#include "std.h"
|
#include "Telegram/std.h"
|
||||||
|
|
||||||
#include "Message.h"
|
#include "Telegram/Message.h"
|
||||||
#include "MessageEntity.h"
|
#include "Telegram/MessageEntity.h"
|
||||||
|
|
||||||
#define API_URL "https://api.telegram.org/bot"
|
#define API_URL "https://api.telegram.org/bot"
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "User.h"
|
#include "Telegram/User.h"
|
||||||
|
|
||||||
Telegram::User::User(Json::Value json) {
|
Telegram::User::User(Json::Value json) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "Venue.h"
|
#include "Telegram/Venue.h"
|
||||||
|
|
||||||
Telegram::Venue::Venue(Json::Value json) {
|
Telegram::Venue::Venue(Json::Value json) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "Video.h"
|
#include "Telegram/Video.h"
|
||||||
|
|
||||||
Telegram::Video::Video(Json::Value json) {
|
Telegram::Video::Video(Json::Value json) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "Voice.h"
|
#include "Telegram/Voice.h"
|
||||||
|
|
||||||
Telegram::Voice::Voice(Json::Value json) {
|
Telegram::Voice::Voice(Json::Value json) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "exec.h"
|
#include "Telegram/exec.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "explode.h"
|
#include "Telegram/explode.h"
|
||||||
|
|
||||||
std::vector<std::string> explode( const std::string &delimiter, const std::string &str) {
|
std::vector<std::string> explode( const std::string &delimiter, const std::string &str) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "http_build_query.h"
|
#include "Telegram/http_build_query.h"
|
||||||
|
|
||||||
std::string http_build_query(std::map<std::string, std::string> data) {
|
std::string http_build_query(std::map<std::string, std::string> data) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "json_encode.h"
|
#include "Telegram/json_encode.h"
|
||||||
|
|
||||||
std::string json_encode(std::map<std::string, std::string> parameters) {
|
std::string json_encode(std::map<std::string, std::string> parameters) {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "std.h"
|
#include "Telegram/std.h"
|
||||||
|
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user