KIO
kcoredirlister.h
63 Q_PROPERTY(bool requestMimeTypeWhileListing READ requestMimeTypeWhileListing WRITE setRequestMimeTypeWhileListing)
66 Q_PROPERTY(bool autoErrorHandlingEnabled READ autoErrorHandlingEnabled WRITE setAutoErrorHandlingEnabled)
114 bool openUrl(const QUrl &dirUrl, OpenUrlFlags flags = NoFlags); // TODO KF6: change bool to void
140 * When a new directory is opened with OpenUrlFlag::Keep the caller will keep being notified of file changes for all directories that were kept open.
141 * This call selectively removes a directory from sending future notifications to this KCoreDirLister.
void emitChanges()
Actually emit the changes made with setShowHiddenFiles, setDirOnlyMode, setNameFilter and setMimeFilt...
Definition kcoredirlister.cpp:2240
void speed(int bytes_per_second)
Emitted to display information about the speed of the jobs.
virtual void jobStarted(KIO::ListJob *)
Reimplemented by KDirLister to associate windows with jobs.
Definition kcoredirlister.cpp:2647
void percent(int percent)
Progress signal showing the overall progress of the KCoreDirLister.
void forgetDirs(const QUrl &dirUrl)
Stop listening for further changes in the given directory.
Definition kcoredirlister.cpp:2145
QFlags< OpenUrlFlag > OpenUrlFlags
Stores a combination of OpenUrlFlag values.
Definition kcoredirlister.h:89
void setShowHiddenFiles(bool showHiddenFiles)
Toggles whether hidden files (e.g.
Definition kcoredirlister.cpp:2170
void totalSize(KIO::filesize_t size)
Emitted when we know the size of the jobs.
void listingDirCompleted(const QUrl &dirUrl)
Tell the view that the listing of the directory dirUrl is finished.
WhichItems
Used by items() and itemsForDir() to specify whether you want all items for a directory or just the f...
Definition kcoredirlister.h:414
void updateDirectory(const QUrl &dirUrl)
Update the directory dirUrl.
Definition kcoredirlister.cpp:2309
void clear()
Signals to the view to remove all items (when e.g. going from dirA to dirB).
void setNameFilter(const QString &filter)
Set a name filter to only list items matching this name, e.g. "*.cpp".
Definition kcoredirlister.cpp:2336
QList< QUrl > directories() const
Returns all URLs that are listed by this KCoreDirLister.
Definition kcoredirlister.cpp:2235
bool openUrl(const QUrl &dirUrl, OpenUrlFlags flags=NoFlags)
Run the directory lister on the given url.
Definition kcoredirlister.cpp:2123
void setMimeExcludeFilter(const QStringList &mimeList)
Filtering should be done with KFileFilter.
Definition kcoredirlister.cpp:2372
QUrl url() const
Returns the top level URL that is listed by this KCoreDirLister.
Definition kcoredirlister.cpp:2230
void itemsFilteredByMime(const KFileItemList &items)
Send a list of items filtered-out by MIME type.
void setRequestMimeTypeWhileListing(bool request)
Toggles whether to request MIME types from the worker or in-process.
Definition kcoredirlister.cpp:2215
void jobError(KIO::Job *job)
Emitted if listing a directory fails with an error.
void started(const QUrl &dirUrl)
Tell the view that this KCoreDirLister has started to list dirUrl.
KFileItemList items(WhichItems which=FilteredItems) const
Returns the items listed for the current url().
Definition kcoredirlister.cpp:2680
KFileItem findByUrl(const QUrl &url) const
Find an item by its URL.
Definition kcoredirlister.cpp:2324
void setDelayedMimeTypes(bool delayedMimeTypes)
Delayed MIME types feature: If enabled, MIME types will be fetched on demand, which leads to a faster...
Definition kcoredirlister.cpp:2708
QStringList mimeFilters() const
Returns the list of MIME type based filters, as set via setMimeFilter().
Definition kcoredirlister.cpp:2389
void clearDir(const QUrl &dirUrl)
Signals to the view to clear all items from directory dirUrl.
void setAutoUpdate(bool enable)
Toggle automatic directory updating, when a directory changes (using KDirWatch).
Definition kcoredirlister.cpp:2155
void refreshItems(const QList< QPair< KFileItem, KFileItem > > &items)
Signal an item to refresh (its MIME-type/icon/name has changed).
void redirection(const QUrl &oldUrl, const QUrl &newUrl)
Signals a redirection.
void setMimeFilter(const QStringList &mimeList)
Set MIME type based filter to only list items matching the given MIME types.
Definition kcoredirlister.cpp:2358
KFileItem findByName(const QString &name) const
Find an item by its name.
Definition kcoredirlister.cpp:2329
void itemsDeleted(const KFileItemList &items)
Signal that items have been deleted.
void setDirOnlyMode(bool dirsOnly)
Call this to list only directories (by default all items (directories and files) are listed).
Definition kcoredirlister.cpp:2185
@ Reload
Indicates whether to use the cache or to reread the directory from the disk.
Definition kcoredirlister.h:80
void setQuickFilterMode(bool quickFilterMode)
Call this to set the quick filtering mode on, which will filter through all the items based by their ...
Definition kcoredirlister.cpp:2200
void listingDirCanceled(const QUrl &dirUrl)
Tell the view that the listing of the directory dirUrl was canceled.
bool isFinished() const
Returns true if no I/O operation is currently in progress.
Definition kcoredirlister.cpp:2314
void infoMessage(const QString &msg)
Emitted to display information about running jobs.
void setAutoErrorHandlingEnabled(bool enable)
Enable or disable auto error handling.
Definition kcoredirlister.cpp:2780
void itemsAdded(const QUrl &directoryUrl, const KFileItemList &items)
Signal that new items were found during directory listing.
bool quickFilterMode() const
Returns true if quickfiltering is enabled.
Definition kcoredirlister.cpp:2195
void processedSize(KIO::filesize_t size)
Regularly emitted to show the progress of this KCoreDirLister.
List of KFileItems, which adds a few helper methods to QList<KFileItem>.
Definition kfileitem.h:632
A ListJob is allows you to get the get the content of a directory.
Definition listjob.h:28
void stop(Ekos::AlignState mode)
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:02:23 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:02:23 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.