![]() |
LeechCraft Azoth
0.6.70-15082-g543737046d
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 LC::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 LC::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. |
T | The type of the message object, which should be implementing the IMessage interface. |
Definition at line 77 of file azothutil.h.