qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
Go to the documentation of this file.
26 #include <QRegularExpression>
74 SharedParams(uint64_t maxCoreMessageSize_, uint64_t maxExtendedMessageSize_)
QRegularExpression getNameMention() const
QRegularExpression pubKeyMention
uint64_t getMaxCoreMessageSize() const
QRegularExpression nameMention
std::vector< MessageMetadata > metadata
Message processIncomingExtMessage(const QString &content)
ExtensionSet extensionSet
QRegularExpression sanitizedNameMention
MessageProcessor(const SharedParams &sharedParams)
SharedParams(uint64_t maxCoreMessageSize_, uint64_t maxExtendedMessageSize_)
std::vector< Message > processOutgoingMessage(bool isAction, const QString &content, ExtensionSet extensions)
Converts an outgoing message into one (or many) sanitized Message(s)
const SharedParams & sharedParams
std::bitset< ExtensionType::max > ExtensionSet
Message processIncomingCoreMessage(bool isAction, const QString &content)
Converts an incoming message into a sanitized Message.
QRegularExpression getSanitizedNameMention() const
void enableMentions()
Enables mention detection in the processor.
QRegularExpression getPublicKeyMention() const
void setPublicKey(const QString &pk)
Set the public key on which a message should be highlighted.
uint64_t maxCoreMessageSize
uint64_t maxExtendedMessageSize
uint64_t getMaxExtendedMessageSize() const
void disableMentions()
Disables mention detection in the processor.
void onUserNameSet(const QString &username)