#include <ichatlog.h>
Definition at line 83 of file ichatlog.h.
◆ ~IChatLog()
virtual IChatLog::~IChatLog |
( |
| ) |
|
|
virtualdefault |
◆ addSystemMessage()
virtual void IChatLog::addSystemMessage |
( |
const SystemMessage & |
message | ) |
|
|
pure virtual |
Inserts a system message at the end of the chat.
- Parameters
-
[in] | message | systemMessage to insert |
Implemented in SessionChatLog, and ChatHistory.
◆ at()
Returns reference to item at idx.
- Parameters
-
- Returns
- Variant type referencing either a ToxFile or Message
- Precondition
- idx must be between currentFirstIdx() and currentLastIdx()
Implemented in SessionChatLog, and ChatHistory.
◆ getDateIdxs()
virtual std::vector<DateChatLogIdxPair> IChatLog::getDateIdxs |
( |
const QDate & |
startDate, |
|
|
size_t |
maxDates |
|
) |
| const |
|
pure virtual |
Gets indexes for each new date starting at startDate.
- Parameters
-
[in] | startDate | date to start searching from |
[in] | maxDates | maximum number of dates to be returned |
Implemented in SessionChatLog, and ChatHistory.
◆ getFirstIdx()
virtual ChatLogIdx IChatLog::getFirstIdx |
( |
| ) |
const |
|
pure virtual |
The underlying chat log instance may not want to start at 0.
- Returns
- Current first valid index to call at() with
Implemented in SessionChatLog, and ChatHistory.
◆ getNextIdx()
◆ itemUpdated
◆ searchBackward()
searches backwards through the chat log until phrase is found according to parameter
- Parameters
-
[in] | startIdx | inclusive start idx |
[in] | phrase | phrase to find (may be modified by parameter) |
[in] | parameter | search parameters |
Implemented in SessionChatLog, and ChatHistory.
◆ searchForward()
searches forwards through the chat log until phrase is found according to parameter
- Parameters
-
[in] | startIdx | inclusive start idx |
[in] | phrase | phrase to find (may be modified by parameter) |
[in] | parameter | search parameters |
Implemented in SessionChatLog, and ChatHistory.
The documentation for this class was generated from the following file: