KMail::Util::LaterDeleter Class Reference
#include <util.h>
Inherited by LaterDeleterWithCommandCompletion.
Public Member Functions | |
LaterDeleter (TQObject *o) | |
void | setDisabled (bool v) |
Protected Attributes | |
TQObject * | m_object |
bool | m_disabled |
Detailed Description
A LaterDeleter is intended to be used with the RAII ( Resource Acquisition is Initialization ) paradigm.
When an instance of it goes out of scope it deletes the associated object It can be disabled, in case the deletion needs to be avoided for some reason, since going out-of-scope cannot be avoided.
Constructor & Destructor Documentation
◆ LaterDeleter()
|
inline |
◆ ~LaterDeleter()
|
inlinevirtual |
Member Function Documentation
◆ setDisabled()
Member Data Documentation
◆ m_disabled
◆ m_object
The documentation for this class was generated from the following file: