class KDir
|
A URL aware directory object.
More... |
|
|
Public Members
- KDir ()
- KDir (const KDir &)
- KDir (const char *path, const char *nameFilter= 0, QDir::SortSpec sortSpec = static_cast<QDir::SortSpec>(QDir::Name | QDir::IgnoreCase)
- KDir (const QDir &)
- virtual ~KDir ()
- KDir & operator= (const KDir &)
- KDir & operator= (const QDir &)
- KDir & operator= (const char *)
- virtual void setPath (const char *)
- void cdUp ()
- const char * host () const
- const char * protocol () const
- const char * path () const
- void setURL (const char *)
- QString url () const
- const char * nameFilter () const
- void setNameFilter (const char *)
- QDir::FilterSpec filter () const
- void setFilter (int)
- QDir::SortSpec sorting () const
- void setSorting (int)
- uint count ()
- bool isFinished () const
- const KFileInfoList * entryInfoList (int filterSpec = QDir::DefaultFilter, int sortSpec = QDir::DefaultSort)
- static bool match (const char *filter, const char *name)
- void setBlocking (bool _block)
- bool blocking ()
- static void setMaxReturns (uint max)
- bool isRoot ()
- bool isReadable ()
Protected Members
- void updateFiltered ()
- bool filterEntry (KFileInfo *)
- void initLists ()
- virtual void getEntries ()
- virtual bool startLoading ()
Protected Slots
- void slotDirEntry (KDirEntry &)
- void slotKfmFinished ()
- void slotKfmError (int, const char *)
- void timerEvent ()
- bool matchAllDirs () const
- void setMatchAllDirs ( bool f )
Signals
Detailed Description
KDir & operator= (const char *)
|
Parameters:
void setPath (const char *)
|
[virtual]
Set the current path (accepts normal paths or urls)
Change to the parent directory
[const]
Returns the current host.
[const]
Returns the current protocol.
[const]
Returns the current path (or the path part of the url).
void setURL (const char *)
|
Set the current url (accepts normal paths or urls).
[const]
Returns the current url.
const char * nameFilter ()
|
[const]
Returns the current name filter.
void setNameFilter (const char *)
|
Set the current name filter.
QDir::FilterSpec filter ()
|
[const]
Returns the current filter.
Set the current filter.
QDir::SortSpec sorting ()
|
[const]
Returns the current sort order.
Set the current sort order.
Returns the number of directory entries read.
[const]
Returns true if KFM has finished the operation.
const KFileInfoList * entryInfoList (int filterSpec = QDir::DefaultFilter, int sortSpec = QDir::DefaultSort)
|
Return a list of KFileInfo objects matching the specified filter.
This call returns immediately, but may provide only partial
information. If isFinished() returns true then you will receive
complete information. If this is the contents of the directory are
not cached then this method will call startLoading().
In blocking I/O mode, it will only return the first maxReturn
(default 100) entries. The rest will be send through signals
bool match (const char *filter, const char *name)
|
[static]
Returns true if the name matches the filter. Unlike the match() method
provided by QDir, KDir allows you to specify more than one glob in the
pattern. For example the pattern '*.cpp *.h' is valid.
void setBlocking (bool _block)
|
sets, if the class should get the data via blocking I/O.
This is just useful, if you want to override the internal logic
returns, if the class gets its data via blocking I/O
indicates, if the path is empty
indicates, if the path is readable. That means, if there are
entries to expect
void urlChanged (const char *)
|
[signal]
Emitted when the url is changed
[signal]
Emitted when a directory entry that matches the filter is received.
[signal]
Emitted when the directory has been completely loaded.
void error (int, const char *)
|
[signal]
Emitted if a network transfer goes wrong.
[signal]
Emitted, if new files are queued
[protected slot]
Called when a directory entry is received.
[protected slot]
Called when kfm has finished the current network operation.
[protected virtual]
Start listing the directory in the background (returns immeditately).
Returns: true if KFM was started successfully.
Generated by: root@tantive.terraplex.com on Sun Feb 27 18:46:38 200. |