KIO
Go to the documentation of this file.
20 #ifndef kdirlister_p_h
21 #define kdirlister_p_h
25 #include <QtCore/QMap>
26 #include <QtCore/QHash>
27 #include <QtCore/QCache>
28 #include <QtCore/QSet>
29 #include <QtCore/QTimer>
30 #include <QtGui/QWidget>
38 namespace KIO {
class Job;
class ListJob; }
108 class CachedItemsJob;
214 const KUrl& _url,
bool _reload,
bool _emitCompleted);
247 void slotFileDirty(
const QString &_file );
248 void slotFileCreated(
const QString &_file );
249 void slotFileDeleted(
const QString &_file );
252 void slotResult(
KJob *j );
256 void slotUpdateResult(
KJob *job );
257 void processPendingUpdates();
261 DirItem* dirItemForUrl(
const KUrl& dir)
const;
263 bool validUrl(
const KDirLister *lister,
const KUrl& _url )
const;
265 void stopListJob(
const QString& url,
bool silent);
275 bool checkUpdate(
const QString& url );
278 void handleFileDirty(
const KUrl& url);
279 void handleDirDirty(
const KUrl& url);
284 void deleteUnmarkedItems(
const QList<KDirLister *>&,
KFileItemList & );
286 void itemsDeleted(
const QList<KDirLister *>& listers,
const KFileItemList& deletedItems);
289 void renameDir(
const KUrl &oldUrl,
const KUrl &url );
291 void deleteDir(
const KUrl& dirUrl );
293 void removeDirFromCache(
const KUrl& dir );
295 void emitRedirections(
const KUrl &oldUrl,
const KUrl &url );
302 QSet<KDirLister *> emitRefreshItem(
const KFileItem& oldItem,
const KFileItem& fileitem);
317 DirItem(
const KUrl &dir,
const QString& canonicalPath)
318 : url(dir), m_canonicalPath(canonicalPath)
322 watchedWhileInCache =
false;
331 sendSignal(
false, url );
336 void sendSignal(
bool entering,
const KUrl& url )
346 void redirect(
const KUrl& newUrl )
352 sendSignal(
false, url );
355 m_canonicalPath = QFileInfo(newUrl.
toLocalFile()).canonicalFilePath();
358 sendSignal(
true, newUrl );
363 if ( !rootItem.isNull() )
364 rootItem.setUrl( newUrl );
369 if ( autoUpdates++ == 0 )
373 sendSignal(
true, url );
379 if ( --autoUpdates == 0 )
383 sendSignal(
false, url );
386 else if ( autoUpdates < 0 )
397 bool watchedWhileInCache;
417 QHash<
QString , DirItem*> itemsInUse;
418 QCache<
QString , DirItem> itemsCached;
421 DirectoryDataHash directoryData;
432 QTimer pendingUpdateTimer;
438 QSet<KFileItem*> pendingRemoteUpdates;
443 struct ItemInUseChange;
475 void start() { QMetaObject::invokeMethod(
this,
"done", Qt::QueuedConnection); }
492 bool m_emitCompleted;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 17:50:45 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.