From b22c20c4db8c35eaee99075d055f74697c5805b8 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Sun, 15 Jan 2017 02:33:59 +0300 Subject: Docs --- .../dc/db7/class_tg_bot_1_1_event_broadcaster.html | 449 +++++++++++++++++++++ docs/dc/db7/class_tg_bot_1_1_event_broadcaster.js | 14 + 2 files changed, 463 insertions(+) create mode 100644 docs/dc/db7/class_tg_bot_1_1_event_broadcaster.html create mode 100644 docs/dc/db7/class_tg_bot_1_1_event_broadcaster.js (limited to 'docs/dc/db7') diff --git a/docs/dc/db7/class_tg_bot_1_1_event_broadcaster.html b/docs/dc/db7/class_tg_bot_1_1_event_broadcaster.html new file mode 100644 index 0000000..8d7e206 --- /dev/null +++ b/docs/dc/db7/class_tg_bot_1_1_event_broadcaster.html @@ -0,0 +1,449 @@ + + + + + + + +tgbot-cpp: TgBot::EventBroadcaster Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TgBot::EventBroadcaster Class Reference
+
+
+ +

#include <EventBroadcaster.h>

+ + + + + + + + + + +

+Public Types

typedef std::function< void(const Message::Ptr &)> MessageListener
 
typedef std::function< void(const InlineQuery::Ptr &)> InlineQueryListener
 
typedef std::function< void(const ChosenInlineResult::Ptr &)> ChosenInlineResultListener
 
typedef std::function< void(const CallbackQuery::Ptr &)> CallbackQueryListener
 
+ + + + + + + + + + + + + + + +

+Public Member Functions

void onAnyMessage (const MessageListener &listener)
 
void onCommand (const std::string &commandName, const MessageListener &listener)
 
void onUnknownCommand (const MessageListener &listener)
 
void onNonCommandMessage (const MessageListener &listener)
 
void onInlineQuery (const InlineQueryListener &listener)
 
void onChosenInlineResult (const ChosenInlineResultListener &listener)
 
void onCallbackQuery (const CallbackQueryListener &listener)
 
+

Detailed Description

+

This class holds all event listeners.

+ +

Definition at line 44 of file EventBroadcaster.h.

+

Member Typedef Documentation

+ +

◆ CallbackQueryListener

+ +
+
+ + + + +
typedef std::function<void (const CallbackQuery::Ptr&)> TgBot::EventBroadcaster::CallbackQueryListener
+
+ +

Definition at line 52 of file EventBroadcaster.h.

+ +
+
+ +

◆ ChosenInlineResultListener

+ +
+
+ + + + +
typedef std::function<void (const ChosenInlineResult::Ptr&)> TgBot::EventBroadcaster::ChosenInlineResultListener
+
+ +

Definition at line 51 of file EventBroadcaster.h.

+ +
+
+ +

◆ InlineQueryListener

+ +
+
+ + + + +
typedef std::function<void (const InlineQuery::Ptr&)> TgBot::EventBroadcaster::InlineQueryListener
+
+ +

Definition at line 50 of file EventBroadcaster.h.

+ +
+
+ +

◆ MessageListener

+ +
+
+ + + + +
typedef std::function<void (const Message::Ptr&)> TgBot::EventBroadcaster::MessageListener
+
+ +

Definition at line 49 of file EventBroadcaster.h.

+ +
+
+

Member Function Documentation

+ +

◆ onAnyMessage()

+ +
+
+ + + + + +
+ + + + + + + + +
void TgBot::EventBroadcaster::onAnyMessage (const MessageListenerlistener)
+
+inline
+
+

Registers listener which receives all messages which the bot can ever receive.

Parameters
+ + +
listenerListener.
+
+
+ +

Definition at line 58 of file EventBroadcaster.h.

+ +
+
+ +

◆ onCallbackQuery()

+ +
+
+ + + + + +
+ + + + + + + + +
void TgBot::EventBroadcaster::onCallbackQuery (const CallbackQueryListenerlistener)
+
+inline
+
+ +

Definition at line 103 of file EventBroadcaster.h.

+ +
+
+ +

◆ onChosenInlineResult()

+ +
+
+ + + + + +
+ + + + + + + + +
void TgBot::EventBroadcaster::onChosenInlineResult (const ChosenInlineResultListenerlistener)
+
+inline
+
+

Registers listener which receives all the chosen inline result.

Parameters
+ + +
listenerListener.
+
+
+ +

Definition at line 99 of file EventBroadcaster.h.

+ +
+
+ +

◆ onCommand()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
void TgBot::EventBroadcaster::onCommand (const std::string & commandName,
const MessageListenerlistener 
)
+
+inline
+
+

Registers listener which receives all messages with commands (messages with leading '/' char).

Parameters
+ + + +
commandNameCommand name which listener can handle.
listenerListener.
+
+
+ +

Definition at line 67 of file EventBroadcaster.h.

+ +
+
+ +

◆ onInlineQuery()

+ +
+
+ + + + + +
+ + + + + + + + +
void TgBot::EventBroadcaster::onInlineQuery (const InlineQueryListenerlistener)
+
+inline
+
+

Registers listener which receives all the inline query.

Parameters
+ + +
listenerListener.
+
+
+ +

Definition at line 91 of file EventBroadcaster.h.

+ +
+
+ +

◆ onNonCommandMessage()

+ +
+
+ + + + + +
+ + + + + + + + +
void TgBot::EventBroadcaster::onNonCommandMessage (const MessageListenerlistener)
+
+inline
+
+

Registers listener which receives all messages without commands (messages with no leading '/' char)

Parameters
+ + +
listenerListener.
+
+
+ +

Definition at line 83 of file EventBroadcaster.h.

+ +
+
+ +

◆ onUnknownCommand()

+ +
+
+ + + + + +
+ + + + + + + + +
void TgBot::EventBroadcaster::onUnknownCommand (const MessageListenerlistener)
+
+inline
+
+

Registers listener which receives all messages with commands (messages with leading '/' char) which haven't been handled by other listeners.

Parameters
+ + +
listenerListener.
+
+
+ +

Definition at line 75 of file EventBroadcaster.h.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/dc/db7/class_tg_bot_1_1_event_broadcaster.js b/docs/dc/db7/class_tg_bot_1_1_event_broadcaster.js new file mode 100644 index 0000000..7f63ff7 --- /dev/null +++ b/docs/dc/db7/class_tg_bot_1_1_event_broadcaster.js @@ -0,0 +1,14 @@ +var class_tg_bot_1_1_event_broadcaster = +[ + [ "CallbackQueryListener", "dc/db7/class_tg_bot_1_1_event_broadcaster.html#a1b5bf368b89d78d9c1582a1523a66b4e", null ], + [ "ChosenInlineResultListener", "dc/db7/class_tg_bot_1_1_event_broadcaster.html#af9b674f16ddd707748f7ca8bf7f3ef91", null ], + [ "InlineQueryListener", "dc/db7/class_tg_bot_1_1_event_broadcaster.html#a437f0af514141d0a5d4fb684a56fe199", null ], + [ "MessageListener", "dc/db7/class_tg_bot_1_1_event_broadcaster.html#a9fda4ac3089dc101be4fd3a2a104185c", null ], + [ "onAnyMessage", "dc/db7/class_tg_bot_1_1_event_broadcaster.html#a21adc85e9ed2a08a186423a5231342a9", null ], + [ "onCallbackQuery", "dc/db7/class_tg_bot_1_1_event_broadcaster.html#a3ec551ffdcf5be1b9b39ed081ea078d4", null ], + [ "onChosenInlineResult", "dc/db7/class_tg_bot_1_1_event_broadcaster.html#a7397520ff294c863b306142e29030482", null ], + [ "onCommand", "dc/db7/class_tg_bot_1_1_event_broadcaster.html#a13e4a906203fe43a950f1420b68c7583", null ], + [ "onInlineQuery", "dc/db7/class_tg_bot_1_1_event_broadcaster.html#a9d3f31225ea84af8cb47ab2a53186ef0", null ], + [ "onNonCommandMessage", "dc/db7/class_tg_bot_1_1_event_broadcaster.html#a22e70b8493ea455e70734a36968f3d55", null ], + [ "onUnknownCommand", "dc/db7/class_tg_bot_1_1_event_broadcaster.html#a5bed996221f047ec0469ae19e7bd00eb", null ] +]; \ No newline at end of file -- cgit v1.2.3