kmail
KMail::Util::LaterDeleter Class Reference
A LaterDeleter is intended to be used with the RAII ( Resource Acquisition is Initialization ) paradigm. More...
#include <util.h>
Inherited by LaterDeleterWithCommandCompletion.
Public Member Functions | |
LaterDeleter (QObject *o) | |
void | setDisabled (bool v) |
virtual | ~LaterDeleter () |
Protected Attributes | |
bool | m_disabled |
QObject * | m_object |
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.
Definition at line 179 of file util.h.
Constructor & Destructor Documentation
KMail::Util::LaterDeleter::LaterDeleter | ( | QObject * | o | ) | [inline] |
virtual KMail::Util::LaterDeleter::~LaterDeleter | ( | ) | [inline, virtual] |
Member Function Documentation
void KMail::Util::LaterDeleter::setDisabled | ( | bool | v | ) | [inline] |
Member Data Documentation
bool KMail::Util::LaterDeleter::m_disabled [protected] |
QObject* KMail::Util::LaterDeleter::m_object [protected] |
The documentation for this class was generated from the following file: