From 23553bc251ca673137b684082a6f84062f053bd2 Mon Sep 17 00:00:00 2001 From: nitanmarcel Date: Tue, 19 Nov 2019 21:31:44 +0200 Subject: API 4.2 --- CMakeLists.txt | 2 +- Doxyfile | 86 ++++++++++++++++++++-------------------- README.md | 2 +- include/tgbot/Api.h | 39 +++++++++++++++--- include/tgbot/TgTypeParser.h | 8 ++++ include/tgbot/types/ChatMember.h | 5 +++ include/tgbot/types/Message.h | 11 +++++ include/tgbot/types/Poll.h | 63 +++++++++++++++++++++++++++++ include/tgbot/types/PollOption.h | 46 +++++++++++++++++++++ src/Api.cpp | 38 ++++++++++++++++++ src/TgTypeParser.cpp | 50 ++++++++++++++++++++++- 11 files changed, 298 insertions(+), 52 deletions(-) create mode 100644 include/tgbot/types/Poll.h create mode 100644 include/tgbot/types/PollOption.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 275c505..411535d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,7 @@ set(SRC_LIST src/tools/StringTools.cpp src/types/InlineQueryResult.cpp src/types/InputFile.cpp -) + include/tgbot/types/Poll.h include/tgbot/types/PollOption.h) # libs ## threads diff --git a/Doxyfile b/Doxyfile index ae557e7..2b036f8 100644 --- a/Doxyfile +++ b/Doxyfile @@ -63,7 +63,7 @@ OUTPUT_DIRECTORY = doc # If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub- # directories (in 2 levels) under the output directory of each output format and # will distribute the generated files over these directories. Enabling this -# option can be useful when feeding doxygen a huge amount of source files, where +# options can be useful when feeding doxygen a huge amount of source files, where # putting all generated files in the same directory would otherwise causes # performance problems for the file system. # The default value is: NO. @@ -330,7 +330,7 @@ AUTOLINK_SUPPORT = YES BUILTIN_STL_SUPPORT = NO -# If you use Microsoft's C++/CLI language, you should set this option to YES to +# If you use Microsoft's C++/CLI language, you should set this options to YES to # enable parsing support. # The default value is: NO. @@ -345,11 +345,11 @@ CPP_CLI_SUPPORT = NO SIP_SUPPORT = NO # For Microsoft's IDL there are propget and propput attributes to indicate -# getter and setter methods for a property. Setting this option to YES will make +# getter and setter methods for a property. Setting this options to YES will make # doxygen to replace the get and set methods by a property in the documentation. # This will only work if the methods are indeed getting or setting a simple # type. If this is not the case, or you want to show the methods anyway, you -# should set this option to NO. +# should set this options to NO. # The default value is: YES. IDL_PROPERTY_SUPPORT = YES @@ -362,8 +362,8 @@ IDL_PROPERTY_SUPPORT = YES DISTRIBUTE_GROUP_DOC = NO -# If one adds a struct or class to a group and this option is enabled, then also -# any nested class or struct is added to the same group. By default this option +# If one adds a struct or class to a group and this options is enabled, then also +# any nested class or struct is added to the same group. By default this options # is disabled and one has to add nested compounds explicitly via \ingroup. # The default value is: NO. @@ -483,14 +483,14 @@ EXTRACT_ANON_NSPACES = NO # If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all # undocumented members inside documented classes or files. If set to NO these # members will be included in the various overviews, but no documentation -# section is generated. This option has no effect if EXTRACT_ALL is enabled. +# section is generated. This options has no effect if EXTRACT_ALL is enabled. # The default value is: NO. HIDE_UNDOC_MEMBERS = NO # If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. If set -# to NO, these classes will be included in the various overviews. This option +# to NO, these classes will be included in the various overviews. This options # has no effect if EXTRACT_ALL is enabled. # The default value is: NO. @@ -521,7 +521,7 @@ INTERNAL_DOCS = NO # names in lower-case letters. If set to YES, upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows -# and Mac users are advised to set this option to NO. +# and Mac users are advised to set this options to NO. # The default value is: system dependent. CASE_SENSE_NAMES = NO @@ -584,9 +584,9 @@ SORT_BRIEF_DOCS = NO # (brief and detailed) documentation of class members so that constructors and # destructors are listed first. If set to NO the constructors will appear in the # respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. -# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief +# Note: If SORT_BRIEF_DOCS is set to NO this options is ignored for sorting brief # member documentation. -# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting +# Note: If SORT_MEMBER_DOCS is set to NO this options is ignored for sorting # detailed member documentation. # The default value is: NO. @@ -602,14 +602,14 @@ SORT_GROUP_NAMES = NO # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by # fully-qualified names, including namespaces. If set to NO, the class list will # be sorted only by class name, not including the namespace part. -# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. -# Note: This option applies only to the class list, not to the alphabetical +# Note: This options is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This options applies only to the class list, not to the alphabetical # list. # The default value is: NO. SORT_BY_SCOPE_NAME = NO -# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper +# If the STRICT_PROTO_MATCHING options is enabled and doxygen fails to do proper # type resolution of all parameters of a function it will reject a match between # the prototype and the implementation of a member function even if there is # only one candidate or it is obvious which candidate to choose by doing a @@ -695,8 +695,8 @@ FILE_VERSION_FILTER = # The LAYOUT_FILE tag can be used to specify a layout file which will be parsed # by doxygen. The layout file controls the global structure of the generated # output files in an output format independent way. To create the layout file -# that represents doxygen's defaults, run doxygen with the -l option. You can -# optionally specify a file name after the option, if omitted DoxygenLayout.xml +# that represents doxygen's defaults, run doxygen with the -l options. You can +# optionally specify a file name after the options, if omitted DoxygenLayout.xml # will be used as the name of the layout file. # # Note that if you run doxygen from a directory containing a file called @@ -750,7 +750,7 @@ WARN_IF_UNDOCUMENTED = YES WARN_IF_DOC_ERROR = YES -# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that +# This WARN_NO_PARAMDOC options can be enabled to get warnings for functions that # are documented, but have no documentation for their parameters or return # value. If set to NO, doxygen will only warn about wrong or incomplete # parameter documentation, but not about the absence of documentation. @@ -1036,8 +1036,8 @@ VERBATIM_HEADERS = YES # cost of reduced performance. This can be particularly helpful with template # rich C++ code for which doxygen's built-in parser lacks the necessary type # information. -# Note: The availability of this option depends on whether or not doxygen was -# generated with the -Duse-libclang=ON option for CMake. +# Note: The availability of this options depends on whether or not doxygen was +# generated with the -Duse-libclang=ON options for CMake. # The default value is: NO. CLANG_ASSISTED_PARSING = NO @@ -1144,7 +1144,7 @@ HTML_STYLESHEET = # The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined # cascading style sheets that are included after the standard style sheets -# created by doxygen. Using this option one can overrule certain style aspects. +# created by doxygen. Using this options one can overrule certain style aspects. # This is preferred over using HTML_STYLESHEET since it does not replace the # standard style sheet and is therefore more robust against future updates. # Doxygen will copy the style sheet files to the output directory. @@ -1418,7 +1418,7 @@ ECLIPSE_DOC_ID = org.doxygen.Project # DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top # of each HTML page. A value of NO enables the index and the value YES disables # it. Since the tabs in the index contain the same information as the navigation -# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. +# tree, you can set this options to YES if you also set GENERATE_TREEVIEW to YES. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. @@ -1435,7 +1435,7 @@ DISABLE_INDEX = NO # sheet generated by doxygen has an example that shows how to put an image at # the root of the tree instead of the PROJECT_NAME. Since the tree basically has # the same information as the tab index, you could consider setting -# DISABLE_INDEX to YES when enabling this option. +# DISABLE_INDEX to YES when enabling this options. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. @@ -1458,7 +1458,7 @@ ENUM_VALUES_PER_LINE = 4 TREEVIEW_WIDTH = 250 -# If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to +# If the EXT_LINKS_IN_WINDOW options is set to YES, doxygen will open links to # external symbols imported via tag files in a separate window. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. @@ -1478,19 +1478,19 @@ FORMULA_FONTSIZE = 10 # generated for formulas are transparent PNGs. Transparent PNGs are not # supported properly for IE 6.0, but are supported on all modern browsers. # -# Note that when changing this option you need to delete any form_*.png files in +# Note that when changing this options you need to delete any form_*.png files in # the HTML output directory before the changes have effect. # The default value is: YES. # This tag requires that the tag GENERATE_HTML is set to YES. FORMULA_TRANSPARENT = YES -# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see +# Enable the USE_MATHJAX options to render LaTeX formulas using MathJax (see # http://www.mathjax.org) which uses client side Javascript for the rendering # instead of using pre-rendered bitmaps. Use this if you do not have LaTeX # installed or if you want to formulas look prettier in the HTML output. When # enabled you may also need to install MathJax separately and configure the path -# to it using the MATHJAX_RELPATH option. +# to it using the MATHJAX_RELPATH options. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. @@ -1507,7 +1507,7 @@ USE_MATHJAX = NO MATHJAX_FORMAT = HTML-CSS # When MathJax is enabled you need to specify the location relative to the HTML -# output directory using the MATHJAX_RELPATH option. The destination directory +# output directory using the MATHJAX_RELPATH options. The destination directory # should contain the MathJax.js script. For instance, if the mathjax directory # is located at the same level as the HTML output directory, then # MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax @@ -1543,13 +1543,13 @@ MATHJAX_CODEFILE = # enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to # search using the keyboard; to jump to the search box use + S # (what the is depends on the OS and browser, but it is typically -# , /