Nepomuk-Core
#include <activefilequeue.h>
Public Slots | |
void | enqueueUrl (const QString &url) |
void | setTimeout (int seconds) |
void | setWaitTimeout (int seconds) |
Signals | |
void | urlTimeout (const QString &url) |
Public Member Functions | |
ActiveFileQueue (QObject *parent=0) | |
~ActiveFileQueue () | |
Detailed Description
The active file queue maintains a queue of file paths with a timestamp.
When a file enters the queue, it will immediately time out. If the file has just timed out (default is upto 5 seconds), then it will time out after a given time. As soon as a file is queued again its timestamp will be reset and the timing restarts.
This allows to "compress" file modification events of downloads and the like into a single event resulting in a smoother experience for the user.
Whereas modification events which occur only one will immediately be sent forward.
Definition at line 46 of file activefilequeue.h.
Constructor & Destructor Documentation
ActiveFileQueue::ActiveFileQueue | ( | QObject * | parent = 0 | ) |
Definition at line 74 of file activefilequeue.cpp.
ActiveFileQueue::~ActiveFileQueue | ( | ) |
Definition at line 90 of file activefilequeue.cpp.
Member Function Documentation
|
slot |
Definition at line 95 of file activefilequeue.cpp.
|
slot |
Set the timeout in seconds.
Be aware that the timeout will not be exact. For internal reasons the queue tries to roughly match the configured timeout. It only guarantees that the timeout will be between seconds
and seconds+1
.
Definition at line 124 of file activefilequeue.cpp.
|
slot |
Sets the timeout in seconds, that the queue should track the url once it has already been emitted.
Definition at line 129 of file activefilequeue.cpp.
|
signal |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.