qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
#include <chatlogitem.h>
Public Types | |
enum | ContentType { ContentType::message, ContentType::fileTransfer, ContentType::systemMessage } |
Public Member Functions | |
ChatLogItem (ToxPk sender, const QString &displayName, ChatLogFile file) | |
ChatLogItem (ToxPk sender, const QString &displayName, ChatLogMessage message) | |
ChatLogItem (SystemMessage message) | |
const ToxPk & | getSender () const |
ContentType | getContentType () const |
ChatLogFile & | getContentAsFile () |
const ChatLogFile & | getContentAsFile () const |
ChatLogMessage & | getContentAsMessage () |
const ChatLogMessage & | getContentAsMessage () const |
SystemMessage & | getContentAsSystemMessage () |
const SystemMessage & | getContentAsSystemMessage () const |
QDateTime | getTimestamp () const |
void | setDisplayName (QString name) |
const QString & | getDisplayName () const |
Private Types | |
using | ContentPtr = std::unique_ptr< void, void(*)(void *)> |
Private Member Functions | |
ChatLogItem (ToxPk sender, const QString &displayName_, ContentType contentType, ContentPtr content) | |
Private Attributes | |
ToxPk | sender |
QString | displayName |
ContentType | contentType |
ContentPtr | content |
Definition at line 42 of file chatlogitem.h.
|
private |
Definition at line 45 of file chatlogitem.h.
|
strong |
Enumerator | |
---|---|
message | |
fileTransfer | |
systemMessage |
Definition at line 48 of file chatlogitem.h.
ChatLogItem::ChatLogItem | ( | ToxPk | sender, |
const QString & | displayName, | ||
ChatLogFile | file | ||
) |
Definition at line 41 of file chatlogitem.cpp.
ChatLogItem::ChatLogItem | ( | ToxPk | sender, |
const QString & | displayName, | ||
ChatLogMessage | message | ||
) |
Definition at line 47 of file chatlogitem.cpp.
ChatLogItem::ChatLogItem | ( | SystemMessage | message | ) |
Definition at line 53 of file chatlogitem.cpp.
|
private |
Definition at line 58 of file chatlogitem.cpp.
const ChatLogFile & ChatLogItem::getContentAsFile | ( | ) |
const ChatLogFile& ChatLogItem::getContentAsFile | ( | ) | const |
const ChatLogMessage & ChatLogItem::getContentAsMessage | ( | ) |
const ChatLogMessage& ChatLogItem::getContentAsMessage | ( | ) | const |
const SystemMessage & ChatLogItem::getContentAsSystemMessage | ( | ) |
const SystemMessage& ChatLogItem::getContentAsSystemMessage | ( | ) | const |
ChatLogItem::ContentType ChatLogItem::getContentType | ( | ) | const |
const QString & ChatLogItem::getDisplayName | ( | ) | const |
const ToxPk & ChatLogItem::getSender | ( | ) | const |
QDateTime ChatLogItem::getTimestamp | ( | ) | const |
Definition at line 112 of file chatlogitem.cpp.
void ChatLogItem::setDisplayName | ( | QString | name | ) |
Definition at line 133 of file chatlogitem.cpp.
|
private |
Definition at line 77 of file chatlogitem.h.
|
private |
Definition at line 75 of file chatlogitem.h.
|
private |
Definition at line 74 of file chatlogitem.h.
|
private |
Definition at line 73 of file chatlogitem.h.