class KDir

A URL aware directory object. More...

Definition#include <kdir.h>
InheritsQObject (qt)
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Signals

Public Static Methods

Protected Methods

Protected Slots


Detailed Description

KDiroperator= (const char *)

Parameters:
pathor url.

void  setPath (const char *)

[virtual]

Set the current path (accepts normal paths or urls)

void  cdUp ()

Change to the parent directory

const char * host ()

[const]

Returns the current host.

const char * protocol ()

[const]

Returns the current protocol.

const char * path ()

[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).

QString  url ()

[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.

void  setFilter (int)

Set the current filter.

QDir::SortSpec  sorting ()

[const]

Returns the current sort order.

void  setSorting (int)

Set the current sort order.

uint  count ()

Returns the number of directory entries read.

bool  isFinished ()

[const]

Returns true if KFM has finished the operation.

const KFileInfoListentryInfoList (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

bool  blocking ()

returns, if the class gets its data via blocking I/O

bool  isRoot ()

indicates, if the path is empty

bool  isReadable ()

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

void  dirEntry (KFileInfo *)

[signal]

Emitted when a directory entry that matches the filter is received.

void  finished ()

[signal]

Emitted when the directory has been completely loaded.

void  error (int, const char *)

[signal]

Emitted if a network transfer goes wrong.

void  newFilesArrived (const KFileInfoList *)

[signal]

Emitted, if new files are queued

void  slotDirEntry (KDirEntry &)

[protected slot]

Called when a directory entry is received.

void  slotKfmFinished ()

[protected slot]

Called when kfm has finished the current network operation.

bool  startLoading ()

[protected virtual]

Start listing the directory in the background (returns immeditately).

Returns: true if KFM was started successfully.


Generated by: tasin@pcw-home on Sun Feb 13 22:02:12 2000, using kdoc 2.0a35.