qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
Go to the documentation of this file.
28 struct SessionChatLogMetadata;
46 std::vector<DateChatLogIdxPair>
getDateIdxs(
const QDate& startDate,
size_t maxDates)
const override;
78 std::map<ChatLogIdx, ChatLogItem>
items;
ChatLogIdx getFirstIdx() const override
The underlying chat log instance may not want to start at 0.
void onMessageBroken(DispatchedMessageId id, BrokenMessageReason reason)
void onFileUpdated(const ToxPk &sender, const ToxFile &file)
Updates file state in the chatlog.
std::vector< DateChatLogIdxPair > getDateIdxs(const QDate &startDate, size_t maxDates) const override
Gets indexes for each new date starting at startDate.
void onMessageSent(DispatchedMessageId id, const Message &message)
Inserts message data into the chatlog buffer.
SearchResult searchBackward(SearchPos startIdx, const QString &phrase, const ParameterSearch ¶meter) const override
searches backwards through the chat log until phrase is found according to parameter
QMap< DispatchedMessageId, ChatLogIdx > outgoingMessages
void addSystemMessage(const SystemMessage &message) override
Inserts a system message at the end of the chat.
void onFileTransferRemotePausedUnpaused(const ToxPk &sender, const ToxFile &file, bool paused)
const ChatLogItem & at(ChatLogIdx idx) const override
Returns reference to item at idx.
void onFileTransferBrokenUnbroken(const ToxPk &sender, const ToxFile &file, bool broken)
void insertBrokenMessageAtIdx(ChatLogIdx idx, const ToxPk &sender, QString senderName, const ChatLogMessage &message)
const ICoreIdHandler & coreIdHandler
void insertCompleteMessageAtIdx(ChatLogIdx idx, const ToxPk &sender, QString senderName, const ChatLogMessage &message)
This class represents a Tox Public Key, which is a part of Tox ID.
ChatLogIdx getNextIdx() const override
NamedType< size_t, struct SentMessageIdTag, Orderable, Incrementable > DispatchedMessageId
std::vector< CurrentFileTransfer > currentFileTransfers
void insertIncompleteMessageAtIdx(ChatLogIdx idx, const ToxPk &sender, QString senderName, const ChatLogMessage &message, DispatchedMessageId dispatchId)
SessionChatLog(const ICoreIdHandler &coreIdHandler)
std::map< ChatLogIdx, ChatLogItem > items
NamedType< size_t, struct ChatLogIdxTag, Orderable, UnderlyingAddable, UnitlessDifferencable, Incrementable > ChatLogIdx
void insertSystemMessageAtIdx(ChatLogIdx idx, SystemMessage message)
SearchResult searchForward(SearchPos startIdx, const QString &phrase, const ParameterSearch ¶meter) const override
searches forwards through the chat log until phrase is found according to parameter
QString resolveSenderNameFromSender(const ToxPk &sender)
void onMessageReceived(const ToxPk &sender, const Message &message)
Inserts message data into the chatlog buffer.
void onMessageComplete(DispatchedMessageId id)
Marks the associated message as complete and notifies any listeners.
void insertFileAtIdx(ChatLogIdx idx, const ToxPk &sender, QString senderName, const ChatLogFile &file)