#include <chatmessage.h>
|
static ChatMessage::Ptr | createChatMessage (const QString &sender, const QString &rawMessage, MessageType type, bool isMe, MessageState state, const QDateTime &date, bool colorizeName=false) |
|
static ChatMessage::Ptr | createChatInfoMessage (const QString &rawMessage, SystemMessageType type, const QDateTime &date) |
|
static ChatMessage::Ptr | createFileTransferMessage (const QString &sender, CoreFile &coreFile, ToxFile file, bool isMe, const QDateTime &date) |
|
static ChatMessage::Ptr | createTypingNotification () |
|
static ChatMessage::Ptr | createBusyNotification () |
| Create message placeholder while chatform restructures text. More...
|
|
static bool | lessThanBSRectTop (const ChatLine::Ptr &lhs, const qreal &rhs) |
|
static bool | lessThanBSRectBottom (const ChatLine::Ptr &lhs, const qreal &rhs) |
|
Definition at line 31 of file chatmessage.h.
◆ Ptr
◆ MessageType
◆ SystemMessageType
◆ ChatMessage() [1/3]
ChatMessage::ChatMessage |
( |
| ) |
|
◆ ~ChatMessage()
ChatMessage::~ChatMessage |
( |
| ) |
|
|
default |
◆ ChatMessage() [2/3]
◆ ChatMessage() [3/3]
◆ createBusyNotification()
Create message placeholder while chatform restructures text.
It can take a while for chatform to resize large amounts of text, thus a message placeholder is needed to inform users about it.
- Returns
- created message
Definition at line 216 of file chatmessage.cpp.
◆ createChatInfoMessage()
◆ createChatMessage()
ChatMessage::Ptr ChatMessage::createChatMessage |
( |
const QString & |
sender, |
|
|
const QString & |
rawMessage, |
|
|
MessageType |
type, |
|
|
bool |
isMe, |
|
|
MessageState |
state, |
|
|
const QDateTime & |
date, |
|
|
bool |
colorizeName = false |
|
) |
| |
|
static |
◆ createFileTransferMessage()
◆ createTypingNotification()
◆ detectQuotes()
QString ChatMessage::detectQuotes |
( |
const QString & |
str, |
|
|
MessageType |
type |
|
) |
| |
|
staticprotected |
◆ hideDate()
void ChatMessage::hideDate |
( |
| ) |
|
◆ hideSender()
void ChatMessage::hideSender |
( |
| ) |
|
◆ isAction()
bool ChatMessage::isAction |
( |
| ) |
const |
◆ markAsBroken()
void ChatMessage::markAsBroken |
( |
| ) |
|
◆ markAsDelivered()
void ChatMessage::markAsDelivered |
( |
const QDateTime & |
time | ) |
|
◆ operator=()
◆ setAsAction()
void ChatMessage::setAsAction |
( |
| ) |
|
◆ toString()
QString ChatMessage::toString |
( |
| ) |
const |
◆ wrapDiv()
QString ChatMessage::wrapDiv |
( |
const QString & |
str, |
|
|
const QString & |
div |
|
) |
| |
|
staticprotected |
◆ action
bool ChatMessage::action = false |
|
private |
The documentation for this class was generated from the following files: