qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
Go to the documentation of this file.
33 #include "util/strongtype.h"
38 NamedType<size_t, struct ChatLogIdxTag, Orderable, UnderlyingAddable, UnitlessDifferencable, Incrementable>;
51 return tie() == other.
tie();
56 return tie() != other.
tie();
61 return tie() < other.
tie();
64 std::tuple<ChatLogIdx, size_t>
tie()
const
66 return std::tie(logIdx, numMatches);
80 QRegularExpression
exp;
137 virtual std::vector<DateChatLogIdxPair>
getDateIdxs(
const QDate& startDate,
138 size_t maxDates)
const = 0;
bool operator<(const SearchPos &other) const
Q_DECLARE_METATYPE(ExtendedReceiptNum)
std::tuple< ChatLogIdx, size_t > tie() const
virtual void addSystemMessage(const SystemMessage &message)=0
Inserts a system message at the end of the chat.
virtual SearchResult searchBackward(SearchPos startIdx, const QString &phrase, const ParameterSearch ¶meter) const =0
searches backwards through the chat log until phrase is found according to parameter
virtual const ChatLogItem & at(ChatLogIdx idx) const =0
Returns reference to item at idx.
virtual ChatLogIdx getFirstIdx() const =0
The underlying chat log instance may not want to start at 0.
virtual SearchResult searchForward(SearchPos startIdx, const QString &phrase, const ParameterSearch ¶meter) const =0
searches forwards through the chat log until phrase is found according to parameter
bool operator!=(const SearchPos &other) const
virtual std::vector< DateChatLogIdxPair > getDateIdxs(const QDate &startDate, size_t maxDates) const =0
Gets indexes for each new date starting at startDate.
void itemUpdated(ChatLogIdx idx)
NamedType< size_t, struct ChatLogIdxTag, Orderable, UnderlyingAddable, UnitlessDifferencable, Incrementable > ChatLogIdx
bool operator==(const SearchPos &other) const
virtual ChatLogIdx getNextIdx() const =0
virtual ~IChatLog()=default