Browse Source

Moved include files, changed include directives

doc
Hauke Zühl 9 years ago
parent
commit
dfe31b70e0
  1. 39
      CMakeLists.txt
  2. 0
      include/Telegram/Audio.h
  3. 0
      include/Telegram/Chat.h
  4. 0
      include/Telegram/Contact.h
  5. 2
      include/Telegram/Document.h
  6. 0
      include/Telegram/Location.h
  7. 24
      include/Telegram/Message.h
  8. 0
      include/Telegram/MessageEntity.h
  9. 0
      include/Telegram/PhotoSize.h
  10. 2
      include/Telegram/Sticker.h
  11. 2
      include/Telegram/TelegramBot.h
  12. 0
      include/Telegram/User.h
  13. 2
      include/Telegram/Venue.h
  14. 2
      include/Telegram/Video.h
  15. 0
      include/Telegram/Voice.h
  16. 0
      include/Telegram/exec.h
  17. 0
      include/Telegram/explode.h
  18. 0
      include/Telegram/http_build_query.h
  19. 0
      include/Telegram/json_encode.h
  20. 0
      include/Telegram/std.h
  21. 2
      src/Audio.cc
  22. 2
      src/Chat.cc
  23. 2
      src/Contact.cc
  24. 2
      src/Document.cc
  25. 2
      src/Location.cc
  26. 2
      src/Message.cc
  27. 2
      src/MessageEntity.cc
  28. 2
      src/PhotoSize.cc
  29. 2
      src/Sticker.cc
  30. 12
      src/TelegramBot.cc
  31. 2
      src/User.cc
  32. 2
      src/Venue.cc
  33. 2
      src/Video.cc
  34. 2
      src/Voice.cc
  35. 2
      src/exec.cc
  36. 2
      src/explode.cc
  37. 2
      src/http_build_query.cc
  38. 2
      src/json_encode.cc
  39. 2
      src/std.cc

39
CMakeLists.txt

@ -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

0
include/Audio.h → include/Telegram/Audio.h

0
include/Chat.h → include/Telegram/Chat.h

0
include/Contact.h → include/Telegram/Contact.h

2
include/Document.h → include/Telegram/Document.h

@ -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 {

0
include/Location.h → include/Telegram/Location.h

24
include/Message.h → include/Telegram/Message.h

@ -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 {

0
include/MessageEntity.h → include/Telegram/MessageEntity.h

0
include/PhotoSize.h → include/Telegram/PhotoSize.h

2
include/Sticker.h → include/Telegram/Sticker.h

@ -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 {

2
include/TelegramBot.h → include/Telegram/TelegramBot.h

@ -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 {

0
include/User.h → include/Telegram/User.h

2
include/Venue.h → include/Telegram/Venue.h

@ -3,7 +3,7 @@
#include <string> #include <string>
#include "Location.h" #include <Telegram/Location.h>
namespace Telegram { namespace Telegram {

2
include/Video.h → include/Telegram/Video.h

@ -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 {

0
include/Voice.h → include/Telegram/Voice.h

0
include/exec.h → include/Telegram/exec.h

0
include/explode.h → include/Telegram/explode.h

0
include/http_build_query.h → include/Telegram/http_build_query.h

0
include/json_encode.h → include/Telegram/json_encode.h

0
include/std.h → include/Telegram/std.h

2
src/Audio.cc

@ -1,4 +1,4 @@
#include "Audio.h" #include "Telegram/Audio.h"
Telegram::Audio::Audio(Json::Value json) { Telegram::Audio::Audio(Json::Value json) {

2
src/Chat.cc

@ -1,4 +1,4 @@
#include "Chat.h" #include "Telegram/Chat.h"
Telegram::Chat::Chat(Json::Value json) { Telegram::Chat::Chat(Json::Value json) {

2
src/Contact.cc

@ -1,4 +1,4 @@
#include "Contact.h" #include "Telegram/Contact.h"
Telegram::Contact::Contact(Json::Value json) { Telegram::Contact::Contact(Json::Value json) {

2
src/Document.cc

@ -1,4 +1,4 @@
#include "Document.h" #include "Telegram/Document.h"
Telegram::Document::Document(Json::Value json) { Telegram::Document::Document(Json::Value json) {

2
src/Location.cc

@ -1,4 +1,4 @@
#include "Location.h" #include "Telegram/Location.h"
Telegram::Location::Location(Json::Value json) { Telegram::Location::Location(Json::Value json) {

2
src/Message.cc

@ -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

2
src/MessageEntity.cc

@ -1,4 +1,4 @@
#include "MessageEntity.h" #include "Telegram/MessageEntity.h"
Telegram::MessageEntity::MessageEntity(Json::Value json) { Telegram::MessageEntity::MessageEntity(Json::Value json) {

2
src/PhotoSize.cc

@ -1,4 +1,4 @@
#include "PhotoSize.h" #include "Telegram/PhotoSize.h"
Telegram::PhotoSize::PhotoSize(Json::Value json) { Telegram::PhotoSize::PhotoSize(Json::Value json) {

2
src/Sticker.cc

@ -1,4 +1,4 @@
#include "Sticker.h" #include "Telegram/Sticker.h"
Telegram::Sticker::Sticker(Json::Value json) { Telegram::Sticker::Sticker(Json::Value json) {

12
src/TelegramBot.cc

@ -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"

2
src/User.cc

@ -1,4 +1,4 @@
#include "User.h" #include "Telegram/User.h"
Telegram::User::User(Json::Value json) { Telegram::User::User(Json::Value json) {

2
src/Venue.cc

@ -1,4 +1,4 @@
#include "Venue.h" #include "Telegram/Venue.h"
Telegram::Venue::Venue(Json::Value json) { Telegram::Venue::Venue(Json::Value json) {

2
src/Video.cc

@ -1,4 +1,4 @@
#include "Video.h" #include "Telegram/Video.h"
Telegram::Video::Video(Json::Value json) { Telegram::Video::Video(Json::Value json) {

2
src/Voice.cc

@ -1,4 +1,4 @@
#include "Voice.h" #include "Telegram/Voice.h"
Telegram::Voice::Voice(Json::Value json) { Telegram::Voice::Voice(Json::Value json) {

2
src/exec.cc

@ -1,4 +1,4 @@
#include "exec.h" #include "Telegram/exec.h"
#include <iostream> #include <iostream>
#include <stdio.h> #include <stdio.h>

2
src/explode.cc

@ -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) {

2
src/http_build_query.cc

@ -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) {

2
src/json_encode.cc

@ -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) {

2
src/std.cc

@ -1,4 +1,4 @@
#include "std.h" #include "Telegram/std.h"
#include <pwd.h> #include <pwd.h>
#include <time.h> #include <time.h>

Loading…
Cancel
Save