#include <groupmessagedispatcher.h>
|  | 
|  | GroupMessageDispatcher (Group &group, MessageProcessor processor, ICoreIdHandler &idHandler, ICoreGroupMessageSender &messageSender, const IGroupSettings &groupSettings) | 
|  | 
| std::pair< DispatchedMessageId, DispatchedMessageId > | sendMessage (bool isAction, QString const &content) override | 
|  | Sends message to associated chat.  More... 
 | 
|  | 
| std::pair< DispatchedMessageId, DispatchedMessageId > | sendExtendedMessage (const QString &content, ExtensionSet extensions) override | 
|  | Sends message to associated chat ensuring that extensions are available.  More... 
 | 
|  | 
| void | onMessageReceived (ToxPk const &sender, bool isAction, QString const &content) | 
|  | Processes and dispatches received message from toxcore.  More... 
 | 
|  | 
| virtual | ~IMessageDispatcher ()=default | 
|  | 
Definition at line 35 of file groupmessagedispatcher.h.
 
◆ GroupMessageDispatcher()
◆ onMessageReceived()
      
        
          | void GroupMessageDispatcher::onMessageReceived | ( | ToxPk const & | sender, | 
        
          |  |  | bool | isAction, | 
        
          |  |  | QString const & | content | 
        
          |  | ) |  |  | 
      
 
Processes and dispatches received message from toxcore. 
- Parameters
- 
  
    | [in] | sender |  |  | [in] | isAction | True if is action |  | [in] | content | Message content |  
 
Definition at line 85 of file groupmessagedispatcher.cpp.
 
 
◆ sendExtendedMessage()
Sends message to associated chat ensuring that extensions are available. 
- Parameters
- 
  
    | [in] | content | Message content |  | [in] | extensions | extensions required for given message |  
 
- Returns
- Pair of first and last dispatched message IDs 
- Note
- If the provided extensions are not supported the message will be flagged as broken 
Implements IMessageDispatcher.
Definition at line 69 of file groupmessagedispatcher.cpp.
 
 
◆ sendMessage()
◆ group
  
  | 
        
          | Group& GroupMessageDispatcher::group |  | private | 
 
 
◆ groupSettings
◆ idHandler
◆ messageSender
◆ nextMessageId
◆ processor
The documentation for this class was generated from the following files: