27 #include <QtCore/QString> 28 #include <QtCore/QStringList> 33 namespace KIO {
class Job;
class ListJob; }
63 Q_PROPERTY(
bool autoUpdate READ autoUpdate WRITE setAutoUpdate )
64 Q_PROPERTY(
bool showingDotFiles READ showingDotFiles WRITE setShowingDotFiles )
65 Q_PROPERTY(
bool dirOnlyMode READ dirOnlyMode WRITE setDirOnlyMode )
66 Q_PROPERTY(
bool autoErrorHandlingEnabled READ autoErrorHandlingEnabled )
67 Q_PROPERTY(
bool delayedMimeTypes READ delayedMimeTypes WRITE setDelayedMimeTypes )
68 Q_PROPERTY( QString nameFilter READ nameFilter WRITE setNameFilter )
69 Q_PROPERTY( QStringList mimeFilter READ mimeFilters WRITE setMimeFilter RESET clearMimeFilter )
115 virtual bool openUrl(
const KUrl& _url, OpenUrlFlags _flags = NoFlags );
135 virtual void stop(
const KUrl& _url );
141 bool delayedMimeTypes()
const;
151 void setDelayedMimeTypes(
bool delayedMimeTypes );
159 bool autoUpdate()
const;
166 virtual void setAutoUpdate(
bool enable );
175 bool autoErrorHandlingEnabled()
const;
186 void setAutoErrorHandlingEnabled(
bool enable,
QWidget *parent );
195 bool showingDotFiles()
const;
205 virtual void setShowingDotFiles(
bool _showDotFiles );
213 bool dirOnlyMode()
const;
221 virtual void setDirOnlyMode(
bool dirsOnly );
247 virtual void emitChanges();
260 virtual void updateDirectory(
const KUrl& _dir );
266 bool isFinished()
const;
288 virtual KFileItem findByName(
const QString& name )
const;
301 virtual void setNameFilter(
const QString &filter );
308 QString nameFilter()
const;
323 virtual void setMimeFilter(
const QStringList &mimeList );
339 void setMimeExcludeFilter(
const QStringList &mimeList );
349 virtual void clearMimeFilter();
355 QStringList mimeFilters()
const;
363 bool matchesFilter(
const QString& name )
const;
372 bool matchesMimeFilter(
const QString& mime )
const;
379 void setMainWindow(
QWidget *window );
458 void started(
const KUrl& _url );
470 void completed(
const KUrl& _url );
482 void canceled(
const KUrl& _url );
490 void redirection(
const KUrl& _url );
497 void redirection(
const KUrl& oldUrl,
const KUrl& newUrl );
542 QT_MOC_COMPAT
void deleteItem(
const KFileItem &_fileItem );
567 void infoMessage(
const QString& msg );
574 void percent(
int percent );
592 void speed(
int bytes_per_second );
596 enum Changes { NONE=0, NAME_FILTER=1, MIME_FILTER=2, DOT_FILES=4, DIR_ONLY_MODE=8 };
610 virtual bool matchesFilter(
const KFileItem& )
const;
624 virtual bool matchesMimeFilter(
const KFileItem& )
const;
633 virtual bool doNameFilter(
const QString&
name,
const QList<QRegExp>& filters )
const;
642 virtual bool doMimeFilter(
const QString& mime,
const QStringList& filters )
const;
645 virtual void handleError(
KIO::Job * );
652 Q_PRIVATE_SLOT( d,
void _k_slotInfoMessage(
KJob*,
const QString& ) )
653 Q_PRIVATE_SLOT( d,
void _k_slotPercent(
KJob*,
unsigned long ) )
654 Q_PRIVATE_SLOT( d,
void _k_slotTotalSize(
KJob*, qulonglong ) )
655 Q_PRIVATE_SLOT( d,
void _k_slotProcessedSize(
KJob*, qulonglong ) )
656 Q_PRIVATE_SLOT( d,
void _k_slotSpeed(
KJob*,
unsigned long ) )
659 Q_DECLARE_OPERATORS_FOR_FLAGS(KDirLister::OpenUrlFlags)
qulonglong filesize_t
64-bit file size
A namespace for KIO globals.
const char * name(StandardAction id)
List of KFileItems, which adds a few helper methods to QList<KFileItem>.
KAction * clear(const QObject *recvr, const char *slot, QObject *parent)
WhichItems
Used by items() and itemsForDir() to specify whether you want all items for a directory or just the f...
Design of the cache: There is a single KDirListerCache for the whole process.
QString dir(const QString &fileClass)
Returns the most recently used directory accociated with this file-class.
The base class for all jobs.
Helper class for the kiojob used to list and update a directory.
A KFileItem is a generic class to handle a file, local or remote.