class UDSEntry


Module kio
Namespace KIO
Class UDSEntry
Inherits
Universal Directory Service

UDS entry is the data structure representing all the fields about a given URL (file or directory).

The KIO.listDir() and KIO:stat() operations use this data structure.

KIO defines a number of standard fields, see the UDS_XXX enums (see StandardFieldTypes). at the moment UDSEntry only provides fields with numeric indexes, but there might be named fields with string indexes in the future.

For instance, to retrieve the name of the entry, use:

QString displayName = entry.stringValue( KIO.UDSEntry.UDS_NAME );

To know the modification time of the file/url:

time_t mtime = entry.numberValue( KIO.UDSEntry.UDS_MODIFICATION_TIME, -1 );
if ( mtime != -1 )
...


enums

enum details

methods