23 #ifndef SIGNONDISPOSABLE_H_ 24 #define SIGNONDISPOSABLE_H_ 84 QObject *
object,
const char *member);
95 mutable time_t lastActivity;
96 mutable bool autoDestruct;
SignonDisposable(int maxInactivity, QObject *parent)
Construct an object that can be automatically destroyed after having being unused for seconds...
Base class for server objects that can be automatically destroyed after a certain period of inactivit...
static void invokeOnIdle(int maxInactivity, QObject *object, const char *member)
Invoke the specified method on when there are no disposable objects for more than seconds...
static void destroyUnused()
Deletes all disposable object for which the inactivity time has elapsed.
virtual void destroy()
Performs any predestruction operations and the destruction itself.
virtual ~SignonDisposable()
void setAutoDestruct(bool value=true) const
Mark the object as used.
void keepInUse() const
Mark the object as used.