• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

Public Slots | Signals | Public Member Functions | List of all members
ActiveFileQueue Class Reference

#include <activefilequeue.h>

Inheritance diagram for ActiveFileQueue:
Inheritance graph
[legend]

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.

Author
Sebastian Trueg <trueg@ĸde.org>

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

void ActiveFileQueue::enqueueUrl ( const QString &  url)
slot

Definition at line 95 of file activefilequeue.cpp.

void ActiveFileQueue::setTimeout ( int  seconds)
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.

void ActiveFileQueue::setWaitTimeout ( int  seconds)
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.

void ActiveFileQueue::urlTimeout ( const QString &  url)
signal

The documentation for this class was generated from the following files:
  • activefilequeue.h
  • activefilequeue.cpp
This file is part of the KDE documentation.
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.

Nepomuk-Core

Skip menu "Nepomuk-Core"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal