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.

Definition at line 179 of file util.h.

Constructor & Destructor Documentation

◆ LaterDeleter()

KMail::Util::LaterDeleter::LaterDeleter ( TQObject *  o)
inline

Definition at line 182 of file util.h.

◆ ~LaterDeleter()

virtual KMail::Util::LaterDeleter::~LaterDeleter ( )
inlinevirtual

Definition at line 186 of file util.h.

Member Function Documentation

◆ setDisabled()

void KMail::Util::LaterDeleter::setDisabled ( bool  v)
inline

Definition at line 192 of file util.h.

Member Data Documentation

◆ m_disabled

bool KMail::Util::LaterDeleter::m_disabled
protected

Definition at line 198 of file util.h.

◆ m_object

TQObject* KMail::Util::LaterDeleter::m_object
protected

Definition at line 197 of file util.h.


The documentation for this class was generated from the following file: