qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Classes | Public Member Functions | Private Attributes | List of all members
MessageProcessor Class Reference

#include <message.h>

Collaboration diagram for MessageProcessor:
Collaboration graph

Classes

class  SharedParams
 

Public Member Functions

 MessageProcessor (const SharedParams &sharedParams)
 
std::vector< MessageprocessOutgoingMessage (bool isAction, const QString &content, ExtensionSet extensions)
 Converts an outgoing message into one (or many) sanitized Message(s) More...
 
Message processIncomingCoreMessage (bool isAction, const QString &content)
 Converts an incoming message into a sanitized Message. More...
 
Message processIncomingExtMessage (const QString &content)
 
void enableMentions ()
 Enables mention detection in the processor. More...
 
void disableMentions ()
 Disables mention detection in the processor. More...
 

Private Attributes

bool detectingMentions = false
 
const SharedParamssharedParams
 

Detailed Description

Definition at line 62 of file message.h.

Constructor & Destructor Documentation

◆ MessageProcessor()

MessageProcessor::MessageProcessor ( const SharedParams sharedParams)

Definition at line 79 of file message.cpp.

Member Function Documentation

◆ disableMentions()

void MessageProcessor::disableMentions ( )
inline

Disables mention detection in the processor.

Definition at line 129 of file message.h.

◆ enableMentions()

void MessageProcessor::enableMentions ( )
inline

Enables mention detection in the processor.

Definition at line 121 of file message.h.

Here is the caller graph for this function:

◆ processIncomingCoreMessage()

Message MessageProcessor::processIncomingCoreMessage ( bool  isAction,
const QString &  content 
)

Converts an incoming message into a sanitized Message.

Definition at line 118 of file message.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ processIncomingExtMessage()

Message MessageProcessor::processIncomingExtMessage ( const QString &  content)

Definition at line 155 of file message.cpp.

Here is the caller graph for this function:

◆ processOutgoingMessage()

std::vector< Message > MessageProcessor::processOutgoingMessage ( bool  isAction,
const QString &  content,
ExtensionSet  extensions 
)

Converts an outgoing message into one (or many) sanitized Message(s)

Definition at line 86 of file message.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ detectingMentions

bool MessageProcessor::detectingMentions = false
private

Definition at line 135 of file message.h.

◆ sharedParams

const SharedParams& MessageProcessor::sharedParams
private

Definition at line 136 of file message.h.


The documentation for this class was generated from the following files: