![]() |
LeechCraft Azoth
0.6.70-3565-g2d86529
Modular multiprotocol IM plugin for LeechCraft
|
Namespaces | |
detail | |
Functions | |
template<typename T > | |
void | StandardPurgeMessages (QList< T * > &messages, const QDateTime &before) |
Standard function to purge messages before the given date. More... | |
void LeechCraft::Azoth::AzothUtil::StandardPurgeMessages | ( | QList< T * > & | messages, |
const QDateTime & | before | ||
) |
Standard function to purge messages before the given date.
This function is a standard implementation to be used in LeechCraft::Azoth::ICLEntry::PurgeMessages() implementations. It deletes all the messages in the messages list before the given date before.
The list of messages is assumed to be sorted according to the message timestamp in ascending order.
If before is invalid all the messages will be erased and the list will be cleared.
[in,out] | messages | The list of messages to check. |
[in] | before | Messages with timestamp earlier than this parameter will be erased. |
Definition at line 78 of file azothutil.h.
References LeechCraft::Azoth::AzothUtil::detail::GetIMessage().